diff options
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 85281b80f7c..e700c47ae47 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -52,8 +52,7 @@ use hyper::method::Method; use ipc_channel::ipc::{IpcReceiver, IpcSender}; use libc::c_void; use msg::constellation_msg::{FrameId, FrameType, Key, KeyModifiers, KeyState}; -use msg::constellation_msg::{PipelineId, PipelineNamespaceId, ReferrerPolicy}; -use msg::constellation_msg::{TraversalDirection, WindowSizeType}; +use msg::constellation_msg::{PipelineId, PipelineNamespaceId, ReferrerPolicy, TraversalDirection}; use net_traits::{LoadOrigin, ResourceThreads}; use net_traits::bluetooth_thread::BluetoothMethodMsg; use net_traits::image::base::Image; @@ -621,6 +620,15 @@ pub struct WindowSizeData { pub device_pixel_ratio: ScaleFactor<f32, ViewportPx, DevicePixel>, } +/// The type of window size change. +#[derive(Deserialize, Eq, PartialEq, Serialize, Copy, Clone, HeapSizeOf)] +pub enum WindowSizeType { + /// Initial load. + Initial, + /// Window resize. + Resize, +} + /// Messages to the constellation originating from the WebDriver server. #[derive(Deserialize, Serialize)] pub enum WebDriverCommandMsg { |