Skip to content

Commit

Permalink
Remove Immersive Mode demo
Browse files Browse the repository at this point in the history
  • Loading branch information
paulrouget committed Aug 20, 2019
1 parent d096926 commit 42f2c47
Show file tree
Hide file tree
Showing 25 changed files with 0 additions and 2,664 deletions.
18 changes: 0 additions & 18 deletions support/hololens/ServoApp/BrowserPage.cpp
Expand Up @@ -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 {
Expand Down Expand Up @@ -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
5 changes: 0 additions & 5 deletions support/hololens/ServoApp/BrowserPage.h
Expand Up @@ -5,18 +5,14 @@
#pragma once

#include "BrowserPage.g.h"
#include "ImmersiveView.h"
#include "ServoControl\ServoControl.h"


namespace winrt::ServoApp::implementation {

struct BrowserPage : BrowserPageT<BrowserPage> {
public:
BrowserPage();

void OnImmersiveButtonClicked(Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &);
void OnForwardButtonClicked(Windows::Foundation::IInspectable const &,
Windows::UI::Xaml::RoutedEventArgs const &);
void OnBackButtonClicked(Windows::Foundation::IInspectable const &,
Expand All @@ -30,7 +26,6 @@ struct BrowserPage : BrowserPageT<BrowserPage> {
void Shutdown();

private:
winrt::ServoApp::ImmersiveViewSource mImmersiveViewSource;
void BindServoEvents();
};
} // namespace winrt::ServoApp::implementation
Expand Down
3 changes: 0 additions & 3 deletions support/hololens/ServoApp/BrowserPage.xaml
Expand Up @@ -26,9 +26,6 @@
<Button x:Name="stopButton" IsTabStop="true" IsEnabled="false" Content="stop" Click="OnStopButtonClicked"/>
</StackPanel>
<TextBox Text="" IsTabStop="true" InputScope="Url" PlaceholderText="Type a URL" x:Name="urlTextbox" Grid.Column="1" KeyUp="OnURLEdited"/>
<StackPanel Orientation="Horizontal" Grid.Column="2">
<Button x:Name="immersiveButton" Click="OnImmersiveButtonClicked">Run Immersive</Button>
</StackPanel>
</Grid>
<local:ServoControl TabIndex="0" x:Name="servoControl" Grid.Row="1"/>
</Grid>
Expand Down
234 changes: 0 additions & 234 deletions support/hololens/ServoApp/Common/CameraResources.cpp

This file was deleted.

93 changes: 0 additions & 93 deletions support/hololens/ServoApp/Common/CameraResources.h

This file was deleted.

0 comments on commit 42f2c47

Please sign in to comment.