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/callback_forward.h" | 8 #include "base/callback_forward.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 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 // Returns the current WebKit preferences. | 271 // Returns the current WebKit preferences. |
272 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; | 272 virtual webkit_glue::WebPreferences GetWebkitPreferences() = 0; |
273 | 273 |
274 // Passes a list of Webkit preferences to the renderer. | 274 // Passes a list of Webkit preferences to the renderer. |
275 virtual void UpdateWebkitPreferences( | 275 virtual void UpdateWebkitPreferences( |
276 const webkit_glue::WebPreferences& prefs) = 0; | 276 const webkit_glue::WebPreferences& prefs) = 0; |
277 | 277 |
278 // Informs the renderer process of a change in timezone. | 278 // Informs the renderer process of a change in timezone. |
279 virtual void NotifyTimezoneChange() = 0; | 279 virtual void NotifyTimezoneChange() = 0; |
280 | 280 |
| 281 // Set accessibility callbacks. |
| 282 virtual void SetAccessibilityLayoutCompleteCallbackForTesting( |
| 283 const base::Closure& callback) = 0; |
| 284 virtual void SetAccessibilityLoadCompleteCallbackForTesting( |
| 285 const base::Closure& callback) = 0; |
| 286 virtual void SetAccessibilityOtherCallbackForTesting( |
| 287 const base::Closure& callback) = 0; |
| 288 |
281 #if defined(OS_ANDROID) | 289 #if defined(OS_ANDROID) |
282 // Selects and zooms to the find result nearest to the point (x,y) | 290 // Selects and zooms to the find result nearest to the point (x,y) |
283 // defined in find-in-page coordinates. | 291 // defined in find-in-page coordinates. |
284 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; | 292 virtual void ActivateNearestFindResult(int request_id, float x, float y) = 0; |
285 | 293 |
286 // Asks the renderer to send the rects of the current find matches. | 294 // Asks the renderer to send the rects of the current find matches. |
287 virtual void RequestFindMatchRects(int current_version) = 0; | 295 virtual void RequestFindMatchRects(int current_version) = 0; |
288 | 296 |
289 // Synchronous find request. Returns the number of matches found and the | 297 // Synchronous find request. Returns the number of matches found and the |
290 // ordinal of the active match. Required by the legacy Android WebView API. | 298 // ordinal of the active match. Required by the legacy Android WebView API. |
291 virtual void SynchronousFind(int request_id, | 299 virtual void SynchronousFind(int request_id, |
292 const string16& search_text, | 300 const string16& search_text, |
293 const WebKit::WebFindOptions& options, | 301 const WebKit::WebFindOptions& options, |
294 int* match_count, | 302 int* match_count, |
295 int* active_ordinal) = 0; | 303 int* active_ordinal) = 0; |
296 #endif | 304 #endif |
297 | 305 |
298 }; | 306 }; |
299 | 307 |
300 } // namespace content | 308 } // namespace content |
301 | 309 |
302 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ | 310 #endif // CONTENT_PUBLIC_BROWSER_RENDER_VIEW_HOST_H_ |
OLD | NEW |