mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Create ScriptMsg::GetBrowsingContextInfo
This commit is contained in:
parent
7b3feb7ffe
commit
bed16ddd89
3 changed files with 40 additions and 52 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue