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

Unified Diff: trunk/src/chromeos/audio/audio_devices_pref_handler.h

Issue 14655010: Revert 198556 "Implement the rest of the audio API." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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: trunk/src/chromeos/audio/audio_devices_pref_handler.h
===================================================================
--- trunk/src/chromeos/audio/audio_devices_pref_handler.h (revision 198567)
+++ trunk/src/chromeos/audio/audio_devices_pref_handler.h (working copy)
@@ -20,17 +20,15 @@
class CHROMEOS_EXPORT AudioDevicesPrefHandler
: public base::RefCountedThreadSafe<AudioDevicesPrefHandler> {
public:
- // Gets the audio output volume value from prefs for a device. Since we can
- // only have either a gain or a volume for a device (depending on whether it
- // is input or output), we don't really care which value it is.
- virtual double GetVolumeGainValue(uint64 device_id) = 0;
- // Sets the audio volume or gain value to prefs for a device.
- virtual void SetVolumeGainValue(uint64 device_id, double value) = 0;
+ // Gets the audio output volume value from prefs for the active device.
+ virtual double GetOutputVolumeValue() = 0;
+ // Reads the audio output mute value from prefs for the active device.
+ virtual bool GetOutputMuteValue() = 0;
- // Reads the audio mute value from prefs for a device.
- virtual bool GetMuteValue(uint64 device_id) = 0;
- // Sets the audio mute value to prefs for a device.
- virtual void SetMuteValue(uint64 device_id, bool mute_on) = 0;
+ // Sets the output audio volume value to prefs for the active device.
+ virtual void SetOutputVolumeValue(double volume_percent) = 0;
+ // Sets the audio output mute value to prefs for the active device.
+ virtual void SetOutputMuteValue(bool mute_on) = 0;
// Reads the audio capture allowed value from prefs.
virtual bool GetAudioCaptureAllowedValue() = 0;
« no previous file with comments | « trunk/src/chrome/common/extensions/api/_permission_features.json ('k') | trunk/src/chromeos/audio/cras_audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698