mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Made SetWindowSize synchronous.
This commit is contained in:
parent
5acf0f9a05
commit
e2203f81d3
6 changed files with 34 additions and 45 deletions
|
@ -6,7 +6,7 @@
|
|||
//! reduce coupling between these two components.
|
||||
|
||||
use euclid::scale_factor::ScaleFactor;
|
||||
use euclid::size::TypedSize2D;
|
||||
use euclid::size::{Size2D, TypedSize2D};
|
||||
use hyper::header::Headers;
|
||||
use hyper::method::Method;
|
||||
use ipc_channel::ipc::{IpcSender, IpcSharedMemory};
|
||||
|
@ -188,10 +188,12 @@ bitflags! {
|
|||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum WebDriverCommandMsg {
|
||||
GetWindowSize(PipelineId, IpcSender<WindowSizeData>),
|
||||
LoadUrl(PipelineId, LoadData, IpcSender<LoadStatus>),
|
||||
Refresh(PipelineId, IpcSender<LoadStatus>),
|
||||
ScriptCommand(PipelineId, WebDriverScriptCommand),
|
||||
SendKeys(PipelineId, Vec<(Key, KeyModifiers, KeyState)>),
|
||||
SetWindowSize(PipelineId, Size2D<u32>, IpcSender<WindowSizeData>),
|
||||
TakeScreenshot(PipelineId, IpcSender<Option<Image>>),
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue