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

Unified Diff: extensions/browser/api/audio/audio_api.h

Issue 2605983002: Simplify logic behind chrome.audio.setActiveDevices (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
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..f9a82d29914523b1001e36959911a760c2f86c18 100644
--- a/extensions/browser/api/audio/audio_api.h
+++ b/extensions/browser/api/audio/audio_api.h
@@ -50,6 +50,16 @@ class AudioGetInfoFunction : public UIThreadExtensionFunction {
ResponseAction Run() override;
};
+class AudioSetActiveDeviceListsFunction : public UIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("audio.setActiveDeviceLists",
+ AUDIO_SETACTIVEDEVICELISTS);
+
+ protected:
+ ~AudioSetActiveDeviceListsFunction() override {}
+ ResponseAction Run() override;
+};
+
class AudioSetActiveDevicesFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("audio.setActiveDevices", AUDIO_SETACTIVEDEVICES);

Powered by Google App Engine
This is Rietveld 408576698