Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(106)

Side by Side Diff: extensions/browser/api/audio/audio_api.h

Issue 2635983006: Final cleanup pass over audio device API (Closed)
Patch Set: . Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | extensions/browser/api/audio/audio_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | extensions/browser/api/audio/audio_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698