mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Implemented webdriver SetWindowSize.
This commit is contained in:
parent
a4e215974c
commit
5acf0f9a05
5 changed files with 35 additions and 2 deletions
|
@ -4,9 +4,11 @@
|
|||
|
||||
use constellation_msg::{PipelineId, WindowSizeData};
|
||||
use euclid::rect::Rect;
|
||||
use euclid::size::TypedSize2D;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use rustc_serialize::json::{Json, ToJson};
|
||||
use url::Url;
|
||||
use util::geometry::ViewportPx;
|
||||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum WebDriverScriptCommand {
|
||||
|
@ -24,6 +26,7 @@ pub enum WebDriverScriptCommand {
|
|||
GetFrameId(WebDriverFrameId, IpcSender<Result<Option<PipelineId>, ()>>),
|
||||
GetUrl(IpcSender<Url>),
|
||||
GetWindowSize(IpcSender<Option<WindowSizeData>>),
|
||||
SetWindowSize(TypedSize2D<ViewportPx, f32>, IpcSender<()>),
|
||||
IsEnabled(String, IpcSender<Result<bool, ()>>),
|
||||
IsSelected(String, IpcSender<Result<bool, ()>>),
|
||||
GetTitle(IpcSender<String>)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue