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

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

Issue 14678012: Implement the content/renderer and content/browser part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: implemented async messaging for obtaining the shared memory handle Created 7 years, 6 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
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_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 6 #define CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/platform_file.h" 10 #include "base/platform_file.h"
(...skipping 10 matching lines...) Expand all
21 21
22 namespace webkit_glue { 22 namespace webkit_glue {
23 class WebClipboardImpl; 23 class WebClipboardImpl;
24 } 24 }
25 25
26 namespace WebKit { 26 namespace WebKit {
27 class WebGraphicsContext3DProvider; 27 class WebGraphicsContext3DProvider;
28 } 28 }
29 29
30 namespace content { 30 namespace content {
31 class DeviceMotionEventPump;
31 class GamepadSharedMemoryReader; 32 class GamepadSharedMemoryReader;
32 class RendererClipboardClient; 33 class RendererClipboardClient;
33 class ThreadSafeSender; 34 class ThreadSafeSender;
34 class WebFileSystemImpl; 35 class WebFileSystemImpl;
35 class WebSharedWorkerRepositoryImpl; 36 class WebSharedWorkerRepositoryImpl;
36 37
37 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl 38 class CONTENT_EXPORT RendererWebKitPlatformSupportImpl
38 : public WebKitPlatformSupportImpl { 39 : public WebKitPlatformSupportImpl {
39 public: 40 public:
40 RendererWebKitPlatformSupportImpl(); 41 RendererWebKitPlatformSupportImpl();
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 WebKit::WebRTCPeerConnectionHandlerClient* client); 114 WebKit::WebRTCPeerConnectionHandlerClient* client);
114 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter( 115 virtual WebKit::WebMediaStreamCenter* createMediaStreamCenter(
115 WebKit::WebMediaStreamCenterClient* client); 116 WebKit::WebMediaStreamCenterClient* client);
116 virtual bool processMemorySizesInBytes( 117 virtual bool processMemorySizesInBytes(
117 size_t* private_bytes, size_t* shared_bytes); 118 size_t* private_bytes, size_t* shared_bytes);
118 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D( 119 virtual WebKit::WebGraphicsContext3D* createOffscreenGraphicsContext3D(
119 const WebKit::WebGraphicsContext3D::Attributes& attributes); 120 const WebKit::WebGraphicsContext3D::Attributes& attributes);
120 virtual WebKit::WebGraphicsContext3DProvider* 121 virtual WebKit::WebGraphicsContext3DProvider*
121 createSharedOffscreenGraphicsContext3DProvider(); 122 createSharedOffscreenGraphicsContext3DProvider();
122 virtual WebKit::WebCompositorSupport* compositorSupport(); 123 virtual WebKit::WebCompositorSupport* compositorSupport();
124 virtual void setDeviceMotionListener(
125 WebKit::WebDeviceMotionListener* listener) OVERRIDE;
123 126
124 // Disables the WebSandboxSupport implementation for testing. 127 // Disables the WebSandboxSupport implementation for testing.
125 // Tests that do not set up a full sandbox environment should call 128 // Tests that do not set up a full sandbox environment should call
126 // SetSandboxEnabledForTesting(false) _before_ creating any instances 129 // SetSandboxEnabledForTesting(false) _before_ creating any instances
127 // of this class, to ensure that we don't attempt to use sandbox-related 130 // of this class, to ensure that we don't attempt to use sandbox-related
128 // file descriptors or other resources. 131 // file descriptors or other resources.
129 // 132 //
130 // Returns the previous |enable| value. 133 // Returns the previous |enable| value.
131 static bool SetSandboxEnabledForTesting(bool enable); 134 static bool SetSandboxEnabledForTesting(bool enable);
132 135
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_; 168 scoped_ptr<WebSharedWorkerRepositoryImpl> shared_worker_repository_;
166 169
167 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_; 170 scoped_ptr<WebKit::WebIDBFactory> web_idb_factory_;
168 171
169 scoped_ptr<WebFileSystemImpl> web_file_system_; 172 scoped_ptr<WebFileSystemImpl> web_file_system_;
170 173
171 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_; 174 scoped_ptr<WebKit::WebBlobRegistry> blob_registry_;
172 175
173 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_; 176 scoped_ptr<GamepadSharedMemoryReader> gamepad_shared_memory_reader_;
174 177
178 scoped_ptr<DeviceMotionEventPump> device_motion_event_pump_;
179
175 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 180 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
176 181
177 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 182 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
178 183
179 webkit::WebCompositorSupportImpl compositor_support_; 184 webkit::WebCompositorSupportImpl compositor_support_;
180 }; 185 };
181 186
182 } // namespace content 187 } // namespace content
183 188
184 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 189 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698