Implement wire protocol support for DOM inspector.

This commit is contained in:
Josh Matthews 2014-09-03 01:41:06 -04:00
parent c31e2f928d
commit e9c4aa534d
5 changed files with 554 additions and 18 deletions

View file

@ -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()),
},
}
}