mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01: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
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue