diff options
author | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-04-28 22:48:14 +0800 |
---|---|---|
committer | Gregory Terzian <gterzian@users.noreply.github.com> | 2018-05-23 21:45:57 +0800 |
commit | d4382407722108a52bf23b1f3a3114984f13fb90 (patch) | |
tree | 55f5dad9ccad14e6911cb5434f2d362ba79f166e /components/script_traits/lib.rs | |
parent | a297e8f2881d0d1927160d2ebc0e4b26d71f2534 (diff) | |
download | servo-d4382407722108a52bf23b1f3a3114984f13fb90.tar.gz servo-d4382407722108a52bf23b1f3a3114984f13fb90.zip |
move msg to embedder_traits, use in script, handle send error in embedder
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 9ecda6625d6..6075cc6fc43 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -13,6 +13,7 @@ extern crate bluetooth_traits; extern crate canvas_traits; extern crate cookie as cookie_rs; extern crate devtools_traits; +extern crate embedder_traits; extern crate euclid; extern crate gfx_traits; extern crate hyper; @@ -702,6 +703,8 @@ pub enum ConstellationMsg { NewBrowser(ServoUrl, IpcSender<TopLevelBrowsingContextId>), /// Close a top level browsing context. CloseBrowser(TopLevelBrowsingContextId), + /// Panic a top level browsing context. + SendError(Option<TopLevelBrowsingContextId>, String), /// Make browser visible. SelectBrowser(TopLevelBrowsingContextId), /// Forward an event to the script task of the given pipeline. @@ -730,6 +733,7 @@ impl fmt::Debug for ConstellationMsg { WebVREvents(..) => "WebVREvents", NewBrowser(..) => "NewBrowser", CloseBrowser(..) => "CloseBrowser", + SendError(..) => "SendError", SelectBrowser(..) => "SelectBrowser", ForwardEvent(..) => "ForwardEvent", SetCursor(..) => "SetCursor", |