OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 namespace v8 { | 65 namespace v8 { |
66 class Context; | 66 class Context; |
67 template <class T> | 67 template <class T> |
68 class Local; | 68 class Local; |
69 } | 69 } |
70 | 70 |
71 namespace blink { | 71 namespace blink { |
72 | 72 |
73 class InterfaceProvider; | 73 class InterfaceProvider; |
74 class WebAudioBus; | 74 class WebAudioBus; |
| 75 class WebAudioLatencyHint; |
75 class WebBlobRegistry; | 76 class WebBlobRegistry; |
76 class WebCanvasCaptureHandler; | 77 class WebCanvasCaptureHandler; |
77 class WebClipboard; | 78 class WebClipboard; |
78 class WebCompositorSupport; | 79 class WebCompositorSupport; |
79 class WebCookieJar; | 80 class WebCookieJar; |
80 class WebCrypto; | 81 class WebCrypto; |
81 class WebDatabaseObserver; | 82 class WebDatabaseObserver; |
82 class WebPlatformEventListener; | 83 class WebPlatformEventListener; |
83 class WebFallbackThemeEngine; | 84 class WebFallbackThemeEngine; |
84 class WebFileSystem; | 85 class WebFileSystem; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 } | 168 } |
168 | 169 |
169 // Audio -------------------------------------------------------------- | 170 // Audio -------------------------------------------------------------- |
170 | 171 |
171 virtual double audioHardwareSampleRate() { return 0; } | 172 virtual double audioHardwareSampleRate() { return 0; } |
172 virtual size_t audioHardwareBufferSize() { return 0; } | 173 virtual size_t audioHardwareBufferSize() { return 0; } |
173 virtual unsigned audioHardwareOutputChannels() { return 0; } | 174 virtual unsigned audioHardwareOutputChannels() { return 0; } |
174 | 175 |
175 // Creates a device for audio I/O. | 176 // Creates a device for audio I/O. |
176 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 177 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
177 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, | 178 virtual WebAudioDevice* createAudioDevice( |
178 unsigned numberOfInputChannels, | 179 unsigned numberOfInputChannels, |
179 unsigned numberOfChannels, | 180 unsigned numberOfChannels, |
180 double sampleRate, | 181 const WebAudioLatencyHint& latencyHint, |
181 WebAudioDevice::RenderCallback*, | 182 WebAudioDevice::RenderCallback*, |
182 const WebString& deviceId, | 183 const WebString& deviceId, |
183 const WebSecurityOrigin&) { | 184 const WebSecurityOrigin&) { |
184 return nullptr; | 185 return nullptr; |
185 } | 186 } |
186 | 187 |
187 // MIDI ---------------------------------------------------------------- | 188 // MIDI ---------------------------------------------------------------- |
188 | 189 |
189 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform | 190 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform |
190 // creates and owns it. | 191 // creates and owns it. |
191 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { | 192 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { |
192 return nullptr; | 193 return nullptr; |
193 } | 194 } |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
672 protected: | 673 protected: |
673 Platform(); | 674 Platform(); |
674 virtual ~Platform() {} | 675 virtual ~Platform() {} |
675 | 676 |
676 WebThread* m_mainThread; | 677 WebThread* m_mainThread; |
677 }; | 678 }; |
678 | 679 |
679 } // namespace blink | 680 } // namespace blink |
680 | 681 |
681 #endif | 682 #endif |
OLD | NEW |