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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | extensions/browser/api/audio/audio_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/audio/audio_api.h
diff --git a/extensions/browser/api/audio/audio_api.h b/extensions/browser/api/audio/audio_api.h
index ee4ce3b4044f48998eeb308b16c73bd2d672eb4a..f4d09ede772faf36f22ed40ec9748f1b6b44d8b4 100644
--- a/extensions/browser/api/audio/audio_api.h
+++ b/extensions/browser/api/audio/audio_api.h
@@ -68,6 +68,24 @@ class AudioSetPropertiesFunction : public UIThreadExtensionFunction {
ResponseAction Run() override;
};
+class AudioSetMuteFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("audio.setMute", AUDIO_SETMUTE);
+
+ protected:
+ ~AudioSetMuteFunction() override {}
+ ResponseAction Run() override;
+};
+
+class AudioGetMuteFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("audio.getMute", AUDIO_GETMUTE);
+
+ protected:
+ ~AudioGetMuteFunction() override {}
+ ResponseAction Run() override;
+};
+
} // namespace extensions
#endif // EXTENSIONS_BROWSER_API_AUDIO_AUDIO_API_H_
« 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