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

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

Issue 8561021: Support setting fake gamepad data from WebKit (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "webkit/glue/webfileutilities_impl.h" 8 #include "webkit/glue/webfileutilities_impl.h"
9 #include "webkit/glue/webkitplatformsupport_impl.h" 9 #include "webkit/glue/webkitplatformsupport_impl.h"
10 #include "webkit/support/simple_database_system.h" 10 #include "webkit/support/simple_database_system.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 } 96 }
97 97
98 // Mock out the WebAudioDevice since the real one 98 // Mock out the WebAudioDevice since the real one
99 // talks with the browser process. 99 // talks with the browser process.
100 virtual double audioHardwareSampleRate(); 100 virtual double audioHardwareSampleRate();
101 virtual size_t audioHardwareBufferSize(); 101 virtual size_t audioHardwareBufferSize();
102 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, 102 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
103 unsigned numberOfChannels, double sampleRate, 103 unsigned numberOfChannels, double sampleRate,
104 WebKit::WebAudioDevice::RenderCallback*); 104 WebKit::WebAudioDevice::RenderCallback*);
105 105
106 virtual void sampleGamepads(WebKit::WebGamepads&);
107 void setGamepadData(const WebKit::WebGamepads&);
tony 2011/11/18 20:12:37 Nit: Chrome style is to name all parameters.
scottmg 2011/11/18 21:20:56 Done.
108
106 private: 109 private:
107 TestShellWebMimeRegistryImpl mime_registry_; 110 TestShellWebMimeRegistryImpl mime_registry_;
108 MockWebClipboardImpl mock_clipboard_; 111 MockWebClipboardImpl mock_clipboard_;
109 webkit_glue::WebFileUtilitiesImpl file_utilities_; 112 webkit_glue::WebFileUtilitiesImpl file_utilities_;
110 ScopedTempDir appcache_dir_; 113 ScopedTempDir appcache_dir_;
111 SimpleAppCacheSystem appcache_system_; 114 SimpleAppCacheSystem appcache_system_;
112 SimpleDatabaseSystem database_system_; 115 SimpleDatabaseSystem database_system_;
113 SimpleWebCookieJarImpl cookie_jar_; 116 SimpleWebCookieJarImpl cookie_jar_;
114 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_; 117 scoped_refptr<TestShellWebBlobRegistryImpl> blob_registry_;
115 SimpleFileSystem file_system_; 118 SimpleFileSystem file_system_;
116 ScopedTempDir file_system_root_; 119 ScopedTempDir file_system_root_;
117 WebURLLoaderMockFactory url_loader_factory_; 120 WebURLLoaderMockFactory url_loader_factory_;
118 bool unit_test_mode_; 121 bool unit_test_mode_;
122 WebKit::WebGamepads gamepad_data_;
tony 2011/11/18 20:12:37 Can we add the #include for the file that defines
scottmg 2011/11/18 21:20:56 Fwd decl OK instead in this case?
119 123
120 #if defined(OS_WIN) || defined(OS_MACOSX) 124 #if defined(OS_WIN) || defined(OS_MACOSX)
121 WebKit::WebThemeEngine* active_theme_engine_; 125 WebKit::WebThemeEngine* active_theme_engine_;
122 #endif 126 #endif
123 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 127 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
124 }; 128 };
125 129
126 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 130 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | webkit/support/test_webkit_platform_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698