move ConstellationMsg to compositing

This commit is contained in:
Kunal Mohan 2020-01-28 23:32:22 +05:30
parent b3ac17b82f
commit 8d4aeef08b
No known key found for this signature in database
GPG key ID: 2B475A4524237BAC
15 changed files with 133 additions and 122 deletions

View file

@ -12,6 +12,7 @@ path = "lib.rs"
[dependencies]
base64 = "0.10"
compositing = {path = "../compositing"}
cookie = "0.11"
crossbeam-channel = "0.3"
euclid = "0.20"

View file

@ -3,10 +3,11 @@
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
use crate::Handler;
use compositing::ConstellationMsg;
use ipc_channel::ipc;
use keyboard_types::webdriver::KeyInputState;
use script_traits::webdriver_msg::WebDriverScriptCommand;
use script_traits::{ConstellationMsg, MouseButton, MouseEventType, WebDriverCommandMsg};
use script_traits::{MouseButton, MouseEventType, WebDriverCommandMsg};
use std::cmp;
use std::collections::HashSet;
use std::thread;

View file

@ -21,6 +21,7 @@ mod capabilities;
use crate::actions::{InputSourceState, PointerInputState};
use base64;
use capabilities::ServoCapabilities;
use compositing::ConstellationMsg;
use crossbeam_channel::{after, unbounded, Receiver, Sender};
use euclid::{Rect, Size2D};
use hyper::Method;
@ -34,7 +35,7 @@ use script_traits::webdriver_msg::{LoadStatus, WebDriverCookieError, WebDriverFr
use script_traits::webdriver_msg::{
WebDriverJSError, WebDriverJSResult, WebDriverJSValue, WebDriverScriptCommand,
};
use script_traits::{ConstellationMsg, LoadData, LoadOrigin, WebDriverCommandMsg};
use script_traits::{LoadData, LoadOrigin, WebDriverCommandMsg};
use serde::de::{Deserialize, Deserializer, MapAccess, Visitor};
use serde::ser::{Serialize, Serializer};
use serde_json::{json, Value};