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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 #if defined(OS_ANDROID) | 133 #if defined(OS_ANDROID) |
133 namespace webkit_media { | 134 namespace webkit_media { |
134 class WebMediaPlayerManagerAndroid; | 135 class WebMediaPlayerManagerAndroid; |
135 } | 136 } |
136 #endif | 137 #endif |
137 | 138 |
138 namespace WebKit { | 139 namespace WebKit { |
139 class WebApplicationCacheHost; | 140 class WebApplicationCacheHost; |
140 class WebApplicationCacheHostClient; | 141 class WebApplicationCacheHostClient; |
141 class WebCompositorOutputSurface; | 142 class WebCompositorOutputSurface; |
| 143 class WebDeviceMotionDetector; |
142 class WebDOMMessageEvent; | 144 class WebDOMMessageEvent; |
143 class WebDataSource; | 145 class WebDataSource; |
144 class WebDragData; | 146 class WebDragData; |
145 class WebGeolocationClient; | 147 class WebGeolocationClient; |
146 class WebIconURL; | 148 class WebIconURL; |
147 class WebImage; | 149 class WebImage; |
148 class WebPeerConnection00Handler; | 150 class WebPeerConnection00Handler; |
149 class WebPeerConnection00HandlerClient; | 151 class WebPeerConnection00HandlerClient; |
150 class WebMediaPlayer; | 152 class WebMediaPlayer; |
151 class WebMediaPlayerClient; | 153 class WebMediaPlayerClient; |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 MouseLockDispatcher* mouse_lock_dispatcher() { | 258 MouseLockDispatcher* mouse_lock_dispatcher() { |
257 return mouse_lock_dispatcher_; | 259 return mouse_lock_dispatcher_; |
258 } | 260 } |
259 | 261 |
260 #if defined(OS_ANDROID) | 262 #if defined(OS_ANDROID) |
261 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { | 263 webkit_media::WebMediaPlayerManagerAndroid* media_player_manager() { |
262 return media_player_manager_.get(); | 264 return media_player_manager_.get(); |
263 } | 265 } |
264 #endif | 266 #endif |
265 | 267 |
| 268 WebKit::WebDeviceMotionDetector* GetDeviceMotionDispatcher(); |
| 269 |
266 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( | 270 WebKit::WebPeerConnection00Handler* CreatePeerConnectionHandlerJsep( |
267 WebKit::WebPeerConnection00HandlerClient* client); | 271 WebKit::WebPeerConnection00HandlerClient* client); |
268 | 272 |
269 // Functions to add and remove observers for this object. | 273 // Functions to add and remove observers for this object. |
270 void AddObserver(content::RenderViewObserver* observer); | 274 void AddObserver(content::RenderViewObserver* observer); |
271 void RemoveObserver(content::RenderViewObserver* observer); | 275 void RemoveObserver(content::RenderViewObserver* observer); |
272 | 276 |
273 // Adds the given file chooser request to the file_chooser_completion_ queue | 277 // Adds the given file chooser request to the file_chooser_completion_ queue |
274 // (see that var for more) and requests the chooser be displayed if there are | 278 // (see that var for more) and requests the chooser be displayed if there are |
275 // no other waiting items in the queue. | 279 // no other waiting items in the queue. |
(...skipping 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1309 // The intents host attached to this view. Not lazily initialized. | 1313 // The intents host attached to this view. Not lazily initialized. |
1310 WebIntentsHost* intents_host_; | 1314 WebIntentsHost* intents_host_; |
1311 | 1315 |
1312 // The speech dispatcher attached to this view, lazily initialized. | 1316 // The speech dispatcher attached to this view, lazily initialized. |
1313 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; | 1317 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; |
1314 | 1318 |
1315 // The speech recognition dispatcher attached to this view, lazily | 1319 // The speech recognition dispatcher attached to this view, lazily |
1316 // initialized. | 1320 // initialized. |
1317 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; | 1321 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; |
1318 | 1322 |
| 1323 // Device motion dispatcher attached to this view; lazily initialized. |
| 1324 DeviceMotionDispatcher* device_motion_dispatcher_; |
| 1325 |
1319 // Device orientation dispatcher attached to this view; lazily initialized. | 1326 // Device orientation dispatcher attached to this view; lazily initialized. |
1320 DeviceOrientationDispatcher* device_orientation_dispatcher_; | 1327 DeviceOrientationDispatcher* device_orientation_dispatcher_; |
1321 | 1328 |
1322 // MediaStream dispatcher attached to this view; lazily initialized. | 1329 // MediaStream dispatcher attached to this view; lazily initialized. |
1323 MediaStreamDispatcher* media_stream_dispatcher_; | 1330 MediaStreamDispatcher* media_stream_dispatcher_; |
1324 | 1331 |
1325 // MediaStreamImpl attached to this view; lazily initialized. | 1332 // MediaStreamImpl attached to this view; lazily initialized. |
1326 MediaStreamImpl* media_stream_impl_; | 1333 MediaStreamImpl* media_stream_impl_; |
1327 | 1334 |
1328 // Dispatches all P2P socket used by the renderer. | 1335 // Dispatches all P2P socket used by the renderer. |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1448 // bunch of stuff, you should probably create a helper class and put your | 1455 // bunch of stuff, you should probably create a helper class and put your |
1449 // data and methods on that to avoid bloating RenderView more. You can | 1456 // data and methods on that to avoid bloating RenderView more. You can |
1450 // use the Observer interface to filter IPC messages and receive frame change | 1457 // use the Observer interface to filter IPC messages and receive frame change |
1451 // notifications. | 1458 // notifications. |
1452 // --------------------------------------------------------------------------- | 1459 // --------------------------------------------------------------------------- |
1453 | 1460 |
1454 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1461 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1455 }; | 1462 }; |
1456 | 1463 |
1457 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1464 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |