diff options
author | chansuke <chansuke@georepublic.de> | 2018-09-13 00:54:56 +0900 |
---|---|---|
committer | chansuke <chansuke@georepublic.de> | 2018-09-13 00:54:56 +0900 |
commit | fda3111f67797400cf6f697165894a429a581252 (patch) | |
tree | 488007e0644ec3acdcdeed8aab70285457dc2c61 /components/script_traits/script_msg.rs | |
parent | 29ba51016b7c2b04d1c9e3d2cd5a2be4e43ff1dc (diff) | |
download | servo-fda3111f67797400cf6f697165894a429a581252.tar.gz servo-fda3111f67797400cf6f697165894a429a581252.zip |
Format components/script_traits
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 6dba5c00509..ca8c5463aa8 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -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 |