mirror of
https://github.com/servo/servo.git
synced 2025-08-15 10:25:32 +01:00
Add support for fullscreen #10102
This commit is contained in:
parent
c3c086e521
commit
55f0e56224
33 changed files with 454 additions and 30 deletions
|
@ -238,6 +238,9 @@ impl WindowMethods for Window {
|
|||
|
||||
}
|
||||
|
||||
fn set_fullscreen_state(&self, _state: bool) {
|
||||
}
|
||||
|
||||
fn present(&self) {
|
||||
let browser = self.cef_browser.borrow();
|
||||
match *browser {
|
||||
|
|
|
@ -841,6 +841,15 @@ impl WindowMethods for Window {
|
|||
}
|
||||
}
|
||||
|
||||
fn set_fullscreen_state(&self, _state: bool) {
|
||||
match self.kind {
|
||||
WindowKind::Window(..) => {
|
||||
warn!("Fullscreen is not implemented!")
|
||||
},
|
||||
WindowKind::Headless(..) => {}
|
||||
}
|
||||
}
|
||||
|
||||
fn present(&self) {
|
||||
match self.kind {
|
||||
WindowKind::Window(ref window) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue