| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |