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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 | 134 |
135 // May return null on some platforms. | 135 // May return null on some platforms. |
136 virtual WebThemeEngine* themeEngine() { return 0; } | 136 virtual WebThemeEngine* themeEngine() { return 0; } |
137 | 137 |
138 virtual WebFallbackThemeEngine* fallbackThemeEngine() { return 0; } | 138 virtual WebFallbackThemeEngine* fallbackThemeEngine() { return 0; } |
139 | 139 |
140 // May return null. | 140 // May return null. |
141 virtual WebSpeechSynthesizer* createSpeechSynthesizer(WebSpeechSynthesizerCl
ient*) { return 0; } | 141 virtual WebSpeechSynthesizer* createSpeechSynthesizer(WebSpeechSynthesizerCl
ient*) { return 0; } |
142 | 142 |
143 | 143 |
144 // Media -------------------------------------------------------------- | |
145 | |
146 // May return null. | |
147 virtual WebContentDecryptionModule* createContentDecryptionModule(const WebS
tring& keySystem) { return 0; } | |
148 | |
149 | |
150 // Audio -------------------------------------------------------------- | 144 // Audio -------------------------------------------------------------- |
151 | 145 |
152 virtual double audioHardwareSampleRate() { return 0; } | 146 virtual double audioHardwareSampleRate() { return 0; } |
153 virtual size_t audioHardwareBufferSize() { return 0; } | 147 virtual size_t audioHardwareBufferSize() { return 0; } |
154 virtual unsigned audioHardwareOutputChannels() { return 0; } | 148 virtual unsigned audioHardwareOutputChannels() { return 0; } |
155 | 149 |
156 // Creates a device for audio I/O. | 150 // Creates a device for audio I/O. |
157 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 151 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
158 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } | 152 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } |
159 | 153 |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
639 virtual WebDatabaseObserver* databaseObserver() { return 0; } | 633 virtual WebDatabaseObserver* databaseObserver() { return 0; } |
640 | 634 |
641 | 635 |
642 protected: | 636 protected: |
643 virtual ~Platform() { } | 637 virtual ~Platform() { } |
644 }; | 638 }; |
645 | 639 |
646 } // namespace blink | 640 } // namespace blink |
647 | 641 |
648 #endif | 642 #endif |
OLD | NEW |