add error enum for chromium net errors, create window method for error propagation

This commit is contained in:
Mike Blumenkrantz 2015-05-26 13:26:47 -04:00
parent 3f8d8a3cc9
commit 68fc51205f
9 changed files with 224 additions and 0 deletions

View file

@ -24,6 +24,7 @@ use layers::geometry::DevicePixel;
use layers::platform::surface::NativeGraphicsMetadata;
use libc::{c_char, c_void};
use msg::constellation_msg::{Key, KeyModifiers};
use net::net_error_list::NetError;
use std::ptr;
use std_url::Url;
use util::cursor::Cursor;
@ -360,6 +361,9 @@ impl WindowMethods for Window {
}
}
fn load_error(&self, _: NetError, _: String) {
}
fn set_page_title(&self, string: Option<String>) {
let browser = self.cef_browser.borrow();
let browser = match *browser {