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 23 matching lines...) Expand all Loading... |
34 #ifdef WIN32 | 34 #ifdef WIN32 |
35 #include <windows.h> | 35 #include <windows.h> |
36 #endif | 36 #endif |
37 | 37 |
38 #include "WebAudioDevice.h" | 38 #include "WebAudioDevice.h" |
39 #include "WebCommon.h" | 39 #include "WebCommon.h" |
40 #include "WebData.h" | 40 #include "WebData.h" |
41 #include "WebGamepads.h" | 41 #include "WebGamepads.h" |
42 #include "WebGraphicsContext3D.h" | 42 #include "WebGraphicsContext3D.h" |
43 #include "WebLocalizedString.h" | 43 #include "WebLocalizedString.h" |
| 44 #include "WebMIDIAccessor.h" |
44 #include "WebSpeechSynthesizer.h" | 45 #include "WebSpeechSynthesizer.h" |
45 #include "WebString.h" | 46 #include "WebString.h" |
46 #include "WebVector.h" | 47 #include "WebVector.h" |
47 | 48 |
48 class GrContext; | 49 class GrContext; |
49 | 50 |
50 namespace WebKit { | 51 namespace WebKit { |
51 | 52 |
52 class WebAudioBus; | 53 class WebAudioBus; |
53 class WebBlobRegistry; | 54 class WebBlobRegistry; |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 virtual unsigned audioHardwareOutputChannels() { return 0; } | 137 virtual unsigned audioHardwareOutputChannels() { return 0; } |
137 | 138 |
138 // Creates a device for audio I/O. | 139 // Creates a device for audio I/O. |
139 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. | 140 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. |
140 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } | 141 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*, const WebString& deviceId) { return 0; } |
141 | 142 |
142 // FIXME: remove deprecated APIs once chromium switches over to new method. | 143 // FIXME: remove deprecated APIs once chromium switches over to new method. |
143 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; } | 144 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfChannels, double sampleRate, WebAudioDevice::RenderCallback*) { return 0; } |
144 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*) { return 0; } | 145 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number
OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R
enderCallback*) { return 0; } |
145 | 146 |
| 147 // MIDI -------------------------------------------------------------- |
| 148 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessor::Client*) { retu
rn 0; } |
146 | 149 |
147 // Blob ---------------------------------------------------------------- | 150 // Blob ---------------------------------------------------------------- |
148 | 151 |
149 // Must return non-null. | 152 // Must return non-null. |
150 virtual WebBlobRegistry* blobRegistry() { return 0; } | 153 virtual WebBlobRegistry* blobRegistry() { return 0; } |
151 | 154 |
152 | 155 |
153 // Database ------------------------------------------------------------ | 156 // Database ------------------------------------------------------------ |
154 | 157 |
155 // Opens a database file; dirHandle should be 0 if the caller does not need | 158 // Opens a database file; dirHandle should be 0 if the caller does not need |
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 // If null, the platform stops providing device motion data to the current l
istener. | 526 // If null, the platform stops providing device motion data to the current l
istener. |
524 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } | 527 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { } |
525 | 528 |
526 protected: | 529 protected: |
527 virtual ~Platform() { } | 530 virtual ~Platform() { } |
528 }; | 531 }; |
529 | 532 |
530 } // namespace WebKit | 533 } // namespace WebKit |
531 | 534 |
532 #endif | 535 #endif |
OLD | NEW |