mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Update serde to 0.8 (fixes #12659)
This commit is contained in:
parent
a22913569c
commit
7ad51dcd7a
70 changed files with 919 additions and 778 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
use cookie_rs::Cookie;
|
||||
use euclid::rect::Rect;
|
||||
use hyper_serde::Serde;
|
||||
use ipc_channel::ipc::IpcSender;
|
||||
use msg::constellation_msg::PipelineId;
|
||||
use rustc_serialize::json::{Json, ToJson};
|
||||
|
@ -13,15 +14,20 @@ use url::Url;
|
|||
|
||||
#[derive(Deserialize, Serialize)]
|
||||
pub enum WebDriverScriptCommand {
|
||||
AddCookie(Cookie, IpcSender<Result<(), WebDriverCookieError>>),
|
||||
AddCookie(
|
||||
#[serde(deserialize_with = "::hyper_serde::deserialize",
|
||||
serialize_with = "::hyper_serde::serialize")]
|
||||
Cookie,
|
||||
IpcSender<Result<(), WebDriverCookieError>>
|
||||
),
|
||||
ExecuteScript(String, IpcSender<WebDriverJSResult>),
|
||||
ExecuteAsyncScript(String, IpcSender<WebDriverJSResult>),
|
||||
FindElementCSS(String, IpcSender<Result<Option<String>, ()>>),
|
||||
FindElementsCSS(String, IpcSender<Result<Vec<String>, ()>>),
|
||||
FocusElement(String, IpcSender<Result<(), ()>>),
|
||||
GetActiveElement(IpcSender<Option<String>>),
|
||||
GetCookie(String, IpcSender<Vec<Cookie>>),
|
||||
GetCookies(IpcSender<Vec<Cookie>>),
|
||||
GetCookie(String, IpcSender<Vec<Serde<Cookie>>>),
|
||||
GetCookies(IpcSender<Vec<Serde<Cookie>>>),
|
||||
GetElementAttribute(String, String, IpcSender<Result<Option<String>, ()>>),
|
||||
GetElementCSS(String, String, IpcSender<Result<String, ()>>),
|
||||
GetElementRect(String, IpcSender<Result<Rect<f64>, ()>>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue