Add support for fullscreen #10102

This commit is contained in:
Jansen Jan 2016-12-08 14:02:08 +01:00
parent c3c086e521
commit 55f0e56224
33 changed files with 454 additions and 30 deletions

View file

@ -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 {

View file

@ -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) => {