mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Switch to chromeless mode when app opens from a servo:// link
This commit is contained in:
parent
3ade7b680d
commit
5fe9a6223d
7 changed files with 26 additions and 2 deletions
|
@ -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 ****/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue