| 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 class AudioSetPropertiesFunction : public UIThreadExtensionFunction { | 62 class AudioSetPropertiesFunction : public UIThreadExtensionFunction { |
| 63 public: | 63 public: |
| 64 DECLARE_EXTENSION_FUNCTION("audio.setProperties", AUDIO_SETPROPERTIES); | 64 DECLARE_EXTENSION_FUNCTION("audio.setProperties", AUDIO_SETPROPERTIES); |
| 65 | 65 |
| 66 protected: | 66 protected: |
| 67 ~AudioSetPropertiesFunction() override {} | 67 ~AudioSetPropertiesFunction() override {} |
| 68 ResponseAction Run() override; | 68 ResponseAction Run() override; |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 class AudioSetMuteFunction : public UIThreadExtensionFunction { |
| 72 public: |
| 73 DECLARE_EXTENSION_FUNCTION("audio.setMute", AUDIO_SETMUTE); |
| 74 |
| 75 protected: |
| 76 ~AudioSetMuteFunction() override {} |
| 77 ResponseAction Run() override; |
| 78 }; |
| 79 |
| 80 class AudioGetMuteFunction : public UIThreadExtensionFunction { |
| 81 public: |
| 82 DECLARE_EXTENSION_FUNCTION("audio.getMute", AUDIO_GETMUTE); |
| 83 |
| 84 protected: |
| 85 ~AudioGetMuteFunction() override {} |
| 86 ResponseAction Run() override; |
| 87 }; |
| 88 |
| 71 } // namespace extensions | 89 } // namespace extensions |
| 72 | 90 |
| 73 #endif // EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ | 91 #endif // EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_ |
| OLD | NEW |