Add script execution support via WebDriver

This commit is contained in:
James Graham 2015-04-23 12:58:41 +01:00
parent 1b08211a5e
commit c2fc6e311a
19 changed files with 223 additions and 18 deletions

View file

@ -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"

View file

@ -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

View file

@ -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;