diff options
author | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-03-01 12:00:33 -0600 |
---|---|---|
committer | Alan Jeffrey <ajeffrey@mozilla.com> | 2017-03-17 10:53:20 -0500 |
commit | 6bcb5f68be752d5439a4e5a899c5a72016b626df (patch) | |
tree | 24e8b34f3c78173465098e083a9982becf332756 /components/script_traits/script_msg.rs | |
parent | 0b590aeed73df3c1f1891fbb276010b29a8d7051 (diff) | |
download | servo-6bcb5f68be752d5439a4e5a899c5a72016b626df.tar.gz servo-6bcb5f68be752d5439a4e5a899c5a72016b626df.zip |
Implement dissimilar-origin window.parent and window.top.
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 2fd70174368..3e61fa8ae62 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -18,7 +18,7 @@ use euclid::point::Point2D; use euclid::size::{Size2D, TypedSize2D}; use gfx_traits::ScrollRootId; use ipc_channel::ipc::IpcSender; -use msg::constellation_msg::{FrameId, PipelineId, TraversalDirection}; +use msg::constellation_msg::{FrameId, FrameType, PipelineId, TraversalDirection}; use msg::constellation_msg::{Key, KeyModifiers, KeyState}; use net_traits::CoreResourceMsg; use net_traits::storage_thread::StorageType; @@ -86,6 +86,10 @@ pub enum ScriptMsg { ForwardEvent(PipelineId, CompositorEvent), /// Requests that the constellation retrieve the current contents of the clipboard GetClipboardContents(IpcSender<String>), + /// Get the frame id for a given pipeline. + GetFrameId(PipelineId, IpcSender<Option<FrameId>>), + /// Get the parent info for a given pipeline. + GetParentInfo(PipelineId, IpcSender<Option<(PipelineId, FrameType)>>), /// <head> tag finished parsing HeadParsed, /// All pending loads are complete, and the `load` event for this pipeline |