diff options
author | James Graham <james@hoppipolla.co.uk> | 2015-04-23 12:58:41 +0100 |
---|---|---|
committer | James Graham <james@hoppipolla.co.uk> | 2015-04-23 16:14:27 +0100 |
commit | c2fc6e311a0cb3ec4c702c77bb5d13f97bd19078 (patch) | |
tree | 2ff2f2b65614f94f34181813bd81bf38ca84ade4 /components/script_traits/lib.rs | |
parent | 1b08211a5e9ec00eeaf241b916d51dc665289825 (diff) | |
download | servo-c2fc6e311a0cb3ec4c702c77bb5d13f97bd19078.tar.gz servo-c2fc6e311a0cb3ec4c702c77bb5d13f97bd19078.zip |
Add script execution support via WebDriver
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index b5045d5a832..82f917733de 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -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. |