mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Implement wire protocol support for DOM inspector.
This commit is contained in:
parent
c31e2f928d
commit
e9c4aa534d
5 changed files with 554 additions and 18 deletions
|
@ -15,7 +15,9 @@ use std::io::TcpStream;
|
|||
|
||||
#[deriving(Encodable)]
|
||||
struct ActorTraits {
|
||||
sources: bool
|
||||
sources: bool,
|
||||
highlightable: bool,
|
||||
customHighlighters: Vec<String>,
|
||||
}
|
||||
|
||||
#[deriving(Encodable)]
|
||||
|
@ -40,7 +42,6 @@ struct RootActorMsg {
|
|||
}
|
||||
|
||||
pub struct RootActor {
|
||||
pub next: u32,
|
||||
pub tabs: Vec<String>,
|
||||
}
|
||||
|
||||
|
@ -90,6 +91,8 @@ impl RootActor {
|
|||
applicationType: "browser".to_string(),
|
||||
traits: ActorTraits {
|
||||
sources: true,
|
||||
highlightable: true,
|
||||
customHighlighters: vec!("BoxModelHighlighter".to_string()),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue