aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authormandreyel <mandreyel@protonmail.com>2018-09-14 00:23:49 +0200
committermandreyel <mandreyel@protonmail.com>2018-09-14 00:23:49 +0200
commitbed16ddd898bee2664c8cbd3cd6b15b45b8a5152 (patch)
tree69dd6623f16e61a45cf6315d296ace9c85153419 /components/script_traits/script_msg.rs
parent7b3feb7ffe176907233c85e0fc1c4300ee64ea8c (diff)
downloadservo-bed16ddd898bee2664c8cbd3cd6b15b45b8a5152.tar.gz
servo-bed16ddd898bee2664c8cbd3cd6b15b45b8a5152.zip
Create ScriptMsg::GetBrowsingContextInfo
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index ca8c5463aa8..14edaee58b6 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -108,15 +108,17 @@ pub enum ScriptMsg {
Focus,
/// Requests that the constellation retrieve the current contents of the clipboard
GetClipboardContents(IpcSender<String>),
- /// Get the browsing context id for a given pipeline.
- GetBrowsingContextId(PipelineId, IpcSender<Option<BrowsingContextId>>),
- /// Get the parent info for a given pipeline.
- GetParentInfo(PipelineId, IpcSender<Option<PipelineId>>),
/// Get the top-level browsing context info for a given browsing context.
GetTopForBrowsingContext(
BrowsingContextId,
IpcSender<Option<TopLevelBrowsingContextId>>,
),
+ /// Get the browsing context id of the browsing context in which pipeline is
+ /// embedded and the parent pipeline id of that browsing context.
+ GetBrowsingContextInfo(
+ PipelineId,
+ IpcSender<Option<(BrowsingContextId, Option<PipelineId>)>>,
+ ),
/// Get the nth child browsing context ID for a given browsing context, sorted in tree order.
GetChildBrowsingContextId(
BrowsingContextId,
@@ -201,8 +203,7 @@ impl fmt::Debug for ScriptMsg {
CreateCanvasPaintThread(..) => "CreateCanvasPaintThread",
Focus => "Focus",
GetClipboardContents(..) => "GetClipboardContents",
- GetBrowsingContextId(..) => "GetBrowsingContextId",
- GetParentInfo(..) => "GetParentInfo",
+ GetBrowsingContextInfo(..) => "GetBrowsingContextInfo",
GetTopForBrowsingContext(..) => "GetParentBrowsingContext",
GetChildBrowsingContextId(..) => "GetChildBrowsingContextId",
LoadComplete => "LoadComplete",