mirror of
https://github.com/servo/servo.git
synced 2025-08-01 03:30:33 +01:00
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:
parent
f0f7e98dfa
commit
cdb4037ca2
7 changed files with 262 additions and 58 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue