| 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 namespace v8 { | 66 namespace v8 { |
| 67 class Context; | 67 class Context; |
| 68 template <class T> | 68 template <class T> |
| 69 class Local; | 69 class Local; |
| 70 } | 70 } |
| 71 | 71 |
| 72 namespace blink { | 72 namespace blink { |
| 73 | 73 |
| 74 class InterfaceProvider; | 74 class InterfaceProvider; |
| 75 class WebAudioBus; | 75 class WebAudioBus; |
| 76 class WebAudioLatencyHint; |
| 76 class WebBlobRegistry; | 77 class WebBlobRegistry; |
| 77 class WebCanvasCaptureHandler; | 78 class WebCanvasCaptureHandler; |
| 78 class WebClipboard; | 79 class WebClipboard; |
| 79 class WebCompositorSupport; | 80 class WebCompositorSupport; |
| 80 class WebCookieJar; | 81 class WebCookieJar; |
| 81 class WebCrypto; | 82 class WebCrypto; |
| 82 class WebDatabaseObserver; | 83 class WebDatabaseObserver; |
| 83 class WebPlatformEventListener; | 84 class WebPlatformEventListener; |
| 84 class WebFallbackThemeEngine; | 85 class WebFallbackThemeEngine; |
| 85 class WebFileSystem; | 86 class WebFileSystem; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 } | 170 } |
| 170 | 171 |
| 171 // Audio -------------------------------------------------------------- | 172 // Audio -------------------------------------------------------------- |
| 172 | 173 |
| 173 virtual double audioHardwareSampleRate() { return 0; } | 174 virtual double audioHardwareSampleRate() { return 0; } |
| 174 virtual size_t audioHardwareBufferSize() { return 0; } | 175 virtual size_t audioHardwareBufferSize() { return 0; } |
| 175 virtual unsigned audioHardwareOutputChannels() { return 0; } | 176 virtual unsigned audioHardwareOutputChannels() { return 0; } |
| 176 | 177 |
| 177 // Creates a device for audio I/O. | 178 // Creates a device for audio I/O. |
| 178 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 179 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
| 179 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, | 180 virtual WebAudioDevice* createAudioDevice( |
| 180 unsigned numberOfInputChannels, | 181 unsigned numberOfInputChannels, |
| 181 unsigned numberOfChannels, | 182 unsigned numberOfChannels, |
| 182 double sampleRate, | 183 const WebAudioLatencyHint& latencyHint, |
| 183 WebAudioDevice::RenderCallback*, | 184 WebAudioDevice::RenderCallback*, |
| 184 const WebString& deviceId, | 185 const WebString& deviceId, |
| 185 const WebSecurityOrigin&) { | 186 const WebSecurityOrigin&) { |
| 186 return nullptr; | 187 return nullptr; |
| 187 } | 188 } |
| 188 | 189 |
| 189 // MIDI ---------------------------------------------------------------- | 190 // MIDI ---------------------------------------------------------------- |
| 190 | 191 |
| 191 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform | 192 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform |
| 192 // creates and owns it. | 193 // creates and owns it. |
| 193 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { | 194 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { |
| 194 return nullptr; | 195 return nullptr; |
| 195 } | 196 } |
| (...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 679 protected: | 680 protected: |
| 680 Platform(); | 681 Platform(); |
| 681 virtual ~Platform() {} | 682 virtual ~Platform() {} |
| 682 | 683 |
| 683 WebThread* m_mainThread; | 684 WebThread* m_mainThread; |
| 684 }; | 685 }; |
| 685 | 686 |
| 686 } // namespace blink | 687 } // namespace blink |
| 687 | 688 |
| 688 #endif | 689 #endif |
| OLD | NEW |