diff options
author | apopiak <alexander.popiak@gmail.com> | 2016-01-11 23:20:10 +0100 |
---|---|---|
committer | apopiak <alexander.popiak@gmail.com> | 2016-01-13 17:48:50 +0100 |
commit | 4b773cefe9ffdecd04993e4652fb2e436bf57e08 (patch) | |
tree | c7d396a4d1b7737707abe7f841eb973d98a0a35f /components/script/dom | |
parent | 0e6bca8e8efce40f99aca24475d5ba1dac317e2c (diff) | |
download | servo-4b773cefe9ffdecd04993e4652fb2e436bf57e08.tar.gz servo-4b773cefe9ffdecd04993e4652fb2e436bf57e08.zip |
move MozBrowserEvent to script_traits (+ documentation)
Diffstat (limited to 'components/script/dom')
-rw-r--r-- | components/script/dom/document.rs | 4 | ||||
-rw-r--r-- | components/script/dom/htmliframeelement.rs | 5 | ||||
-rw-r--r-- | components/script/dom/htmllinkelement.rs | 4 | ||||
-rw-r--r-- | components/script/dom/window.rs | 6 |
4 files changed, 8 insertions, 11 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs index 49afd4dc9ee..65987f4bf3e 100644 --- a/components/script/dom/document.rs +++ b/components/script/dom/document.rs @@ -83,13 +83,13 @@ use layout_interface::{LayoutChan, Msg, ReflowQueryType}; use msg::constellation_msg::{ALT, CONTROL, SHIFT, SUPER}; use msg::constellation_msg::{AnimationState, PipelineId}; use msg::constellation_msg::{ConstellationChan, Key, KeyModifiers, KeyState}; -use msg::constellation_msg::{MouseButton, MozBrowserEvent, SubpageId}; +use msg::constellation_msg::{MouseButton, SubpageId}; use net_traits::ControlMsg::{GetCookiesForUrl, SetCookiesForUrl}; use net_traits::CookieSource::NonHTTP; use net_traits::{AsyncResponseTarget, PendingAsyncLoad}; use num::ToPrimitive; use script_thread::{MainThreadScriptMsg, Runnable}; -use script_traits::MouseEventType; +use script_traits::{MouseEventType, MozBrowserEvent}; use script_traits::{ScriptMsg as ConstellationMsg, ScriptToCompositorMsg}; use script_traits::{TouchEventType, TouchId, UntrustedNodeAddress}; use std::ascii::AsciiExt; diff --git a/components/script/dom/htmliframeelement.rs b/components/script/dom/htmliframeelement.rs index 4d496903629..65cfd32fa17 100644 --- a/components/script/dom/htmliframeelement.rs +++ b/components/script/dom/htmliframeelement.rs @@ -26,12 +26,11 @@ use dom::virtualmethods::VirtualMethods; use dom::window::Window; use js::jsapi::{JSAutoCompartment, JSAutoRequest, RootedValue, JSContext, MutableHandleValue}; use js::jsval::{UndefinedValue, NullValue}; -use msg::constellation_msg::{ConstellationChan, MozBrowserEvent}; +use msg::constellation_msg::{ConstellationChan}; use msg::constellation_msg::{NavigationDirection, PipelineId, SubpageId}; use page::IterablePage; -use script_traits::IFrameLoadInfo; use script_traits::IFrameSandboxState::{IFrameSandboxed, IFrameUnsandboxed}; -use script_traits::ScriptMsg as ConstellationMsg; +use script_traits::{IFrameLoadInfo, MozBrowserEvent, ScriptMsg as ConstellationMsg}; use std::ascii::AsciiExt; use std::cell::Cell; use string_cache::Atom; diff --git a/components/script/dom/htmllinkelement.rs b/components/script/dom/htmllinkelement.rs index 58ce5dc6ea0..38bb2287ac3 100644 --- a/components/script/dom/htmllinkelement.rs +++ b/components/script/dom/htmllinkelement.rs @@ -24,10 +24,10 @@ use encoding::all::UTF_8; use ipc_channel::ipc; use ipc_channel::router::ROUTER; use layout_interface::{LayoutChan, Msg}; -use msg::constellation_msg::{ConstellationChan, MozBrowserEvent}; +use msg::constellation_msg::ConstellationChan; use net_traits::{AsyncResponseListener, AsyncResponseTarget, Metadata}; use network_listener::{NetworkListener, PreInvoke}; -use script_traits::ScriptMsg as ConstellationMsg; +use script_traits::{MozBrowserEvent, ScriptMsg as ConstellationMsg}; use std::ascii::AsciiExt; use std::borrow::ToOwned; use std::cell::Cell; diff --git a/components/script/dom/window.rs b/components/script/dom/window.rs index 8ae52b9ccb0..df7f6a3faeb 100644 --- a/components/script/dom/window.rs +++ b/components/script/dom/window.rs @@ -43,8 +43,7 @@ use js::rust::Runtime; use layout_interface::{ContentBoxResponse, ContentBoxesResponse, ResolvedStyleResponse, ScriptReflow}; use layout_interface::{LayoutChan, LayoutRPC, Msg, Reflow, ReflowQueryType}; use libc; -use msg::constellation_msg::{ConstellationChan, LoadData}; -use msg::constellation_msg::{MozBrowserEvent, PipelineId, SubpageId, WindowSizeData}; +use msg::constellation_msg::{ConstellationChan, LoadData, PipelineId, SubpageId, WindowSizeData}; use msg::webdriver_msg::{WebDriverJSError, WebDriverJSResult}; use net_traits::ResourceThread; use net_traits::image_cache_thread::{ImageCacheChan, ImageCacheThread}; @@ -57,9 +56,8 @@ use rustc_serialize::base64::{FromBase64, STANDARD, ToBase64}; use script_thread::{DOMManipulationThreadSource, UserInteractionThreadSource, NetworkingThreadSource}; use script_thread::{HistoryTraversalThreadSource, FileReadingThreadSource, SendableMainThreadScriptChan}; use script_thread::{ScriptChan, ScriptPort, MainThreadScriptChan, MainThreadScriptMsg, RunnableWrapper}; -use script_traits::ScriptMsg as ConstellationMsg; use script_traits::{DocumentState, MsDuration, ScriptToCompositorMsg, TimerEvent, TimerEventId}; -use script_traits::{TimerEventRequest, TimerSource}; +use script_traits::{MozBrowserEvent, ScriptMsg as ConstellationMsg, TimerEventRequest, TimerSource}; use selectors::parser::PseudoElement; use std::ascii::AsciiExt; use std::borrow::ToOwned; |