Enable executing JS snippets in the context of the main Servo window and viewing the responses from the Firefox remote console.

This commit is contained in:
Josh Matthews 2014-08-29 16:17:14 -04:00
parent f0f7e98dfa
commit cdb4037ca2
7 changed files with 262 additions and 58 deletions

View file

@ -8,24 +8,29 @@
#![comment = "The Servo Parallel Browser Project"]
#![license = "MPL"]
extern crate servo_msg = "msg";
use servo_msg::constellation_msg::PipelineId;
pub type DevtoolsControlChan = Sender<DevtoolsControlMsg>;
pub type DevtoolsControlPort = Receiver<DevtoolScriptControlMsg>;
pub enum DevtoolsControlMsg {
NewGlobal(Sender<DevtoolScriptControlMsg>),
NewGlobal(PipelineId, Sender<DevtoolScriptControlMsg>),
ServerExitMsg
}
pub enum EvaluateJSReply {
VoidValue,
NullValue,
BooleanValue(bool),
NumberValue(f64),
StringValue(String),
ActorValue(String),
}
pub enum DevtoolScriptControlMsg {
EvaluateJS(String, Sender<EvaluateJSReply>),
EvaluateJS(PipelineId, String, Sender<EvaluateJSReply>),
}
pub enum ScriptDevtoolControlMsg {