| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "third_party/WebKit/Source/WebKit/chromium/public/WebGamepads.h" |
| 8 #include "webkit/glue/webfileutilities_impl.h" | 9 #include "webkit/glue/webfileutilities_impl.h" |
| 9 #include "webkit/glue/webkitplatformsupport_impl.h" | 10 #include "webkit/glue/webkitplatformsupport_impl.h" |
| 10 #include "webkit/support/simple_database_system.h" | 11 #include "webkit/support/simple_database_system.h" |
| 11 #include "webkit/support/weburl_loader_mock_factory.h" | 12 #include "webkit/support/weburl_loader_mock_factory.h" |
| 12 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" | 13 #include "webkit/tools/test_shell/mock_webclipboard_impl.h" |
| 13 #include "webkit/tools/test_shell/simple_appcache_system.h" | 14 #include "webkit/tools/test_shell/simple_appcache_system.h" |
| 14 #include "webkit/tools/test_shell/simple_file_system.h" | 15 #include "webkit/tools/test_shell/simple_file_system.h" |
| 15 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" | 16 #include "webkit/tools/test_shell/simple_webcookiejar_impl.h" |
| 16 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" | 17 #include "webkit/tools/test_shell/test_shell_webmimeregistry_impl.h" |
| 17 | 18 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 97 } |
| 97 | 98 |
| 98 // Mock out the WebAudioDevice since the real one | 99 // Mock out the WebAudioDevice since the real one |
| 99 // talks with the browser process. | 100 // talks with the browser process. |
| 100 virtual double audioHardwareSampleRate(); | 101 virtual double audioHardwareSampleRate(); |
| 101 virtual size_t audioHardwareBufferSize(); | 102 virtual size_t audioHardwareBufferSize(); |
| 102 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, | 103 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, |
| 103 unsigned numberOfChannels, double sampleRate, | 104 unsigned numberOfChannels, double sampleRate, |
| 104 WebKit::WebAudioDevice::RenderCallback*); | 105 WebKit::WebAudioDevice::RenderCallback*); |
| 105 | 106 |
| 107 virtual void sampleGamepads(WebKit::WebGamepads& data); |
| 108 void setGamepadData(const WebKit::WebGamepads& data); |
| 109 |
| 106 private: | 110 private: |
| 107 TestShellWebMimeRegistryImpl mime_registry_; | 111 TestShellWebMimeRegistryImpl mime_registry_; |
| 108 MockWebClipboardImpl mock_clipboard_; | 112 MockWebClipboardImpl mock_clipboard_; |
| 109 webkit_glue::WebFileUtilitiesImpl file_utilities_; | 113 webkit_glue::WebFileUtilitiesImpl file_utilities_; |
| 110 ScopedTempDir appcache_dir_; | 114 ScopedTempDir appcache_dir_; |
| 111 SimpleAppCacheSystem appcache_system_; | 115 SimpleAppCacheSystem appcache_system_; |
| 112 SimpleDatabaseSystem database_system_; | 116 SimpleDatabaseSystem database_system_; |
| 113 SimpleWebCookieJarImpl cookie_jar_; | 117 SimpleWebCookieJarImpl cookie_jar_; |
| 114 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; | 118 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; |
| 115 SimpleFileSystem file_system_; | 119 SimpleFileSystem file_system_; |
| 116 ScopedTempDir file_system_root_; | 120 ScopedTempDir file_system_root_; |
| 117 WebURLLoaderMockFactory url_loader_factory_; | 121 WebURLLoaderMockFactory url_loader_factory_; |
| 118 bool unit_test_mode_; | 122 bool unit_test_mode_; |
| 123 WebKit::WebGamepads gamepad_data_; |
| 119 | 124 |
| 120 #if defined(OS_WIN) || defined(OS_MACOSX) | 125 #if defined(OS_WIN) || defined(OS_MACOSX) |
| 121 WebKit::WebThemeEngine* active_theme_engine_; | 126 WebKit::WebThemeEngine* active_theme_engine_; |
| 122 #endif | 127 #endif |
| 123 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); | 128 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); |
| 124 }; | 129 }; |
| 125 | 130 |
| 126 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ | 131 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ |
| OLD | NEW |