aboutsummaryrefslogtreecommitdiffstats
path: root/components/embedder_traits/lib.rs
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2018-05-26 23:41:34 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2018-06-04 15:02:23 +0800
commit2753e5efabd77b83dd94bf59fe3f01535e8ac10a (patch)
treedc6b3463570cd1aaba4d71401837d56c6f28c60f /components/embedder_traits/lib.rs
parentf63284efc04b298b010f34f5225a3fa9014bf763 (diff)
downloadservo-2753e5efabd77b83dd94bf59fe3f01535e8ac10a.tar.gz
servo-2753e5efabd77b83dd94bf59fe3f01535e8ac10a.zip
improve spec compliance of window.close
Diffstat (limited to 'components/embedder_traits/lib.rs')
-rw-r--r--components/embedder_traits/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/embedder_traits/lib.rs b/components/embedder_traits/lib.rs
index 9122a76f0ef..b1698c95728 100644
--- a/components/embedder_traits/lib.rs
+++ b/components/embedder_traits/lib.rs
@@ -102,6 +102,8 @@ pub enum EmbedderMsg {
LoadStart,
/// The load of a page has completed
LoadComplete,
+ /// A browser is to be closed
+ CloseBrowser,
/// A pipeline panicked. First string is the reason, second one is the backtrace.
Panic(String, Option<String>),
/// Open dialog to select bluetooth device.
@@ -130,6 +132,7 @@ impl Debug for EmbedderMsg {
EmbedderMsg::SetCursor(..) => write!(f, "SetCursor"),
EmbedderMsg::NewFavicon(..) => write!(f, "NewFavicon"),
EmbedderMsg::HeadParsed => write!(f, "HeadParsed"),
+ EmbedderMsg::CloseBrowser => write!(f, "CloseBrowser"),
EmbedderMsg::HistoryChanged(..) => write!(f, "HistoryChanged"),
EmbedderMsg::SetFullscreenState(..) => write!(f, "SetFullscreenState"),
EmbedderMsg::LoadStart => write!(f, "LoadStart"),