Mojofy FrameHostMsg_FrameFocused.
Since this is the first RenderFrameHostProxy/RenderFrameProxy method to
be mojofied, this CL also adds the boilerplate for establishing a mojo
connection between RenderFrameHostProxy/RenderFrameProxy.
Change-Id: I9153eb01b7a5bef374823a067eaf793a48b6a3fe
Bug: 786836
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1643473
Commit-Queue: Lowell Manners <[email protected]>
Reviewed-by: Ken Rockot <[email protected]>
Reviewed-by: Alex Moshchuk <[email protected]>
Reviewed-by: Daniel Cheng <[email protected]>
Cr-Commit-Position: refs/heads/master@{#683111}
diff --git a/content/common/BUILD.gn b/content/common/BUILD.gn
index ad6805da..3d35826 100644
--- a/content/common/BUILD.gn
+++ b/content/common/BUILD.gn
@@ -467,6 +467,7 @@
"field_trial_recorder.mojom",
"frame.mojom",
"frame_messages.mojom",
+ "frame_proxy.mojom",
"frame_sink_provider.mojom",
"histogram_fetcher.mojom",
"host_zoom.mojom",
diff --git a/content/common/frame.mojom b/content/common/frame.mojom
index 769b35b..453b32e4 100644
--- a/content/common/frame.mojom
+++ b/content/common/frame.mojom
@@ -546,4 +546,7 @@
ShowCreatedWindow(int32 pending_widget_routing_id,
ui.mojom.WindowOpenDisposition disposition,
gfx.mojom.Rect rect, bool opened_by_user_gesture);
+
+ // Sent by the renderer when the frame becomes focused.
+ FrameFocused();
};
diff --git a/content/common/frame_messages.h b/content/common/frame_messages.h
index a4971e4..0115866 100644
--- a/content/common/frame_messages.h
+++ b/content/common/frame_messages.h
@@ -1020,9 +1020,6 @@
// detached from the DOM.
IPC_MESSAGE_ROUTED0(FrameHostMsg_Detach)
-// Sent by the renderer when the frame becomes focused.
-IPC_MESSAGE_ROUTED0(FrameHostMsg_FrameFocused)
-
// Notifies the browser that a document has been loaded.
IPC_MESSAGE_ROUTED0(FrameHostMsg_DidFinishDocumentLoad)
diff --git a/content/common/frame_proxy.mojom b/content/common/frame_proxy.mojom
new file mode 100644
index 0000000..00952790
--- /dev/null
+++ b/content/common/frame_proxy.mojom
@@ -0,0 +1,13 @@
+// Copyright 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module content.mojom;
+
+// Mojo interface for communicating from RenderFrameProxy to
+// RenderFrameProxyHost.
+interface RenderFrameProxyHost {
+ // Sent by the renderer when the frame becomes focused.
+ FrameFocused();
+};
+