| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 WebKit::WebView* webview() const; | 202 WebKit::WebView* webview() const; |
| 203 | 203 |
| 204 // Called by a GraphicsContext associated with this view when swapbuffers | 204 // Called by a GraphicsContext associated with this view when swapbuffers |
| 205 // completes or is aborted. | 205 // completes or is aborted. |
| 206 void OnViewContextSwapBuffersComplete(); | 206 void OnViewContextSwapBuffersComplete(); |
| 207 void OnViewContextSwapBuffersAborted(); | 207 void OnViewContextSwapBuffersAborted(); |
| 208 | 208 |
| 209 int page_id() const { return page_id_; } | 209 int page_id() const { return page_id_; } |
| 210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } | 210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } |
| 211 | 211 |
| 212 AudioMessageFilter* audio_message_filter() { | |
| 213 return audio_message_filter_; | |
| 214 } | |
| 215 | |
| 216 const WebPreferences& webkit_preferences() const { | 212 const WebPreferences& webkit_preferences() const { |
| 217 return webkit_preferences_; | 213 return webkit_preferences_; |
| 218 } | 214 } |
| 219 | 215 |
| 220 bool content_state_immediately() { return send_content_state_immediately_; } | 216 bool content_state_immediately() { return send_content_state_immediately_; } |
| 221 int enabled_bindings() const { return enabled_bindings_; } | 217 int enabled_bindings() const { return enabled_bindings_; } |
| 222 void set_enabled_bindings(int b) { enabled_bindings_ = b; } | 218 void set_enabled_bindings(int b) { enabled_bindings_ = b; } |
| 223 void set_send_content_state_immediately(bool value) { | 219 void set_send_content_state_immediately(bool value) { |
| 224 send_content_state_immediately_ = value; | 220 send_content_state_immediately_ = value; |
| 225 } | 221 } |
| (...skipping 847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1073 | 1069 |
| 1074 // The geolocation dispatcher attached to this view, lazily initialized. | 1070 // The geolocation dispatcher attached to this view, lazily initialized. |
| 1075 GeolocationDispatcher* geolocation_dispatcher_; | 1071 GeolocationDispatcher* geolocation_dispatcher_; |
| 1076 | 1072 |
| 1077 // The speech dispatcher attached to this view, lazily initialized. | 1073 // The speech dispatcher attached to this view, lazily initialized. |
| 1078 SpeechInputDispatcher* speech_input_dispatcher_; | 1074 SpeechInputDispatcher* speech_input_dispatcher_; |
| 1079 | 1075 |
| 1080 // Device orientation dispatcher attached to this view; lazily initialized. | 1076 // Device orientation dispatcher attached to this view; lazily initialized. |
| 1081 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1077 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
| 1082 | 1078 |
| 1083 scoped_refptr<AudioMessageFilter> audio_message_filter_; | |
| 1084 | |
| 1085 // Handles accessibility requests into the renderer side, as well as | 1079 // Handles accessibility requests into the renderer side, as well as |
| 1086 // maintains the cache and other features of the accessibility tree. | 1080 // maintains the cache and other features of the accessibility tree. |
| 1087 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; | 1081 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; |
| 1088 | 1082 |
| 1089 // Collect renderer accessibility notifications until they are ready to be | 1083 // Collect renderer accessibility notifications until they are ready to be |
| 1090 // sent to the browser. | 1084 // sent to the browser. |
| 1091 std::vector<RendererAccessibilityNotification> | 1085 std::vector<RendererAccessibilityNotification> |
| 1092 pending_accessibility_notifications_; | 1086 pending_accessibility_notifications_; |
| 1093 | 1087 |
| 1094 // Set if we are waiting for a accessibility notification ack. | 1088 // Set if we are waiting for a accessibility notification ack. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1157 // bunch of stuff, you should probably create a helper class and put your | 1151 // bunch of stuff, you should probably create a helper class and put your |
| 1158 // data and methods on that to avoid bloating RenderView more. You can use | 1152 // data and methods on that to avoid bloating RenderView more. You can use |
| 1159 // the Observer interface to filter IPC messages and receive frame change | 1153 // the Observer interface to filter IPC messages and receive frame change |
| 1160 // notifications. | 1154 // notifications. |
| 1161 // --------------------------------------------------------------------------- | 1155 // --------------------------------------------------------------------------- |
| 1162 | 1156 |
| 1163 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1157 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1164 }; | 1158 }; |
| 1165 | 1159 |
| 1166 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1160 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |