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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "webkit/glue/webpreferences.h" | 43 #include "webkit/glue/webpreferences.h" |
44 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 44 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
45 | 45 |
46 #if defined(OS_WIN) | 46 #if defined(OS_WIN) |
47 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. | 47 // RenderView is a diamond-shaped hierarchy, with WebWidgetClient at the root. |
48 // VS warns when we inherit the WebWidgetClient method implementations from | 48 // VS warns when we inherit the WebWidgetClient method implementations from |
49 // RenderWidget. It's safe to ignore that warning. | 49 // RenderWidget. It's safe to ignore that warning. |
50 #pragma warning(disable: 4250) | 50 #pragma warning(disable: 4250) |
51 #endif | 51 #endif |
52 | 52 |
53 class AudioMessageFilter; | |
54 class DeviceOrientationDispatcher; | 53 class DeviceOrientationDispatcher; |
55 class ExternalPopupMenu; | 54 class ExternalPopupMenu; |
56 class FilePath; | 55 class FilePath; |
57 class GeolocationDispatcher; | 56 class GeolocationDispatcher; |
58 class GURL; | 57 class GURL; |
59 class LoadProgressTracker; | 58 class LoadProgressTracker; |
60 class NavigationState; | 59 class NavigationState; |
61 class NotificationProvider; | 60 class NotificationProvider; |
62 class P2PSocketDispatcher; | 61 class P2PSocketDispatcher; |
63 class PepperDeviceTest; | 62 class PepperDeviceTest; |
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 WebKit::WebView* webview() const; | 201 WebKit::WebView* webview() const; |
203 | 202 |
204 // Called by a GraphicsContext associated with this view when swapbuffers | 203 // Called by a GraphicsContext associated with this view when swapbuffers |
205 // completes or is aborted. | 204 // completes or is aborted. |
206 void OnViewContextSwapBuffersComplete(); | 205 void OnViewContextSwapBuffersComplete(); |
207 void OnViewContextSwapBuffersAborted(); | 206 void OnViewContextSwapBuffersAborted(); |
208 | 207 |
209 int page_id() const { return page_id_; } | 208 int page_id() const { return page_id_; } |
210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } | 209 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } |
211 | 210 |
212 AudioMessageFilter* audio_message_filter() { | |
213 return audio_message_filter_; | |
214 } | |
215 | |
216 const WebPreferences& webkit_preferences() const { | 211 const WebPreferences& webkit_preferences() const { |
217 return webkit_preferences_; | 212 return webkit_preferences_; |
218 } | 213 } |
219 | 214 |
220 bool content_state_immediately() { return send_content_state_immediately_; } | 215 bool content_state_immediately() { return send_content_state_immediately_; } |
221 int enabled_bindings() const { return enabled_bindings_; } | 216 int enabled_bindings() const { return enabled_bindings_; } |
222 void set_enabled_bindings(int b) { enabled_bindings_ = b; } | 217 void set_enabled_bindings(int b) { enabled_bindings_ = b; } |
223 void set_send_content_state_immediately(bool value) { | 218 void set_send_content_state_immediately(bool value) { |
224 send_content_state_immediately_ = value; | 219 send_content_state_immediately_ = value; |
225 } | 220 } |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1075 | 1070 |
1076 // The geolocation dispatcher attached to this view, lazily initialized. | 1071 // The geolocation dispatcher attached to this view, lazily initialized. |
1077 GeolocationDispatcher* geolocation_dispatcher_; | 1072 GeolocationDispatcher* geolocation_dispatcher_; |
1078 | 1073 |
1079 // The speech dispatcher attached to this view, lazily initialized. | 1074 // The speech dispatcher attached to this view, lazily initialized. |
1080 SpeechInputDispatcher* speech_input_dispatcher_; | 1075 SpeechInputDispatcher* speech_input_dispatcher_; |
1081 | 1076 |
1082 // Device orientation dispatcher attached to this view; lazily initialized. | 1077 // Device orientation dispatcher attached to this view; lazily initialized. |
1083 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1078 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1084 | 1079 |
1085 scoped_refptr<AudioMessageFilter> audio_message_filter_; | |
1086 | |
1087 // Handles accessibility requests into the renderer side, as well as | 1080 // Handles accessibility requests into the renderer side, as well as |
1088 // maintains the cache and other features of the accessibility tree. | 1081 // maintains the cache and other features of the accessibility tree. |
1089 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; | 1082 scoped_ptr<WebKit::WebAccessibilityCache> accessibility_; |
1090 | 1083 |
1091 // Collect renderer accessibility notifications until they are ready to be | 1084 // Collect renderer accessibility notifications until they are ready to be |
1092 // sent to the browser. | 1085 // sent to the browser. |
1093 std::vector<RendererAccessibilityNotification> | 1086 std::vector<RendererAccessibilityNotification> |
1094 pending_accessibility_notifications_; | 1087 pending_accessibility_notifications_; |
1095 | 1088 |
1096 // Set if we are waiting for a accessibility notification ack. | 1089 // Set if we are waiting for a accessibility notification ack. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1159 // bunch of stuff, you should probably create a helper class and put your | 1152 // bunch of stuff, you should probably create a helper class and put your |
1160 // data and methods on that to avoid bloating RenderView more. You can use | 1153 // data and methods on that to avoid bloating RenderView more. You can use |
1161 // the Observer interface to filter IPC messages and receive frame change | 1154 // the Observer interface to filter IPC messages and receive frame change |
1162 // notifications. | 1155 // notifications. |
1163 // --------------------------------------------------------------------------- | 1156 // --------------------------------------------------------------------------- |
1164 | 1157 |
1165 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1158 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1166 }; | 1159 }; |
1167 | 1160 |
1168 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1161 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |