diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2016-03-24 01:21:08 +0100 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2016-03-24 10:28:28 +0100 |
commit | 04e085a4e50df45ed38e43172ceee055d3e68280 (patch) | |
tree | 0859d85528a04a85721fe7d353d3b73c64333517 | |
parent | dbfa4f06b727eaa15aad4a8db1cd1d2d98119d55 (diff) | |
download | servo-04e085a4e50df45ed38e43172ceee055d3e68280.tar.gz servo-04e085a4e50df45ed38e43172ceee055d3e68280.zip |
Add a dummy reconfigure reply in the thread actor
-rw-r--r-- | components/devtools/actors/console.rs | 15 | ||||
-rw-r--r-- | components/devtools/actors/thread.rs | 10 |
2 files changed, 25 insertions, 0 deletions
diff --git a/components/devtools/actors/console.rs b/components/devtools/actors/console.rs index 31c404966e8..427e7eee043 100644 --- a/components/devtools/actors/console.rs +++ b/components/devtools/actors/console.rs @@ -77,6 +77,12 @@ struct EvaluateJSReply { helperResult: Json, } +#[derive(RustcEncodable)] +struct SetPreferencesReply { + from: String, + updated: Vec<String>, +} + pub struct ConsoleActor { pub name: String, pub pipeline: PipelineId, @@ -237,6 +243,15 @@ impl Actor for ConsoleActor { ActorMessageStatus::Processed } + "setPreferences" => { + let msg = SetPreferencesReply { + from: self.name(), + updated: vec![], + }; + stream.write_json_packet(&msg); + ActorMessageStatus::Processed + } + _ => ActorMessageStatus::Ignored }) } diff --git a/components/devtools/actors/thread.rs b/components/devtools/actors/thread.rs index 087e1e9027f..232e91d0a56 100644 --- a/components/devtools/actors/thread.rs +++ b/components/devtools/actors/thread.rs @@ -30,6 +30,11 @@ struct ThreadResumedReply { __type__: String, } +#[derive(RustcEncodable)] +struct ReconfigureReply { + from: String +} + pub struct ThreadActor { name: String, } @@ -74,6 +79,11 @@ impl Actor for ThreadActor { ActorMessageStatus::Processed }, + "reconfigure" => { + stream.write_json_packet(&ReconfigureReply { from: self.name() }); + ActorMessageStatus::Processed + } + _ => ActorMessageStatus::Ignored, }) } |