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

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: forward declare of WebDeviceMotionData 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 // Set WebDeviceMotionData to return when setDeviceMotionListener is invoked.
155 static void SetMockDeviceMotionDataForTesting(
156 const WebKit::WebDeviceMotionData& data);
153 157
154 private: 158 private:
155 bool CheckPreparsedJsCachingEnabled() const; 159 bool CheckPreparsedJsCachingEnabled() const;
156 160
157 scoped_ptr<RendererClipboardClient> clipboard_client_; 161 scoped_ptr<RendererClipboardClient> clipboard_client_;
158 scoped_ptr<WebClipboardImpl> clipboard_; 162 scoped_ptr<WebClipboardImpl> clipboard_;
159 163
160 class FileUtilities; 164 class FileUtilities;
161 scoped_ptr<FileUtilities> file_utilities_; 165 scoped_ptr<FileUtilities> file_utilities_;
162 166
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 scoped_refptr<ThreadSafeSender> thread_safe_sender_; 201 scoped_refptr<ThreadSafeSender> thread_safe_sender_;
198 202
199 scoped_refptr<cc::ContextProvider> shared_offscreen_context_; 203 scoped_refptr<cc::ContextProvider> shared_offscreen_context_;
200 204
201 webkit::WebCompositorSupportImpl compositor_support_; 205 webkit::WebCompositorSupportImpl compositor_support_;
202 }; 206 };
203 207
204 } // namespace content 208 } // namespace content
205 209
206 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_ 210 #endif // CONTENT_RENDERER_RENDERER_WEBKITPLATFORMSUPPORT_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698