| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 virtual void SyncRendererPrefs() = 0; | 258 virtual void SyncRendererPrefs() = 0; |
| 259 | 259 |
| 260 virtual void ToggleSpeechInput() = 0; | 260 virtual void ToggleSpeechInput() = 0; |
| 261 | 261 |
| 262 // Returns the current WebKit preferences. | 262 // Returns the current WebKit preferences. |
| 263 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; | 263 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; |
| 264 | 264 |
| 265 // Passes a list of Webkit preferences to the renderer. | 265 // Passes a list of Webkit preferences to the renderer. |
| 266 virtual void UpdateWebkitPreferences( | 266 virtual void UpdateWebkitPreferences( |
| 267 const webkit_glue::WebPreferences& prefs) = 0; | 267 const webkit_glue::WebPreferences& prefs) = 0; |
| 268 |
| 269 #if defined(OS_ANDROID) |
| 270 // Selects and zooms to the find result nearest to the point (x,y) |
| 271 // defined in find-in-page coordinates. |
| 272 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; |
| 273 |
| 274 // Asks the renderer to send the rects of the current find matches. |
| 275 virtual void RequestFindMatchRects(int current_version) = 0; |
| 276 #endif |
| 277 |
| 268 }; | 278 }; |
| 269 | 279 |
| 270 } // namespace content | 280 } // namespace content |
| 271 | 281 |
| 272 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 282 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
| OLD | NEW |