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

Side by Side Diff: webkit/support/test_webkit_platform_support.h

Issue 10827415: Chromium-side implementation of DeviceMotion. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Test should set the kEnableDeviceMotion flag 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 | Annotate | Revision Log
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 WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 5 #ifndef WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 6 #define WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGraphicsC ontext3D.h"
(...skipping 17 matching lines...) Expand all
28 // An implementation of WebKitPlatformSupport for tests. 28 // An implementation of WebKitPlatformSupport for tests.
29 class TestWebKitPlatformSupport : 29 class TestWebKitPlatformSupport :
30 public webkit_glue::WebKitPlatformSupportImpl { 30 public webkit_glue::WebKitPlatformSupportImpl {
31 public: 31 public:
32 TestWebKitPlatformSupport(bool unit_test_mode, 32 TestWebKitPlatformSupport(bool unit_test_mode,
33 WebKit::Platform* shadow_platform_delegate); 33 WebKit::Platform* shadow_platform_delegate);
34 virtual ~TestWebKitPlatformSupport(); 34 virtual ~TestWebKitPlatformSupport();
35 35
36 virtual WebKit::WebMimeRegistry* mimeRegistry() OVERRIDE; 36 virtual WebKit::WebMimeRegistry* mimeRegistry() OVERRIDE;
37 virtual WebKit::WebClipboard* clipboard() OVERRIDE; 37 virtual WebKit::WebClipboard* clipboard() OVERRIDE;
38 virtual WebKit::WebDeviceMotionDetector* deviceMotionDetector() OVERRIDE;
38 virtual WebKit::WebFileUtilities* fileUtilities() OVERRIDE; 39 virtual WebKit::WebFileUtilities* fileUtilities() OVERRIDE;
39 virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE; 40 virtual WebKit::WebSandboxSupport* sandboxSupport() OVERRIDE;
40 virtual WebKit::WebCookieJar* cookieJar() OVERRIDE; 41 virtual WebKit::WebCookieJar* cookieJar() OVERRIDE;
41 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE; 42 virtual WebKit::WebBlobRegistry* blobRegistry() OVERRIDE;
42 virtual WebKit::WebFileSystem* fileSystem() OVERRIDE; 43 virtual WebKit::WebFileSystem* fileSystem() OVERRIDE;
43 44
44 virtual bool sandboxEnabled() OVERRIDE; 45 virtual bool sandboxEnabled() OVERRIDE;
45 virtual WebKit::WebKitPlatformSupport::FileHandle databaseOpenFile( 46 virtual WebKit::WebKitPlatformSupport::FileHandle databaseOpenFile(
46 const WebKit::WebString& vfs_file_name, int desired_flags) OVERRIDE; 47 const WebKit::WebString& vfs_file_name, int desired_flags) OVERRIDE;
47 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name, 48 virtual int databaseDeleteFile(const WebKit::WebString& vfs_file_name,
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 WebKit::WebGamepads gamepad_data_; 147 WebKit::WebGamepads gamepad_data_;
147 WebKit::Platform* shadow_platform_delegate_; 148 WebKit::Platform* shadow_platform_delegate_;
148 149
149 #if defined(OS_WIN) || defined(OS_MACOSX) 150 #if defined(OS_WIN) || defined(OS_MACOSX)
150 WebKit::WebThemeEngine* active_theme_engine_; 151 WebKit::WebThemeEngine* active_theme_engine_;
151 #endif 152 #endif
152 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 153 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
153 }; 154 };
154 155
155 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 156 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/test/data/device_orientation/device_motion_test.html ('k') | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698