Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(836)

Unified Diff: components/web_view/public/interfaces/frame.mojom

Issue 1371773003: mandoline: Add find in page. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: General patch cleanup. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/web_view/public/interfaces/frame.mojom
diff --git a/components/web_view/public/interfaces/frame.mojom b/components/web_view/public/interfaces/frame.mojom
index d1a8f807d534260783d2a4a4360947c4c1cd74ef..ce507f92ac353fb50618a9a0f08f5f597da1c960 100644
--- a/components/web_view/public/interfaces/frame.mojom
+++ b/components/web_view/public/interfaces/frame.mojom
@@ -110,6 +110,12 @@ interface Frame {
// Dispatches a load event to the parent of the frame.
DispatchLoadEventToParent();
+
+ // Reports the number of matches for a given find.
+ ReportFindInPageMatchCount(int32 request_id, int32 count, bool final_update);
+
+ // Reports which match is currently highlighted.
+ ReportFindInPageSelection(int32 request_id, int32 active_match_ordinal);
Elliot Glaysher 2015/09/28 21:22:57 This sort of diverges from the chrome ipc version.
};
enum ViewConnectType {
@@ -166,4 +172,10 @@ interface FrameClient {
// Called to dispatch a load event of |frame_id| in its parent. This is only
// called on the FrameClient rendering the parent of |frame_id|.
OnDispatchFrameLoadEvent(uint32 frame_id);
+
+ // Finds a string in page.
+ OnFind(int32 request_id, string search_text);
+
+ // Stop highlighting the find results on the page.
+ OnStopFinding();
};

Powered by Google App Engine
This is Rietveld 408576698