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

Unified Diff: ash/system/tray/system_tray_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/status_area_widget.cc ('k') | ash/volume_control_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_delegate.h
diff --git a/ash/system/tray/system_tray_delegate.h b/ash/system/tray/system_tray_delegate.h
index 6af67fe5a7e85e413bd94461a74747e6d2875954..a772d92ba328e87f9b8523b89a3863dafd4fc01d 100644
--- a/ash/system/tray/system_tray_delegate.h
+++ b/ash/system/tray/system_tray_delegate.h
@@ -13,6 +13,7 @@
#include "ash/system/user/login_status.h"
#include "base/file_path.h"
#include "base/i18n/time_formatting.h"
+#include "base/memory/scoped_ptr.h"
#include "base/string16.h"
#include "ui/gfx/image/image_skia.h"
@@ -96,6 +97,8 @@ struct ASH_EXPORT IMEInfo {
typedef std::vector<IMEInfo> IMEInfoList;
+class VolumeControlDelegate;
+
class SystemTrayDelegate {
public:
virtual ~SystemTrayDelegate() {}
@@ -142,18 +145,6 @@ class SystemTrayDelegate {
// Shows help.
virtual void ShowHelp() = 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;
-
// Gets whether the caps lock is on.
virtual bool IsCapsLockOn() const = 0;
@@ -278,6 +269,14 @@ class SystemTrayDelegate {
// Shows UI for changing proxy settings.
virtual void ChangeProxySettings() = 0;
+
+ // Returns VolumeControlDelegate.
+ virtual VolumeControlDelegate* GetVolumeControlDelegate() const = 0;
+
+ // Sets VolumeControlDelegate.
+ virtual void SetVolumeControlDelegate(
+ scoped_ptr<VolumeControlDelegate> delegate) = 0;
+
};
} // namespace ash
« no previous file with comments | « ash/system/status_area_widget.cc ('k') | ash/volume_control_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698