aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/script_msg.rs
diff options
context:
space:
mode:
authorShing Lyu <shing.lyu@gmail.com>2017-09-27 10:32:51 +0200
committerShing Lyu <shing.lyu@gmail.com>2017-11-13 21:32:10 +0100
commitc120234f0e8c71e4f9c217796266492ac2a013fa (patch)
tree12f51a708aa58d2a8a3188ae2a7afc5e99648061 /components/script_traits/script_msg.rs
parent657b2339a1e68f3a9c4525f35db023d3f149ffac (diff)
downloadservo-c120234f0e8c71e4f9c217796266492ac2a013fa.tar.gz
servo-c120234f0e8c71e4f9c217796266492ac2a013fa.zip
Enable screen.availHeight/availWidth/Height/Width
Diffstat (limited to 'components/script_traits/script_msg.rs')
-rw-r--r--components/script_traits/script_msg.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs
index a26eccec958..92254b3aabd 100644
--- a/components/script_traits/script_msg.rs
+++ b/components/script_traits/script_msg.rs
@@ -157,6 +157,10 @@ pub enum ScriptMsg {
RegisterServiceWorker(ScopeThings, ServoUrl),
/// Enter or exit fullscreen
SetFullscreenState(bool),
+ /// Get the screen size (pixel)
+ GetScreenSize(IpcSender<(Size2D<u32>)>),
+ /// Get the available screen size (pixel)
+ GetScreenAvailSize(IpcSender<(Size2D<u32>)>),
/// Requests that the compositor shut down.
Exit,
}