mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Dummy handler for getAvailableEventBreakpoints in thread actor
Co-authored-by: atbrakhi <atbrakhi@igalia.com> Signed-off-by: Delan Azabani <dazabani@igalia.com>
This commit is contained in:
parent
5f105f69e8
commit
d58912cbdf
1 changed files with 18 additions and 0 deletions
|
@ -93,6 +93,12 @@ pub enum Location {
|
|||
},
|
||||
}
|
||||
|
||||
#[derive(Serialize)]
|
||||
struct GetAvailableEventBreakpointsReply {
|
||||
from: String,
|
||||
value: Vec<()>,
|
||||
}
|
||||
|
||||
impl Actor for ThreadActor {
|
||||
fn name(&self) -> String {
|
||||
self.name.clone()
|
||||
|
@ -160,6 +166,18 @@ impl Actor for ThreadActor {
|
|||
let _ = stream.write_json_packet(&msg);
|
||||
ActorMessageStatus::Processed
|
||||
},
|
||||
|
||||
// Client wants to know what Event Listener Breakpoints are available for this thread.
|
||||
"getAvailableEventBreakpoints" => {
|
||||
let msg = GetAvailableEventBreakpointsReply {
|
||||
from: self.name(),
|
||||
// TODO: populate this.
|
||||
value: vec![],
|
||||
};
|
||||
let _ = stream.write_json_packet(&msg);
|
||||
ActorMessageStatus::Processed
|
||||
},
|
||||
|
||||
_ => ActorMessageStatus::Ignored,
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue