diff options
author | Paul Rouget <me@paulrouget.com> | 2018-02-20 05:15:57 +0100 |
---|---|---|
committer | Paul Rouget <me@paulrouget.com> | 2018-03-22 07:56:50 +0100 |
commit | 10abe03948423812c2d28edaef4e49918f5cf41a (patch) | |
tree | 615425daa6f8ccdc3675274100451c47bac346d8 /components/script_traits/script_msg.rs | |
parent | 28c92db26837531e75327cff7727ed8bc1c70b48 (diff) | |
download | servo-10abe03948423812c2d28edaef4e49918f5cf41a.tar.gz servo-10abe03948423812c2d28edaef4e49918f5cf41a.zip |
Reduce the number of calls to the embedder by grouping the screen and window coordinates into one structure
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r-- | components/script_traits/script_msg.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 153adbd98fe..6173f83a495 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -136,8 +136,6 @@ pub enum ScriptMsg { SetTitle(Option<String>), /// Send a key event SendKeyEvent(Option<char>, Key, KeyState, KeyModifiers), - /// Get Window Informations size and position - GetClientWindow(IpcSender<(DeviceUintSize, DeviceIntPoint)>), /// Move the window to a point MoveTo(DeviceIntPoint), /// Resize the window to size @@ -155,6 +153,8 @@ pub enum ScriptMsg { RegisterServiceWorker(ScopeThings, ServoUrl), /// Enter or exit fullscreen SetFullscreenState(bool), + /// Get Window Informations size and position + GetClientWindow(IpcSender<(DeviceUintSize, DeviceIntPoint)>), /// Get the screen size (pixel) GetScreenSize(IpcSender<(DeviceUintSize)>), /// Get the available screen size (pixel) |