diff options
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r-- | support/hololens/ServoApp/BrowserPage.cpp | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/support/hololens/ServoApp/BrowserPage.cpp b/support/hololens/ServoApp/BrowserPage.cpp index 0233308fa75..6507306178d 100644 --- a/support/hololens/ServoApp/BrowserPage.cpp +++ b/support/hololens/ServoApp/BrowserPage.cpp @@ -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 |