diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2019-08-29 03:01:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-29 03:01:02 -0400 |
commit | 39bd45529d6ef3eea8e0eeef77d0294e0db1b02c (patch) | |
tree | 16cf8e3481ac5dcc42eb2fbe44f1f6ee5c7e778a /support/hololens/ServoApp/BrowserPage.cpp | |
parent | 6297fa582ac4c870e4a8d16cd261da6ede14191d (diff) | |
parent | 5fe9a6223d74bcf9849c1b8c39e8ea9f2100bc45 (diff) | |
download | servo-39bd45529d6ef3eea8e0eeef77d0294e0db1b02c.tar.gz servo-39bd45529d6ef3eea8e0eeef77d0294e0db1b02c.zip |
Auto merge of #24095 - paulrouget:chromeless, r=jdm
Switch to chromeless mode when app opens from a servo:// link
Fix #24077
There's an issue where, in chromeless mode, when clicking a link in Servo, Edge opens the link (as expected) but not in a new tab, in a new window.
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/24095)
<!-- Reviewable:end -->
Diffstat (limited to 'support/hololens/ServoApp/BrowserPage.cpp')
-rw-r--r-- | support/hololens/ServoApp/BrowserPage.cpp | 6 |
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 ****/ |