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

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

Issue 11958006: Switch to new createAudioDevice() API in TestWebKitPlatformSupport (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 11 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
« 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) 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/WebIDBFactory.h" 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIDBFactory.h"
10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h" 10 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebGamepads. h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 92
93 const FilePath& file_system_root() const { 93 const FilePath& file_system_root() const {
94 return file_system_root_.path(); 94 return file_system_root_.path();
95 } 95 }
96 96
97 // Mock out the WebAudioDevice since the real one 97 // Mock out the WebAudioDevice since the real one
98 // talks with the browser process. 98 // talks with the browser process.
99 virtual double audioHardwareSampleRate(); 99 virtual double audioHardwareSampleRate();
100 virtual size_t audioHardwareBufferSize(); 100 virtual size_t audioHardwareBufferSize();
101 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize, 101 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
102 unsigned numberOfInputChannels, unsigned numberOfChannels,
103 double sampleRate, WebKit::WebAudioDevice::RenderCallback*);
104 virtual WebKit::WebAudioDevice* createAudioDevice(size_t bufferSize,
102 unsigned numberOfChannels, double sampleRate, 105 unsigned numberOfChannels, double sampleRate,
103 WebKit::WebAudioDevice::RenderCallback*); 106 WebKit::WebAudioDevice::RenderCallback*);
104 107
105 virtual void sampleGamepads(WebKit::WebGamepads& data); 108 virtual void sampleGamepads(WebKit::WebGamepads& data);
106 void setGamepadData(const WebKit::WebGamepads& data); 109 void setGamepadData(const WebKit::WebGamepads& data);
107 110
108 virtual string16 GetLocalizedString(int message_id) OVERRIDE; 111 virtual string16 GetLocalizedString(int message_id) OVERRIDE;
109 virtual base::StringPiece GetDataResource( 112 virtual base::StringPiece GetDataResource(
110 int resource_id, 113 int resource_id,
111 ui::ScaleFactor scale_factor) OVERRIDE; 114 ui::ScaleFactor scale_factor) OVERRIDE;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 WebKit::Platform* shadow_platform_delegate_; 155 WebKit::Platform* shadow_platform_delegate_;
153 HyphenDict* hyphen_dictionary_; 156 HyphenDict* hyphen_dictionary_;
154 157
155 #if defined(OS_WIN) || defined(OS_MACOSX) 158 #if defined(OS_WIN) || defined(OS_MACOSX)
156 WebKit::WebThemeEngine* active_theme_engine_; 159 WebKit::WebThemeEngine* active_theme_engine_;
157 #endif 160 #endif
158 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport); 161 DISALLOW_COPY_AND_ASSIGN(TestWebKitPlatformSupport);
159 }; 162 };
160 163
161 #endif // WEBKIT_SUPPORT_TEST_WEBKIT_PLATFORM_SUPPORT_H_ 164 #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