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