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

Side by Side Diff: webkit/support/test_webkit_platform_support.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 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 "base/files/scoped_temp_dir.h" 9 #include "base/files/scoped_temp_dir.h"
10 #include "third_party/WebKit/public/platform/WebDeviceMotionData.h"
10 #include "third_party/WebKit/public/platform/WebGamepads.h" 11 #include "third_party/WebKit/public/platform/WebGamepads.h"
11 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h" 12 #include "third_party/WebKit/public/platform/WebGraphicsContext3D.h"
12 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h" 13 #include "third_party/WebKit/public/platform/WebUnitTestSupport.h"
13 #include "webkit/child/webkitplatformsupport_child_impl.h" 14 #include "webkit/child/webkitplatformsupport_child_impl.h"
14 #include "webkit/glue/simple_webmimeregistry_impl.h" 15 #include "webkit/glue/simple_webmimeregistry_impl.h"
15 #include "webkit/glue/webfileutilities_impl.h" 16 #include "webkit/glue/webfileutilities_impl.h"
16 #include "webkit/mocks/mock_webhyphenator.h" 17 #include "webkit/mocks/mock_webhyphenator.h"
17 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h" 18 #include "webkit/renderer/compositor_bindings/web_compositor_support_impl.h"
18 #include "webkit/support/mock_webclipboard_impl.h" 19 #include "webkit/support/mock_webclipboard_impl.h"
19 #include "webkit/support/weburl_loader_mock_factory.h" 20 #include "webkit/support/weburl_loader_mock_factory.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, 98 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
98 unsigned numberOfInputChannels, unsigned numberOfChannels, 99 unsigned numberOfInputChannels, unsigned numberOfChannels,
99 double sampleRate, WebKit::WebAudioDevice::RenderCallback*); 100 double sampleRate, WebKit::WebAudioDevice::RenderCallback*);
100 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, 101 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
101 unsigned numberOfChannels, double sampleRate, 102 unsigned numberOfChannels, double sampleRate,
102 WebKit::WebAudioDevice::RenderCallback*); 103 WebKit::WebAudioDevice::RenderCallback*);
103 104
104 virtual void sampleGamepads(WebKit::WebGamepads& data); 105 virtual void sampleGamepads(WebKit::WebGamepads& data);
105 void setGamepadData(const WebKit::WebGamepads& data); 106 void setGamepadData(const WebKit::WebGamepads& data);
106 107
108 void setDeviceMotionData(const WebKit::WebDeviceMotionData& data);
109
107 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE; 110 virtual base::string16 GetLocalizedString(int message_id) OVERRIDE;
108 virtual base::StringPiece GetDataResource( 111 virtual base::StringPiece GetDataResource(
109 int resource_id, 112 int resource_id,
110 ui::ScaleFactor scale_factor) OVERRIDE; 113 ui::ScaleFactor scale_factor) OVERRIDE;
111 virtual void GetPlugins(bool refresh, 114 virtual void GetPlugins(bool refresh,
112 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE; 115 std::vector<webkit::WebPluginInfo>* plugins) OVERRIDE;
113 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader( 116 virtual webkit_glue::ResourceLoaderBridge* CreateResourceLoader(
114 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info) 117 const webkit_glue::ResourceLoaderBridge::RequestInfo& request_info)
115 OVERRIDE; 118 OVERRIDE;
116 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge( 119 virtual webkit_glue::WebSocketStreamHandleBridge* CreateWebSocketBridge(
(...skipping 30 matching lines...) Expand all
147 private: 150 private:
148 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_; 151 webkit_glue::SimpleWebMimeRegistryImpl mime_registry_;
149 MockWebClipboardImpl mock_clipboard_; 152 MockWebClipboardImpl mock_clipboard_;
150 webkit_glue::WebFileUtilitiesImpl file_utilities_; 153 webkit_glue::WebFileUtilitiesImpl file_utilities_;
151 base::ScopedTempDir appcache_dir_; 154 base::ScopedTempDir appcache_dir_;
152 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 155 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
153 base::ScopedTempDir file_system_root_; 156 base::ScopedTempDir file_system_root_;
154 webkit_glue::MockWebHyphenator hyphenator_; 157 webkit_glue::MockWebHyphenator hyphenator_;
155 WebURLLoaderMockFactory url_loader_factory_; 158 WebURLLoaderMockFactory url_loader_factory_;
156 WebKit::WebGamepads gamepad_data_; 159 WebKit::WebGamepads gamepad_data_;
160 WebKit::WebDeviceMotionData device_motion_data_;
157 webkit::WebCompositorSupportImpl compositor_support_; 161 webkit::WebCompositorSupportImpl compositor_support_;
158 162
159 scoped_refptr<cc::ContextProvider> main_thread_contexts_; 163 scoped_refptr<cc::ContextProvider> main_thread_contexts_;
160 164
161 #if defined(OS_WIN) || defined(OS_MACOSX) 165 #if defined(OS_WIN) || defined(OS_MACOSX)
162 WebKit::WebThemeEngine* active_theme_engine_; 166 WebKit::WebThemeEngine* active_theme_engine_;
163 #endif 167 #endif
164 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 168 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
165 }; 169 };
166 170
167 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 171 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698