mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
add error enum for chromium net errors, create window method for error propagation
This commit is contained in:
parent
3f8d8a3cc9
commit
68fc51205f
9 changed files with 224 additions and 0 deletions
|
@ -12,6 +12,7 @@ use geom::size::TypedSize2D;
|
|||
use layers::geometry::DevicePixel;
|
||||
use layers::platform::surface::NativeGraphicsMetadata;
|
||||
use msg::constellation_msg::{Key, KeyState, KeyModifiers};
|
||||
use net::net_error_list::NetError;
|
||||
use script_traits::MouseButton;
|
||||
use url::Url;
|
||||
use util::cursor::Cursor;
|
||||
|
@ -107,6 +108,8 @@ pub trait WindowMethods {
|
|||
fn load_start(&self, back: bool, forward: bool);
|
||||
/// Called when the browser is done loading a frame.
|
||||
fn load_end(&self, back: bool, forward: bool);
|
||||
/// Called when the browser encounters an error while loading a URL
|
||||
fn load_error(&self, code: NetError, url: String);
|
||||
|
||||
/// Returns the hidpi factor of the monitor.
|
||||
fn hidpi_factor(&self) -> ScaleFactor<ScreenPx, DevicePixel, f32>;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue