diff options
author | Paul Rouget <me@paulrouget.com> | 2018-03-13 14:36:00 +0800 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2018-03-16 14:34:29 +0800 |
commit | e25dd451398905ed5e8eb3a29df5035fb1845492 (patch) | |
tree | 91df99656f9aeff076f83a918d578d67ff3d91fa /components/compositing/compositor_thread.rs | |
parent | ac4614d6ce2cf92a28314735811e10e970e85cd1 (diff) | |
download | servo-e25dd451398905ed5e8eb3a29df5035fb1845492.tar.gz servo-e25dd451398905ed5e8eb3a29df5035fb1845492.zip |
alias some euclid types
Diffstat (limited to 'components/compositing/compositor_thread.rs')
-rw-r--r-- | components/compositing/compositor_thread.rs | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/components/compositing/compositor_thread.rs b/components/compositing/compositor_thread.rs index 143107504e2..d93c2c4a2bd 100644 --- a/components/compositing/compositor_thread.rs +++ b/components/compositing/compositor_thread.rs @@ -6,7 +6,6 @@ use SendableFrameTree; use compositor::CompositingReason; -use euclid::{TypedPoint2D, TypedSize2D}; use gfx_traits::Epoch; use ipc_channel::ipc::IpcSender; use msg::constellation_msg::{Key, KeyModifiers, KeyState, PipelineId, TopLevelBrowsingContextId}; @@ -17,11 +16,10 @@ use script_traits::{AnimationState, ConstellationMsg, EventResult, LoadData}; use servo_url::ServoUrl; use std::fmt::{Debug, Error, Formatter}; use std::sync::mpsc::{Receiver, Sender}; -use style_traits::DevicePixel; use style_traits::cursor::CursorKind; use style_traits::viewport::ViewportConstraints; use webrender; -use webrender_api; +use webrender_api::{self, DeviceIntPoint, DeviceUintSize}; /// Used to wake up the event loop, provided by the servo port/embedder. @@ -120,16 +118,16 @@ pub enum EmbedderMsg { /// Alerts the embedder that the current page has changed its title. ChangePageTitle(TopLevelBrowsingContextId, Option<String>), /// Move the window to a point - MoveTo(TopLevelBrowsingContextId, TypedPoint2D<i32, DevicePixel>), + MoveTo(TopLevelBrowsingContextId, DeviceIntPoint), /// Resize the window to size - ResizeTo(TopLevelBrowsingContextId, TypedSize2D<u32, DevicePixel>), + ResizeTo(TopLevelBrowsingContextId, DeviceUintSize), /// Get Window Informations size and position GetClientWindow(TopLevelBrowsingContextId, - IpcSender<(TypedSize2D<u32, DevicePixel>, TypedPoint2D<i32, DevicePixel>)>), + IpcSender<(DeviceUintSize, DeviceIntPoint)>), /// Get screen size (pixel) - GetScreenSize(TopLevelBrowsingContextId, IpcSender<(TypedSize2D<u32, DevicePixel>)>), + GetScreenSize(TopLevelBrowsingContextId, IpcSender<(DeviceUintSize)>), /// Get screen available size (pixel) - GetScreenAvailSize(TopLevelBrowsingContextId, IpcSender<(TypedSize2D<u32, DevicePixel>)>), + GetScreenAvailSize(TopLevelBrowsingContextId, IpcSender<(DeviceUintSize)>), /// Wether or not to follow a link AllowNavigation(TopLevelBrowsingContextId, ServoUrl, IpcSender<bool>), /// Sends an unconsumed key event back to the embedder. |