mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Move WindowSizeType to script_traits.
This commit is contained in:
parent
9cbac40f61
commit
1a96733417
7 changed files with 20 additions and 20 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue