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:
Mukilan Thiyagarajan 2025-02-06 19:51:29 +05:30 committed by GitHub
parent e7a6691628
commit e0689c1f0b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 794 additions and 784 deletions

View file

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