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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
7 | 7 |
8 #include <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 #include "webkit/plugins/npapi/webplugin_page_delegate.h" | 54 #include "webkit/plugins/npapi/webplugin_page_delegate.h" |
55 | 55 |
56 #if defined(COMPILER_MSVC) | 56 #if defined(COMPILER_MSVC) |
57 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the | 57 // RenderViewImpl is a diamond-shaped hierarchy, with WebWidgetClient at the |
58 // root. VS warns when we inherit the WebWidgetClient method implementations | 58 // root. VS warns when we inherit the WebWidgetClient method implementations |
59 // from RenderWidget. It's safe to ignore that warning. | 59 // from RenderWidget. It's safe to ignore that warning. |
60 #pragma warning(disable: 4250) | 60 #pragma warning(disable: 4250) |
61 #endif | 61 #endif |
62 | 62 |
63 class CommandLine; | 63 class CommandLine; |
| 64 class DeviceMotionDispatcher; |
64 class DeviceOrientationDispatcher; | 65 class DeviceOrientationDispatcher; |
65 class DevToolsAgent; | 66 class DevToolsAgent; |
66 class DomAutomationController; | 67 class DomAutomationController; |
67 class ExternalPopupMenu; | 68 class ExternalPopupMenu; |
68 class GeolocationDispatcher; | 69 class GeolocationDispatcher; |
69 class GURL; | 70 class GURL; |
70 class JavaBridgeDispatcher; | 71 class JavaBridgeDispatcher; |
71 class LoadProgressTracker; | 72 class LoadProgressTracker; |
72 class MediaStreamDispatcher; | 73 class MediaStreamDispatcher; |
73 class MediaStreamImpl; | 74 class MediaStreamImpl; |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 131 |
131 #if defined(OS_ANDROID) | 132 #if defined(OS_ANDROID) |
132 namespace webkit_media { | 133 namespace webkit_media { |
133 class WebMediaPlayerManagerAndroid; | 134 class WebMediaPlayerManagerAndroid; |
134 } | 135 } |
135 #endif | 136 #endif |
136 | 137 |
137 namespace WebKit { | 138 namespace WebKit { |
138 class WebApplicationCacheHost; | 139 class WebApplicationCacheHost; |
139 class WebApplicationCacheHostClient; | 140 class WebApplicationCacheHostClient; |
| 141 class WebDeviceMotionDetector; |
140 class WebDOMMessageEvent; | 142 class WebDOMMessageEvent; |
141 class WebDataSource; | 143 class WebDataSource; |
142 class WebDragData; | 144 class WebDragData; |
143 class WebGeolocationClient; | 145 class WebGeolocationClient; |
144 class WebIconURL; | 146 class WebIconURL; |
145 class WebImage; | 147 class WebImage; |
146 class WebPeerConnection00Handler; | 148 class WebPeerConnection00Handler; |
147 class WebPeerConnection00HandlerClient; | 149 class WebPeerConnection00HandlerClient; |
148 class WebMediaPlayer; | 150 class WebMediaPlayer; |
149 class WebMediaPlayerClient; | 151 class WebMediaPlayerClient; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
254 MouseLockDispatcher* mouse_lock_dispatcher() { | 256 MouseLockDispatcher* mouse_lock_dispatcher() { |
255 return mouse_lock_dispatcher_; | 257 return mouse_lock_dispatcher_; |
256 } | 258 } |
257 | 259 |
258 #if defined(OS_ANDROID) | 260 #if defined(OS_ANDROID) |
259 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { | 261 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { |
260 return media_player_manager_.get(); | 262 return media_player_manager_.get(); |
261 } | 263 } |
262 #endif | 264 #endif |
263 | 265 |
| 266 WebKit::WebDeviceMotionDetector* GetDeviceMotionDispatcher(); |
| 267 |
264 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( | 268 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( |
265 WebKit::WebPeerConnection00HandlerClient* client); | 269 WebKit::WebPeerConnection00HandlerClient* client); |
266 | 270 |
267 // Functions to add and remove observers for this object. | 271 // Functions to add and remove observers for this object. |
268 void AddObserver(content::RenderViewObserver* observer); | 272 void AddObserver(content::RenderViewObserver* observer); |
269 void RemoveObserver(content::RenderViewObserver* observer); | 273 void RemoveObserver(content::RenderViewObserver* observer); |
270 | 274 |
271 // Adds the given file chooser request to the file_chooser_completion_ queue | 275 // Adds the given file chooser request to the file_chooser_completion_ queue |
272 // (see that var for more) and requests the chooser be displayed if there are | 276 // (see that var for more) and requests the chooser be displayed if there are |
273 // no other waiting items in the queue. | 277 // no other waiting items in the queue. |
(...skipping 1027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1301 // The intents host attached to this view. Not lazily initialized. | 1305 // The intents host attached to this view. Not lazily initialized. |
1302 WebIntentsHost* intents_host_; | 1306 WebIntentsHost* intents_host_; |
1303 | 1307 |
1304 // The speech dispatcher attached to this view, lazily initialized. | 1308 // The speech dispatcher attached to this view, lazily initialized. |
1305 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; | 1309 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; |
1306 | 1310 |
1307 // The speech recognition dispatcher attached to this view, lazily | 1311 // The speech recognition dispatcher attached to this view, lazily |
1308 // initialized. | 1312 // initialized. |
1309 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; | 1313 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; |
1310 | 1314 |
| 1315 // Device motion dispatcher attached to this view; lazily initialized. |
| 1316 DeviceMotionDispatcher* device_motion_dispatcher_; |
| 1317 |
1311 // Device orientation dispatcher attached to this view; lazily initialized. | 1318 // Device orientation dispatcher attached to this view; lazily initialized. |
1312 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1319 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1313 | 1320 |
1314 // MediaStream dispatcher attached to this view; lazily initialized. | 1321 // MediaStream dispatcher attached to this view; lazily initialized. |
1315 MediaStreamDispatcher* media_stream_dispatcher_; | 1322 MediaStreamDispatcher* media_stream_dispatcher_; |
1316 | 1323 |
1317 // MediaStreamImpl attached to this view; lazily initialized. | 1324 // MediaStreamImpl attached to this view; lazily initialized. |
1318 MediaStreamImpl* media_stream_impl_; | 1325 MediaStreamImpl* media_stream_impl_; |
1319 | 1326 |
1320 // Dispatches all P2P socket used by the renderer. | 1327 // Dispatches all P2P socket used by the renderer. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 // bunch of stuff, you should probably create a helper class and put your | 1452 // bunch of stuff, you should probably create a helper class and put your |
1446 // data and methods on that to avoid bloating RenderView more. You can | 1453 // data and methods on that to avoid bloating RenderView more. You can |
1447 // use the Observer interface to filter IPC messages and receive frame change | 1454 // use the Observer interface to filter IPC messages and receive frame change |
1448 // notifications. | 1455 // notifications. |
1449 // --------------------------------------------------------------------------- | 1456 // --------------------------------------------------------------------------- |
1450 | 1457 |
1451 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1458 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1452 }; | 1459 }; |
1453 | 1460 |
1454 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1461 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |