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

Unified Diff: ash/system/chromeos/audio/tray_audio_delegate_chromeos.h

Issue 165393013: Resubmit 'Refactor the TrayAudio code so that it can be used by other platforms.' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT Created 6 years, 10 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: ash/system/chromeos/audio/tray_audio_delegate_chromeos.h
diff --git a/ash/system/chromeos/audio/tray_audio_delegate_chromeos.h b/ash/system/chromeos/audio/tray_audio_delegate_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..58e714d97a15c4df338d5f232a075c1733bd16c6
--- /dev/null
+++ b/ash/system/chromeos/audio/tray_audio_delegate_chromeos.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_CHROMEOS_H_
+#define ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_CHROMEOS_H_
+
+#include "ash/ash_export.h"
+#include "ash/system/audio/tray_audio_delegate.h"
+#include "base/compiler_specific.h"
+
+namespace ash {
+namespace system {
+
+class ASH_EXPORT TrayAudioDelegateChromeOs : public TrayAudioDelegate {
+ public:
+ virtual ~TrayAudioDelegateChromeOs() {}
+
+ // Overridden from TrayAudioDelegate.
+ virtual void AdjustOutputVolumeToAudibleLevel() OVERRIDE;
+ virtual int GetOutputDefaultVolumeMuteLevel() OVERRIDE;
+ virtual int GetOutputVolumeLevel() OVERRIDE;
+ virtual int GetActiveOutputDeviceIconId() OVERRIDE;
+ virtual bool HasAlternativeSources() OVERRIDE;
+ virtual bool IsOutputAudioMuted() OVERRIDE;
+ virtual void SetOutputAudioIsMuted(bool is_muted) OVERRIDE;
+ virtual void SetOutputVolumeLevel(int level) OVERRIDE;
+};
+
+} // namespace system
+} // namespace ash
+
+#endif // ASH_SYSTEM_AUDIO_TRAY_AUDIO_DELEGATE_CHROMEOS_H_
« no previous file with comments | « ash/system/chromeos/audio/tray_audio_chromeos.cc ('k') | ash/system/chromeos/audio/tray_audio_delegate_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698