OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_GLUE_PLUGINS_WEBPLUGIN_AUDIO_DEVICE_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_AUDIO_DEVICE_DELEGATE_H_ |
6 #define WEBKIT_GLUE_PLUGINS_WEBPLUGIN_AUDIO_DEVICE_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_AUDIO_DEVICE_DELEGATE_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "third_party/npapi/bindings/npapi_extensions.h" | 9 #include "third_party/npapi/bindings/npapi_extensions.h" |
10 | 10 |
11 namespace webkit_glue { | 11 namespace webkit { |
| 12 namespace npapi { |
12 | 13 |
13 // Interface for the NPAPI audio device extension. This class implements "NOP" | 14 // Interface for the NPAPI audio device extension. This class implements "NOP" |
14 // versions of all these functions so it can be used seamlessly by the | 15 // versions of all these functions so it can be used seamlessly by the |
15 // "regular" plugin delegate while being overridden by the "pepper" one. | 16 // "regular" plugin delegate while being overridden by the "pepper" one. |
16 class WebPluginAudioDeviceDelegate { | 17 class WebPluginAudioDeviceDelegate { |
17 public: | 18 public: |
18 virtual NPError DeviceAudioQueryCapability(int32 capability, int32* value); | 19 virtual NPError DeviceAudioQueryCapability(int32 capability, int32* value); |
19 virtual NPError DeviceAudioQueryConfig( | 20 virtual NPError DeviceAudioQueryConfig( |
20 const NPDeviceContextAudioConfig* request, | 21 const NPDeviceContextAudioConfig* request, |
21 NPDeviceContextAudioConfig* obtain); | 22 NPDeviceContextAudioConfig* obtain); |
22 virtual NPError DeviceAudioInitializeContext( | 23 virtual NPError DeviceAudioInitializeContext( |
23 const NPDeviceContextAudioConfig* config, | 24 const NPDeviceContextAudioConfig* config, |
24 NPDeviceContextAudio* context); | 25 NPDeviceContextAudio* context); |
25 virtual NPError DeviceAudioSetStateContext(NPDeviceContextAudio* context, | 26 virtual NPError DeviceAudioSetStateContext(NPDeviceContextAudio* context, |
26 int32 state, intptr_t value); | 27 int32 state, intptr_t value); |
27 virtual NPError DeviceAudioGetStateContext(NPDeviceContextAudio* context, | 28 virtual NPError DeviceAudioGetStateContext(NPDeviceContextAudio* context, |
28 int32 state, intptr_t* value); | 29 int32 state, intptr_t* value); |
29 virtual NPError DeviceAudioFlushContext( | 30 virtual NPError DeviceAudioFlushContext( |
30 NPP id, NPDeviceContextAudio* context, | 31 NPP id, NPDeviceContextAudio* context, |
31 NPDeviceFlushContextCallbackPtr callback, void* user_data); | 32 NPDeviceFlushContextCallbackPtr callback, void* user_data); |
32 virtual NPError DeviceAudioDestroyContext(NPDeviceContextAudio* context); | 33 virtual NPError DeviceAudioDestroyContext(NPDeviceContextAudio* context); |
33 | 34 |
34 protected: | 35 protected: |
35 WebPluginAudioDeviceDelegate() {} | 36 WebPluginAudioDeviceDelegate() {} |
36 virtual ~WebPluginAudioDeviceDelegate() {} | 37 virtual ~WebPluginAudioDeviceDelegate() {} |
37 }; | 38 }; |
38 | 39 |
39 } // namespace webkit_glue | 40 } // namespace npapi |
| 41 } // namespace webkit |
40 | 42 |
41 #endif // WEBKIT_GLUE_PLUGINS_WEBPLUGIN_AUDIO_DEVICE_DELEGATE_H_ | 43 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_AUDIO_DEVICE_DELEGATE_H_ |
42 | 44 |
OLD | NEW |