mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Migrate Android and OHOS ports to the delegate API (#35315)
Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
parent
e7a6691628
commit
e0689c1f0b
9 changed files with 794 additions and 784 deletions
|
@ -613,7 +613,7 @@ impl Servo {
|
|||
)
|
||||
}
|
||||
|
||||
fn handle_window_event(&mut self, event: EmbedderEvent) {
|
||||
fn handle_window_event(&self, event: EmbedderEvent) {
|
||||
match event {
|
||||
EmbedderEvent::Idle => {},
|
||||
|
||||
|
@ -913,7 +913,7 @@ impl Servo {
|
|||
std::mem::take(&mut *self.messages_for_embedder.borrow_mut())
|
||||
}
|
||||
|
||||
pub fn handle_events(&mut self, events: impl IntoIterator<Item = EmbedderEvent>) {
|
||||
pub fn handle_events(&self, events: impl IntoIterator<Item = EmbedderEvent>) {
|
||||
if self.compositor.borrow_mut().receive_messages() {
|
||||
self.receive_messages();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue