diff options
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. |