aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorPaul Rouget <me@paulrouget.com>2018-02-20 05:15:57 +0100
committerPaul Rouget <me@paulrouget.com>2018-03-22 07:56:50 +0100
commit10abe03948423812c2d28edaef4e49918f5cf41a (patch)
tree615425daa6f8ccdc3675274100451c47bac346d8 /components/script_traits/script_msg.rs
parent28c92db26837531e75327cff7727ed8bc1c70b48 (diff)
downloadservo-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.rs4
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)