Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(303)

Side by Side Diff: content/renderer/render_view_impl.h

Issue 10698046: Implements part of Device Motion in the Renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resets last_motion_ Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/renderer/device_motion_dispatcher.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
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 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after
1304 // The intents host attached to this view. Not lazily initialized. 1308 // The intents host attached to this view. Not lazily initialized.
1305 WebIntentsHost* intents_host_; 1309 WebIntentsHost* intents_host_;
1306 1310
1307 // The speech dispatcher attached to this view, lazily initialized. 1311 // The speech dispatcher attached to this view, lazily initialized.
1308 InputTagSpeechDispatcher* input_tag_speech_dispatcher_; 1312 InputTagSpeechDispatcher* input_tag_speech_dispatcher_;
1309 1313
1310 // The speech recognition dispatcher attached to this view, lazily 1314 // The speech recognition dispatcher attached to this view, lazily
1311 // initialized. 1315 // initialized.
1312 SpeechRecognitionDispatcher* speech_recognition_dispatcher_; 1316 SpeechRecognitionDispatcher* speech_recognition_dispatcher_;
1313 1317
1318 // Device motion dispatcher attached to this view; lazily initialized.
1319 DeviceMotionDispatcher* device_motion_dispatcher_;
1320
1314 // Device orientation dispatcher attached to this view; lazily initialized. 1321 // Device orientation dispatcher attached to this view; lazily initialized.
1315 DeviceOrientationDispatcher* device_orientation_dispatcher_; 1322 DeviceOrientationDispatcher* device_orientation_dispatcher_;
1316 1323
1317 // MediaStream dispatcher attached to this view; lazily initialized. 1324 // MediaStream dispatcher attached to this view; lazily initialized.
1318 MediaStreamDispatcher* media_stream_dispatcher_; 1325 MediaStreamDispatcher* media_stream_dispatcher_;
1319 1326
1320 // MediaStreamImpl attached to this view; lazily initialized. 1327 // MediaStreamImpl attached to this view; lazily initialized.
1321 MediaStreamImpl* media_stream_impl_; 1328 MediaStreamImpl* media_stream_impl_;
1322 1329
1323 // Dispatches all P2P socket used by the renderer. 1330 // Dispatches all P2P socket used by the renderer.
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 // bunch of stuff, you should probably create a helper class and put your 1450 // bunch of stuff, you should probably create a helper class and put your
1444 // data and methods on that to avoid bloating RenderView more. You can 1451 // data and methods on that to avoid bloating RenderView more. You can
1445 // use the Observer interface to filter IPC messages and receive frame change 1452 // use the Observer interface to filter IPC messages and receive frame change
1446 // notifications. 1453 // notifications.
1447 // --------------------------------------------------------------------------- 1454 // ---------------------------------------------------------------------------
1448 1455
1449 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1456 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1450 }; 1457 };
1451 1458
1452 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1459 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/device_motion_dispatcher.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698