Enable screen.availHeight/availWidth/Height/Width

This commit is contained in:
Shing Lyu 2017-09-27 10:32:51 +02:00
parent 657b2339a1
commit c120234f0e
16 changed files with 138 additions and 84 deletions

View file

@ -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,
}