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

Side by Side 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: Rebase to ToT to fix patch failure. Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module web_view.mojom; 5 module web_view.mojom;
6 6
7 import "network/public/interfaces/url_loader.mojom"; 7 import "network/public/interfaces/url_loader.mojom";
8 8
9 // This files defines the interfaces and structures used for frames. 9 // This files defines the interfaces and structures used for frames.
10 // 10 //
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 RequestNavigate(NavigationTargetType target_type, 103 RequestNavigate(NavigationTargetType target_type,
104 uint32 target_frame_id, 104 uint32 target_frame_id,
105 mojo.URLRequest request); 105 mojo.URLRequest request);
106 106
107 // The frame navigated locally, for example, pushState() navigations in an 107 // The frame navigated locally, for example, pushState() navigations in an
108 // HTML application. 108 // HTML application.
109 DidNavigateLocally(string url); 109 DidNavigateLocally(string url);
110 110
111 // Dispatches a load event to the parent of the frame. 111 // Dispatches a load event to the parent of the frame.
112 DispatchLoadEventToParent(); 112 DispatchLoadEventToParent();
113
114 // Reports the number of matches for a given find.
115 OnReportFindInFrameMatchCount(int32 request_id, int32 count,
116 bool final_update);
117
118 // Reports which match is currently highlighted.
119 OnReportFindInPageSelection(int32 request_id, int32 active_match_ordinal);
113 }; 120 };
114 121
115 enum ViewConnectType { 122 enum ViewConnectType {
116 // Indicates the app is already a ViewTreeClient and the existing view should 123 // Indicates the app is already a ViewTreeClient and the existing view should
117 // be used. In this case the app is not asked for a new ViewTreeClient. 124 // be used. In this case the app is not asked for a new ViewTreeClient.
118 USE_EXISTING, 125 USE_EXISTING,
119 126
120 // Indicates a new ViewTreeClient is obtained and the View provided to 127 // Indicates a new ViewTreeClient is obtained and the View provided to
121 // OnEmbed() should be used. 128 // OnEmbed() should be used.
122 USE_NEW 129 USE_NEW
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // Additionally it overlaps with the client properties. 166 // Additionally it overlaps with the client properties.
160 OnWillNavigate(string origin) => (); 167 OnWillNavigate(string origin) => ();
161 168
162 // Called to notify that |frame_id|'s loading state has changed. This is only 169 // Called to notify that |frame_id|'s loading state has changed. This is only
163 // called on the FrameClient rendering the parent of |frame_id|. 170 // called on the FrameClient rendering the parent of |frame_id|.
164 OnFrameLoadingStateChanged(uint32 frame_id, bool loading); 171 OnFrameLoadingStateChanged(uint32 frame_id, bool loading);
165 172
166 // Called to dispatch a load event of |frame_id| in its parent. This is only 173 // Called to dispatch a load event of |frame_id| in its parent. This is only
167 // called on the FrameClient rendering the parent of |frame_id|. 174 // called on the FrameClient rendering the parent of |frame_id|.
168 OnDispatchFrameLoadEvent(uint32 frame_id); 175 OnDispatchFrameLoadEvent(uint32 frame_id);
176
177 // TODO(erg): Several of these take a WebFindOptions struct; we probably need
178 // to build a Frame version of that struct.
179
180 // Searches for a given string synchronously. If a match is found, it will be
181 // selected. Returns true if the search string was found, false otherwise.
182 Find(int32 request_id, string search_text) =>
183 (int32 request_id, string search_text, bool found);
sky 2015/10/02 16:03:40 Does the callback really need a request_id too? Ca
Elliot Glaysher 2015/10/02 21:42:33 I put that data in a Bind() on the mojo::WebView s
184
185 // Stop highlighting the find results on the page.
186 StopFinding(bool clear_selection);
187
188 // Counts how many times a particular string occurs within a frame.
189 ScopeStringMatches(int32 request_id, string search_test, bool reset);
sky 2015/10/02 16:03:40 What does 'Scope' mean in this context? Could thi
Elliot Glaysher 2015/10/02 21:42:33 It's an opaque name from blink. I totally agree wi
190
191 CancelPendingScopingEffort();
169 }; 192 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698