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_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 virtual void SetWebUIProperty(const std::string& name, | 201 virtual void SetWebUIProperty(const std::string& name, |
202 const std::string& value) OVERRIDE; | 202 const std::string& value) OVERRIDE; |
203 virtual void SetZoomLevel(double level) OVERRIDE; | 203 virtual void SetZoomLevel(double level) OVERRIDE; |
204 virtual void Zoom(PageZoom zoom) OVERRIDE; | 204 virtual void Zoom(PageZoom zoom) OVERRIDE; |
205 virtual void SyncRendererPrefs() OVERRIDE; | 205 virtual void SyncRendererPrefs() OVERRIDE; |
206 virtual void ToggleSpeechInput() OVERRIDE; | 206 virtual void ToggleSpeechInput() OVERRIDE; |
207 virtual webkit_glue::WebPreferences GetWebkitPreferences() OVERRIDE; | 207 virtual webkit_glue::WebPreferences GetWebkitPreferences() OVERRIDE; |
208 virtual void UpdateWebkitPreferences( | 208 virtual void UpdateWebkitPreferences( |
209 const webkit_glue::WebPreferences& prefs) OVERRIDE; | 209 const webkit_glue::WebPreferences& prefs) OVERRIDE; |
210 virtual void NotifyTimezoneChange() OVERRIDE; | 210 virtual void NotifyTimezoneChange() OVERRIDE; |
| 211 virtual void SetAccessibilityLayoutCompleteCallbackForTesting( |
| 212 const base::Closure& callback) OVERRIDE; |
| 213 virtual void SetAccessibilityLoadCompleteCallbackForTesting( |
| 214 const base::Closure& callback) OVERRIDE; |
| 215 virtual void SetAccessibilityOtherCallbackForTesting( |
| 216 const base::Closure& callback) OVERRIDE; |
211 | 217 |
212 #if defined(OS_ANDROID) | 218 #if defined(OS_ANDROID) |
213 virtual void ActivateNearestFindResult(int request_id, | 219 virtual void ActivateNearestFindResult(int request_id, |
214 float x, | 220 float x, |
215 float y) OVERRIDE; | 221 float y) OVERRIDE; |
216 virtual void RequestFindMatchRects(int current_version) OVERRIDE; | 222 virtual void RequestFindMatchRects(int current_version) OVERRIDE; |
217 virtual void SynchronousFind(int request_id, | 223 virtual void SynchronousFind(int request_id, |
218 const string16& search_text, | 224 const string16& search_text, |
219 const WebKit::WebFindOptions& options, | 225 const WebKit::WebFindOptions& options, |
220 int* match_count, | 226 int* match_count, |
(...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
645 // the case of a cross-site transition ( = true). | 651 // the case of a cross-site transition ( = true). |
646 bool unload_ack_is_for_cross_site_transition_; | 652 bool unload_ack_is_for_cross_site_transition_; |
647 | 653 |
648 bool are_javascript_messages_suppressed_; | 654 bool are_javascript_messages_suppressed_; |
649 | 655 |
650 // The mapping of pending javascript calls created by | 656 // The mapping of pending javascript calls created by |
651 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding | 657 // ExecuteJavascriptInWebFrameCallbackResult and their corresponding |
652 // callbacks. | 658 // callbacks. |
653 std::map<int, JavascriptResultCallback> javascript_callbacks_; | 659 std::map<int, JavascriptResultCallback> javascript_callbacks_; |
654 | 660 |
| 661 // Accessibility callbacks. |
| 662 base::Closure accessibility_layout_callback_; |
| 663 base::Closure accessibility_load_callback_; |
| 664 base::Closure accessibility_other_callback_; |
| 665 |
655 // True if the render view can be shut down suddenly. | 666 // True if the render view can be shut down suddenly. |
656 bool sudden_termination_allowed_; | 667 bool sudden_termination_allowed_; |
657 | 668 |
658 // The session storage namespace to be used by the associated render view. | 669 // The session storage namespace to be used by the associated render view. |
659 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_; | 670 scoped_refptr<SessionStorageNamespaceImpl> session_storage_namespace_; |
660 | 671 |
661 // Whether the accessibility tree should be saved, for unit testing. | 672 // Whether the accessibility tree should be saved, for unit testing. |
662 bool save_accessibility_tree_for_testing_; | 673 bool save_accessibility_tree_for_testing_; |
663 | 674 |
664 // A JSON serialized representation of the frame tree for the current document | 675 // A JSON serialized representation of the frame tree for the current document |
(...skipping 27 matching lines...) Expand all Loading... |
692 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); | 703 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); |
693 }; | 704 }; |
694 | 705 |
695 #if defined(COMPILER_MSVC) | 706 #if defined(COMPILER_MSVC) |
696 #pragma warning(pop) | 707 #pragma warning(pop) |
697 #endif | 708 #endif |
698 | 709 |
699 } // namespace content | 710 } // namespace content |
700 | 711 |
701 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ | 712 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ |
OLD | NEW |