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

Unified Diff: ash/volume_control_delegate.h

Issue 10825264: Consolidate volume control code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + Fix virutal function name. Created 8 years, 4 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 | « ash/system/tray/system_tray_delegate.h ('k') | ash/wm/system_gesture_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/volume_control_delegate.h
diff --git a/ash/volume_control_delegate.h b/ash/volume_control_delegate.h
index 24410f17e6d3628a12a702c6dcb13759dc7e0ba1..db2a99bc85ecd487d166146cfefd9cae0b7f84ce 100644
--- a/ash/volume_control_delegate.h
+++ b/ash/volume_control_delegate.h
@@ -20,6 +20,18 @@ class VolumeControlDelegate {
virtual bool HandleVolumeDown(const ui::Accelerator& accelerator) = 0;
virtual bool HandleVolumeUp(const ui::Accelerator& accelerator) = 0;
+ // Is the system audio muted?
+ virtual bool IsAudioMuted() const = 0;
+
+ // Mutes/Unmutes the audio system.
+ virtual void SetAudioMuted(bool muted) = 0;
+
+ // Gets the volume level. The range is [0, 1.0].
+ virtual float GetVolumeLevel() const = 0;
+
+ // Sets the volume level. The range is [0, 1.0].
+ virtual void SetVolumeLevel(float level) = 0;
+
// Requests that the volume be set to |percent|, in the range
// [0.0, 100.0].
virtual void SetVolumePercent(double percent) = 0;
« no previous file with comments | « ash/system/tray/system_tray_delegate.h ('k') | ash/wm/system_gesture_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698