mirror of
https://github.com/servo/servo.git
synced 2025-06-13 19:04:30 +00:00
Add script execution support via WebDriver
This commit is contained in:
parent
1b08211a5e
commit
c2fc6e311a
19 changed files with 223 additions and 18 deletions
|
@ -9,6 +9,7 @@ extern crate msg;
|
|||
extern crate net_traits;
|
||||
extern crate util;
|
||||
extern crate url;
|
||||
extern crate webdriver_traits;
|
||||
|
||||
// This module contains traits in script used generically
|
||||
// in the rest of Servo.
|
||||
|
@ -26,6 +27,7 @@ use net_traits::image_cache_task::ImageCacheTask;
|
|||
use net_traits::storage_task::StorageTask;
|
||||
use std::any::Any;
|
||||
use std::sync::mpsc::{Sender, Receiver};
|
||||
use webdriver_traits::WebDriverScriptCommand;
|
||||
|
||||
use geom::point::Point2D;
|
||||
use geom::rect::Rect;
|
||||
|
@ -75,6 +77,8 @@ pub enum ConstellationControlMsg {
|
|||
UpdateSubpageId(PipelineId, SubpageId, SubpageId),
|
||||
/// Set an iframe to be focused. Used when an element in an iframe gains focus.
|
||||
FocusIFrameMsg(PipelineId, SubpageId),
|
||||
// Passes a webdriver command to the script task for execution
|
||||
WebDriverCommandMsg(PipelineId, WebDriverScriptCommand)
|
||||
}
|
||||
|
||||
/// The mouse button involved in the event.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue