add window method for notifying when the <head> tag has been parsed

This commit is contained in:
Mike Blumenkrantz 2015-05-29 18:27:00 -04:00
parent 612cefa02d
commit ffa2093012
10 changed files with 32 additions and 0 deletions

View file

@ -391,6 +391,9 @@ impl WindowMethods for Window {
}
}
fn head_parsed(&self) {
}
fn set_page_title(&self, string: Option<String>) {
let browser = self.cef_browser.borrow();
let browser = match *browser {

View file

@ -515,6 +515,9 @@ impl WindowMethods for Window {
fn load_error(&self, _: NetError, _: String) {
}
fn head_parsed(&self) {
}
/// Has no effect on Android.
fn set_cursor(&self, c: Cursor) {
use glutin::MouseCursor;
@ -706,6 +709,8 @@ impl WindowMethods for Window {
}
fn load_error(&self, _: NetError, _: String) {
}
fn head_parsed(&self) {
}
fn set_cursor(&self, _: Cursor) {
}

View file

@ -812,6 +812,9 @@ impl WindowMethods for Window {
fn load_error(&self, _: NetError, _: String) {
}
fn head_parsed(&self) {
}
fn hidpi_factor(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32> {
ScaleFactor::new(1.0)
}