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

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

Issue 5222955109842944: Add plumbing for platform based Device Motion testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 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 cc { 22 namespace cc {
23 class ContextProvider; 23 class ContextProvider;
24 } 24 }
25 25
26 namespace IPC { 26 namespace IPC {
27 class SyncMessageFilter; 27 class SyncMessageFilter;
28 } 28 }
29 29
30 namespace WebKit { 30 namespace WebKit {
31 class WebDeviceMotionData;
31 class WebGraphicsContext3DProvider; 32 class WebGraphicsContext3DProvider;
32 } 33 }
33 34
34 namespace content { 35 namespace content {
35 class DeviceMotionEventPump; 36 class DeviceMotionEventPump;
36 class GamepadSharedMemoryReader; 37 class GamepadSharedMemoryReader;
37 class RendererClipboardClient; 38 class RendererClipboardClient;
38 class ThreadSafeSender; 39 class ThreadSafeSender;
39 class WebClipboardImpl; 40 class WebClipboardImpl;
40 class WebFileSystemImpl; 41 class WebFileSystemImpl;
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // Tests that do not set up a full sandbox environment should call 144 // Tests that do not set up a full sandbox environment should call
144 // SetSandboxEnabledForTesting(false) _before_ creating any instances 145 // SetSandboxEnabledForTesting(false) _before_ creating any instances
145 // of this class, to ensure that we don't attempt to use sandbox-related 146 // of this class, to ensure that we don't attempt to use sandbox-related
146 // file descriptors or other resources. 147 // file descriptors or other resources.
147 // 148 //
148 // Returns the previous |enable| value. 149 // Returns the previous |enable| value.
149 static bool SetSandboxEnabledForTesting(bool enable); 150 static bool SetSandboxEnabledForTesting(bool enable);
150 151
151 // Set WebGamepads to return when sampleGamepads() is invoked. 152 // Set WebGamepads to return when sampleGamepads() is invoked.
152 static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads); 153 static void SetMockGamepadsForTesting(const WebKit::WebGamepads& pads);
154 static void SetMockDeviceMotionDataForTesting(
jochen (gone - plz use gerrit) 2013/07/15 13:55:08 nit. please add a comment similar to the one for g
timvolodine 2013/07/16 11:53:44 Done.
155 const WebKit::WebDeviceMotionData& data);
153 156
154 private: 157 private:
155 bool CheckPreparsedJsCachingEnabled() const; 158 bool CheckPreparsedJsCachingEnabled() const;
156 159
157 scoped_ptr<RendererClipboardClient> clipboard_client_; 160 scoped_ptr<RendererClipboardClient> clipboard_client_;
158 scoped_ptr<WebClipboardImpl> clipboard_; 161 scoped_ptr<WebClipboardImpl> clipboard_;
159 162
160 class FileUtilities; 163 class FileUtilities;
161 scoped_ptr<FileUtilities> file_utilities_; 164 scoped_ptr<FileUtilities> file_utilities_;
162 165
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 200 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
198 201
199 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 202 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
200 203
201 webkit::WebCompositorSupportImpl compositor_support_; 204 webkit::WebCompositorSupportImpl compositor_support_;
202 }; 205 };
203 206
204 } // namespace content 207 } // namespace content
205 208
206 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 209 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698