mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Enable screen.availHeight/availWidth/Height/Width
This commit is contained in:
parent
657b2339a1
commit
c120234f0e
16 changed files with 138 additions and 84 deletions
|
@ -124,6 +124,10 @@ pub enum EmbedderMsg {
|
|||
ResizeTo(TopLevelBrowsingContextId, Size2D<u32>),
|
||||
/// Get Window Informations size and position
|
||||
GetClientWindow(TopLevelBrowsingContextId, IpcSender<(Size2D<u32>, Point2D<i32>)>),
|
||||
/// Get screen size (pixel)
|
||||
GetScreenSize(TopLevelBrowsingContextId, IpcSender<(Size2D<u32>)>),
|
||||
/// Get screen available size (pixel)
|
||||
GetScreenAvailSize(TopLevelBrowsingContextId, IpcSender<(Size2D<u32>)>),
|
||||
/// Wether or not to follow a link
|
||||
AllowNavigation(TopLevelBrowsingContextId, ServoUrl, IpcSender<bool>),
|
||||
/// Sends an unconsumed key event back to the embedder.
|
||||
|
@ -222,6 +226,8 @@ impl Debug for EmbedderMsg {
|
|||
EmbedderMsg::MoveTo(..) => write!(f, "MoveTo"),
|
||||
EmbedderMsg::ResizeTo(..) => write!(f, "ResizeTo"),
|
||||
EmbedderMsg::GetClientWindow(..) => write!(f, "GetClientWindow"),
|
||||
EmbedderMsg::GetScreenSize(..) => write!(f, "GetScreenSize"),
|
||||
EmbedderMsg::GetScreenAvailSize(..) => write!(f, "GetScreenAvailSize"),
|
||||
EmbedderMsg::AllowNavigation(..) => write!(f, "AllowNavigation"),
|
||||
EmbedderMsg::KeyEvent(..) => write!(f, "KeyEvent"),
|
||||
EmbedderMsg::SetCursor(..) => write!(f, "SetCursor"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue