mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +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
eadce2ebe0
commit
8381b5a6d6
1 changed files with 17 additions and 0 deletions
|
@ -91,6 +91,12 @@ pub enum Location {
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Serialize)]
|
||||||
|
struct GetAvailableEventBreakpointsReply {
|
||||||
|
from: String,
|
||||||
|
value: Vec<()>,
|
||||||
|
}
|
||||||
|
|
||||||
impl Actor for ThreadActor {
|
impl Actor for ThreadActor {
|
||||||
fn name(&self) -> String {
|
fn name(&self) -> String {
|
||||||
self.name.clone()
|
self.name.clone()
|
||||||
|
@ -152,6 +158,17 @@ impl Actor for ThreadActor {
|
||||||
};
|
};
|
||||||
request.reply_final(&msg)?
|
request.reply_final(&msg)?
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// 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![],
|
||||||
|
};
|
||||||
|
request.reply_final(&msg)?
|
||||||
|
},
|
||||||
|
|
||||||
_ => return Err(ActorError::UnrecognizedPacketType),
|
_ => return Err(ActorError::UnrecognizedPacketType),
|
||||||
};
|
};
|
||||||
Ok(())
|
Ok(())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue