aboutsummaryrefslogtreecommitdiffstats
path: root/components/embedder_traits/lib.rs
diff options
context:
space:
mode:
authorGregory Terzian <gterzian@users.noreply.github.com>2018-05-19 19:13:48 +0800
committerGregory Terzian <gterzian@users.noreply.github.com>2018-05-23 21:46:05 +0800
commit2812b3cf4aa4f5f3c8984ad56fea99c0a90c5c95 (patch)
tree4c495a68c81db8553a3e6c6e0d5141cd6ca26a8f /components/embedder_traits/lib.rs
parent4234b1252af9b4da08d8cd372dd4c1db9c3f2662 (diff)
downloadservo-2812b3cf4aa4f5f3c8984ad56fea99c0a90c5c95.tar.gz
servo-2812b3cf4aa4f5f3c8984ad56fea99c0a90c5c95.zip
send message to embedder in prompt_to_unload
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 340eb674054..9122a76f0ef 100644
--- a/components/embedder_traits/lib.rs
+++ b/components/embedder_traits/lib.rs
@@ -84,6 +84,8 @@ pub enum EmbedderMsg {
Alert(String, IpcSender<()>),
/// Wether or not to follow a link
AllowNavigation(ServoUrl, IpcSender<bool>),
+ /// Wether or not to unload a document
+ AllowUnload(IpcSender<bool>),
/// Sends an unconsumed key event back to the embedder.
KeyEvent(Option<char>, Key, KeyState, KeyModifiers),
/// Changes the cursor.
@@ -122,6 +124,7 @@ impl Debug for EmbedderMsg {
EmbedderMsg::MoveTo(..) => write!(f, "MoveTo"),
EmbedderMsg::ResizeTo(..) => write!(f, "ResizeTo"),
EmbedderMsg::Alert(..) => write!(f, "Alert"),
+ EmbedderMsg::AllowUnload(..) => write!(f, "AllowUnload"),
EmbedderMsg::AllowNavigation(..) => write!(f, "AllowNavigation"),
EmbedderMsg::KeyEvent(..) => write!(f, "KeyEvent"),
EmbedderMsg::SetCursor(..) => write!(f, "SetCursor"),