mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Format components/script_traits
This commit is contained in:
parent
29ba51016b
commit
fda3111f67
3 changed files with 96 additions and 35 deletions
|
@ -92,7 +92,13 @@ pub enum ScriptMsg {
|
|||
InitiateNavigateRequest(RequestInit, /* cancellation_chan */ IpcReceiver<()>),
|
||||
/// Broadcast a storage event to every same-origin pipeline.
|
||||
/// The strings are key, old value and new value.
|
||||
BroadcastStorageEvent(StorageType, ServoUrl, Option<String>, Option<String>, Option<String>),
|
||||
BroadcastStorageEvent(
|
||||
StorageType,
|
||||
ServoUrl,
|
||||
Option<String>,
|
||||
Option<String>,
|
||||
Option<String>,
|
||||
),
|
||||
/// Indicates whether this pipeline is currently running animations.
|
||||
ChangeRunningAnimationsState(AnimationState),
|
||||
/// Requests that a new 2D canvas thread be created. (This is done in the constellation because
|
||||
|
@ -107,9 +113,16 @@ pub enum ScriptMsg {
|
|||
/// 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>>),
|
||||
GetTopForBrowsingContext(
|
||||
BrowsingContextId,
|
||||
IpcSender<Option<TopLevelBrowsingContextId>>,
|
||||
),
|
||||
/// Get the nth child browsing context ID for a given browsing context, sorted in tree order.
|
||||
GetChildBrowsingContextId(BrowsingContextId, usize, IpcSender<Option<BrowsingContextId>>),
|
||||
GetChildBrowsingContextId(
|
||||
BrowsingContextId,
|
||||
usize,
|
||||
IpcSender<Option<BrowsingContextId>>,
|
||||
),
|
||||
/// All pending loads are complete, and the `load` event for this pipeline
|
||||
/// has been dispatched.
|
||||
LoadComplete,
|
||||
|
@ -142,7 +155,10 @@ pub enum ScriptMsg {
|
|||
/// A load of the initial `about:blank` has been completed in an IFrame.
|
||||
ScriptNewIFrame(IFrameLoadInfo, IpcSender<LayoutControlMsg>),
|
||||
/// Script has opened a new auxiliary browsing context.
|
||||
ScriptNewAuxiliary(AuxiliaryBrowsingContextLoadInfo, IpcSender<LayoutControlMsg>),
|
||||
ScriptNewAuxiliary(
|
||||
AuxiliaryBrowsingContextLoadInfo,
|
||||
IpcSender<LayoutControlMsg>,
|
||||
),
|
||||
/// Requests that the constellation set the contents of the clipboard
|
||||
SetClipboardContents(String),
|
||||
/// Mark a new document as active
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue