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

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

Issue 2578473002: chrome.audio API: treat mute as system wide property (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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
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