mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove Immersive Mode demo
This commit is contained in:
parent
d09692664e
commit
42f2c472f7
25 changed files with 0 additions and 2664 deletions
|
@ -6,12 +6,10 @@
|
|||
#include "logs.h"
|
||||
#include "BrowserPage.h"
|
||||
#include "BrowserPage.g.cpp"
|
||||
#include "ImmersiveView.h"
|
||||
|
||||
using namespace winrt::Windows::UI::Xaml;
|
||||
using namespace winrt::Windows::UI::Core;
|
||||
using namespace winrt::Windows::UI::ViewManagement;
|
||||
using namespace winrt::Windows::Graphics::Holographic;
|
||||
using namespace winrt::Windows::ApplicationModel::Core;
|
||||
|
||||
namespace winrt::ServoApp::implementation {
|
||||
|
@ -74,20 +72,4 @@ void BrowserPage::OnURLEdited(IInspectable const &sender,
|
|||
}
|
||||
}
|
||||
|
||||
void BrowserPage::OnImmersiveButtonClicked(IInspectable const &,
|
||||
RoutedEventArgs const &) {
|
||||
if (HolographicSpace::IsAvailable()) {
|
||||
log("Holographic space available");
|
||||
auto v = CoreApplication::CreateNewView(mImmersiveViewSource);
|
||||
auto parentId = ApplicationView::GetForCurrentView().Id();
|
||||
v.Dispatcher().RunAsync(CoreDispatcherPriority::Normal, [=] {
|
||||
auto winId = ApplicationView::GetForCurrentView().Id();
|
||||
ApplicationViewSwitcher::SwitchAsync(winId, parentId);
|
||||
log("Immersive view started");
|
||||
});
|
||||
} else {
|
||||
log("Holographic space not available");
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace winrt::ServoApp::implementation
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue