aboutsummaryrefslogtreecommitdiffstats
path: root/components/msg
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2015-04-23 12:58:41 +0100
committerJames Graham <james@hoppipolla.co.uk>2015-04-23 16:14:27 +0100
commitc2fc6e311a0cb3ec4c702c77bb5d13f97bd19078 (patch)
tree2ff2f2b65614f94f34181813bd81bf38ca84ade4 /components/msg
parent1b08211a5e9ec00eeaf241b916d51dc665289825 (diff)
downloadservo-c2fc6e311a0cb3ec4c702c77bb5d13f97bd19078.tar.gz
servo-c2fc6e311a0cb3ec4c702c77bb5d13f97bd19078.zip
Add script execution support via WebDriver
Diffstat (limited to 'components/msg')
-rw-r--r--components/msg/Cargo.toml3
-rw-r--r--components/msg/constellation_msg.rs3
-rw-r--r--components/msg/lib.rs1
3 files changed, 7 insertions, 0 deletions
diff --git a/components/msg/Cargo.toml b/components/msg/Cargo.toml
index 4eeb3a3b524..b3a0ebfe5d1 100644
--- a/components/msg/Cargo.toml
+++ b/components/msg/Cargo.toml
@@ -14,6 +14,9 @@ path = "../style"
[dependencies.util]
path = "../util"
+[dependencies.webdriver_traits]
+path = "../webdriver_traits"
+
[dependencies.azure]
git = "https://github.com/servo/rust-azure"
diff --git a/components/msg/constellation_msg.rs b/components/msg/constellation_msg.rs
index 6029541336f..7b44a4b4c84 100644
--- a/components/msg/constellation_msg.rs
+++ b/components/msg/constellation_msg.rs
@@ -14,6 +14,7 @@ use layers::geometry::DevicePixel;
use util::cursor::Cursor;
use util::geometry::{PagePx, ViewportPx};
use std::sync::mpsc::{channel, Sender, Receiver};
+use webdriver_traits::WebDriverScriptCommand;
use url::Url;
#[derive(Clone)]
@@ -231,6 +232,8 @@ pub enum Msg {
FocusMsg(PipelineId),
/// Requests that the constellation retrieve the current contents of the clipboard
GetClipboardContents(Sender<String>),
+ // Dispatch a webdriver command
+ WebDriverCommandMsg(PipelineId, WebDriverScriptCommand)
}
// https://developer.mozilla.org/en-US/docs/Web/API/Using_the_Browser_API#Events
diff --git a/components/msg/lib.rs b/components/msg/lib.rs
index 7b52067c927..fc125583e95 100644
--- a/components/msg/lib.rs
+++ b/components/msg/lib.rs
@@ -9,6 +9,7 @@ extern crate hyper;
extern crate layers;
extern crate util;
extern crate url;
+extern crate webdriver_traits;
#[cfg(target_os="macos")]
extern crate core_foundation;