aboutsummaryrefslogtreecommitdiffstats
path: root/support/hololens/ServoApp/BrowserPage.cpp
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2019-08-29 06:09:46 +0200
committerPaul Rouget <me@paulrouget.com>2019-08-29 06:53:53 +0200
commit5fe9a6223d74bcf9849c1b8c39e8ea9f2100bc45 (patch)
tree2b029a71de89ce09f3c25ba87e0f6f7d692ebace /support/hololens/ServoApp/BrowserPage.cpp
parent3ade7b680d2d17fb849d10fd69acd7a3010ed8e4 (diff)
downloadservo-5fe9a6223d74bcf9849c1b8c39e8ea9f2100bc45.tar.gz
servo-5fe9a6223d74bcf9849c1b8c39e8ea9f2100bc45.zip
Switch to chromeless mode when app opens from a servo:// link
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r--support/hololens/ServoApp/BrowserPage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/support/hololens/ServoApp/BrowserPage.cpp b/support/hololens/ServoApp/BrowserPage.cpp
index 617ef66e27d..1a9b2073bbd 100644
--- a/support/hololens/ServoApp/BrowserPage.cpp
+++ b/support/hololens/ServoApp/BrowserPage.cpp
@@ -55,6 +55,12 @@ void BrowserPage::LoadServoURI(Uri uri) {
servoControl().LoadURIOrSearch(raw2);
}
+void BrowserPage::SetTransientMode(bool transient) {
+ servoControl().SetTransientMode(transient);
+ navigationBar().Visibility(transient ? Visibility::Collapsed
+ : Visibility::Visible);
+}
+
void BrowserPage::Shutdown() { servoControl().Shutdown(); }
/**** USER INTERACTIONS WITH UI ****/