| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ | 6 #define EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ |
| 7 | 7 |
| 8 #include "extensions/browser/api/audio/audio_service.h" | 8 #include "extensions/browser/api/audio/audio_service.h" |
| 9 #include "extensions/browser/browser_context_keyed_api_factory.h" | 9 #include "extensions/browser/browser_context_keyed_api_factory.h" |
| 10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class AudioGetInfoFunction : public UIThreadExtensionFunction { | 44 class AudioGetInfoFunction : public UIThreadExtensionFunction { |
| 45 public: | 45 public: |
| 46 DECLARE_EXTENSION_FUNCTION("audio.getInfo", AUDIO_GETINFO); | 46 DECLARE_EXTENSION_FUNCTION("audio.getInfo", AUDIO_GETINFO); |
| 47 | 47 |
| 48 protected: | 48 protected: |
| 49 ~AudioGetInfoFunction() override {} | 49 ~AudioGetInfoFunction() override {} |
| 50 ResponseAction Run() override; | 50 ResponseAction Run() override; |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 class AudioGetDevicesFunction : public UIThreadExtensionFunction { |
| 54 public: |
| 55 DECLARE_EXTENSION_FUNCTION("audio.getDevices", AUDIO_GETDEVICES); |
| 56 |
| 57 protected: |
| 58 ~AudioGetDevicesFunction() override {} |
| 59 ResponseAction Run() override; |
| 60 }; |
| 61 |
| 53 class AudioSetActiveDevicesFunction : public UIThreadExtensionFunction { | 62 class AudioSetActiveDevicesFunction : public UIThreadExtensionFunction { |
| 54 public: | 63 public: |
| 55 DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices", AUDIO_SETACTIVEDEVICES); | 64 DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices", AUDIO_SETACTIVEDEVICES); |
| 56 | 65 |
| 57 protected: | 66 protected: |
| 58 ~AudioSetActiveDevicesFunction() override {} | 67 ~AudioSetActiveDevicesFunction() override {} |
| 59 ResponseAction Run() override; | 68 ResponseAction Run() override; |
| 60 }; | 69 }; |
| 61 | 70 |
| 62 class AudioSetPropertiesFunction : public UIThreadExtensionFunction { | 71 class AudioSetPropertiesFunction : public UIThreadExtensionFunction { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 82 DECLARE_EXTENSION_FUNCTION("audio.getMute", AUDIO_GETMUTE); | 91 DECLARE_EXTENSION_FUNCTION("audio.getMute", AUDIO_GETMUTE); |
| 83 | 92 |
| 84 protected: | 93 protected: |
| 85 ~AudioGetMuteFunction() override {} | 94 ~AudioGetMuteFunction() override {} |
| 86 ResponseAction Run() override; | 95 ResponseAction Run() override; |
| 87 }; | 96 }; |
| 88 | 97 |
| 89 } // namespace extensions | 98 } // namespace extensions |
| 90 | 99 |
| 91 #endif // EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ | 100 #endif // EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ |
| OLD | NEW |