aboutsummaryrefslogtreecommitdiffstats
path: root/ports/servoshell/egl/servo_glue.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2025-02-03 23:31:17 +0100
committerGitHub <noreply@github.com>2025-02-03 22:31:17 +0000
commitfdfaf7b15c74358976f6df588217ca2344f3944b (patch)
tree8fa6811df16eefb12f77b6e7db7c748a5617f219 /ports/servoshell/egl/servo_glue.rs
parentb8ab820e3c3318011d7f35acc586e650bc5b8f27 (diff)
downloadservo-fdfaf7b15c74358976f6df588217ca2344f3944b.tar.gz
servo-fdfaf7b15c74358976f6df588217ca2344f3944b.zip
libservo: Combine `LoadStart, `HeadParsed`, and `LoadComplete` messages (#35260)
These will be a single method in the upcoming `WebView` delegate, so it makes sense to also combine the internal message to match this. In addition, since `LoadStatus` is now exposed to the API if there is ever the need to add more statuses or to move to an event-based version, the API is already set up for this. Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Diffstat (limited to 'ports/servoshell/egl/servo_glue.rs')
-rw-r--r--ports/servoshell/egl/servo_glue.rs10
1 files changed, 4 insertions, 6 deletions
diff --git a/ports/servoshell/egl/servo_glue.rs b/ports/servoshell/egl/servo_glue.rs
index 5311f2a197c..2d9f9db1b41 100644
--- a/ports/servoshell/egl/servo_glue.rs
+++ b/ports/servoshell/egl/servo_glue.rs
@@ -479,11 +479,10 @@ impl ServoGlue {
.host_callbacks
.on_url_changed(entries[current].clone().to_string());
},
- EmbedderMsg::LoadStart(_) => {
- self.callbacks.host_callbacks.on_load_started();
- },
- EmbedderMsg::LoadComplete(_) => {
- self.callbacks.host_callbacks.on_load_ended();
+ EmbedderMsg::NotifyLoadStatusChanged(_, load_status) => {
+ self.callbacks
+ .host_callbacks
+ .notify_load_status_changed(load_status);
},
EmbedderMsg::GetSelectedBluetoothDevice(_, _, sender) => {
let _ = sender.send(None);
@@ -653,7 +652,6 @@ impl ServoGlue {
EmbedderMsg::MoveTo(..) |
EmbedderMsg::SetCursor(..) |
EmbedderMsg::NewFavicon(..) |
- EmbedderMsg::HeadParsed(..) |
EmbedderMsg::SetFullscreenState(..) |
EmbedderMsg::ReportProfile(..) |
EmbedderMsg::EventDelivered(..) |