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

Side by Side Diff: content/public/browser/render_view_host.h

Issue 10941015: [Android] Upstream the WebView find-in-page API implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit fixes. Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 6 #define CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 virtual void UpdateWebkitPreferences( 266 virtual void UpdateWebkitPreferences(
267 const webkit_glue::WebPreferences& prefs) = 0; 267 const webkit_glue::WebPreferences& prefs) = 0;
268 268
269 #if defined(OS_ANDROID) 269 #if defined(OS_ANDROID)
270 // Selects and zooms to the find result nearest to the point (x,y) 270 // Selects and zooms to the find result nearest to the point (x,y)
271 // defined in find-in-page coordinates. 271 // defined in find-in-page coordinates.
272 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; 272 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0;
273 273
274 // Asks the renderer to send the rects of the current find matches. 274 // Asks the renderer to send the rects of the current find matches.
275 virtual void RequestFindMatchRects(int current_version) = 0; 275 virtual void RequestFindMatchRects(int current_version) = 0;
276
277 // Synchronous find request. Returns the number of matches found and the
278 // ordinal of the active match. Required by the legacy Android WebView API.
279 virtual void SynchronousFind(int request_id,
280 const string16& search_text,
281 const WebKit::WebFindOptions& options,
282 int* match_count,
283 int* active_ordinal) = 0;
276 #endif 284 #endif
277 285
278 }; 286 };
279 287
280 } // namespace content 288 } // namespace content
281 289
282 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ 290 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698