aboutsummaryrefslogtreecommitdiffstats
path: root/components/devtools/actors/browsing_context.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/devtools/actors/browsing_context.rs')
-rw-r--r--components/devtools/actors/browsing_context.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/components/devtools/actors/browsing_context.rs b/components/devtools/actors/browsing_context.rs
index 81a00e82d47..fc5116131a0 100644
--- a/components/devtools/actors/browsing_context.rs
+++ b/components/devtools/actors/browsing_context.rs
@@ -82,6 +82,13 @@ struct BrowsingContextTraits {
}
#[derive(Serialize)]
+#[serde(rename_all = "lowercase")]
+enum TargetType {
+ Frame,
+ // Other target types not implemented yet.
+}
+
+#[derive(Serialize)]
#[serde(rename_all = "camelCase")]
pub struct BrowsingContextActorMsg {
actor: String,
@@ -104,6 +111,7 @@ pub struct BrowsingContextActorMsg {
reflow_actor: String,
style_sheets_actor: String,
thread_actor: String,
+ target_type: TargetType,
// Part of the official protocol, but not yet implemented.
// animations_actor: String,
// changes_actor: String,
@@ -302,6 +310,7 @@ impl BrowsingContextActor {
reflow_actor: self.reflow.clone(),
style_sheets_actor: self.style_sheets.clone(),
thread_actor: self.thread.clone(),
+ target_type: TargetType::Frame,
}
}