OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef PPAPI_THUNK_AUDIO_OUTPUT_API_H_ |
| 6 #define PPAPI_THUNK_AUDIO_OUTPUT_API_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include <string> |
| 11 |
| 12 #include "base/memory/ref_counted.h" |
| 13 #include "ppapi/c/dev/ppb_audio_output_dev.h" |
| 14 |
| 15 namespace ppapi { |
| 16 |
| 17 class TrackedCallback; |
| 18 |
| 19 namespace thunk { |
| 20 |
| 21 class PPB_AudioOutput_API { |
| 22 public: |
| 23 virtual ~PPB_AudioOutput_API() {} |
| 24 |
| 25 virtual int32_t EnumerateDevices(const PP_ArrayOutput& output, |
| 26 scoped_refptr<TrackedCallback> callback) = 0; |
| 27 virtual int32_t MonitorDeviceChange(PP_MonitorDeviceChangeCallback callback, |
| 28 void* user_data) = 0; |
| 29 virtual int32_t Open(PP_Resource device_ref, |
| 30 PP_Resource config, |
| 31 PPB_AudioOutput_Callback audio_output_callback, |
| 32 void* user_data, |
| 33 scoped_refptr<TrackedCallback> callback) = 0; |
| 34 virtual PP_Resource GetCurrentConfig() = 0; |
| 35 virtual PP_Bool StartPlayback() = 0; |
| 36 virtual PP_Bool StopPlayback() = 0; |
| 37 virtual void Close() = 0; |
| 38 }; |
| 39 |
| 40 } // namespace thunk |
| 41 } // namespace ppapi |
| 42 |
| 43 #endif // PPAPI_THUNK_AUDIO_OUTPUT_API_H_ |
OLD | NEW |