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

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

Issue 163953007: Refactor the TrayAudio code so that it can be used by other platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove missing else condition 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_chromeos.h
diff --git a/ash/system/chromeos/audio/tray_audio_chromeos.h b/ash/system/chromeos/audio/tray_audio_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..42ddb86e04da963690a8a54e265a6b31aa08e917
--- /dev/null
+++ b/ash/system/chromeos/audio/tray_audio_chromeos.h
@@ -0,0 +1,42 @@
+// Copyright (c) 2012 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_CHROMEOS_AUDIO_TRAY_AUDIO_CHROMEOS_H_
+#define ASH_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_CHROMEOS_H_
+
+#include "ash/ash_export.h"
+#include "ash/system/audio/tray_audio.h"
+
+namespace ash {
+
+namespace internal {
+
+namespace tray {
+class AudioDetailedView;
+}
+
+class ASH_EXPORT TrayAudioChromeOs : public TrayAudio {
+ public:
+ explicit TrayAudioChromeOs(SystemTray* system_tray,
+ system::TrayAudioDelegate* audio_delegate);
+ virtual ~TrayAudioChromeOs();
+
+ protected:
+ // Overridden from TrayAudio
+ virtual void Update() OVERRIDE;
+
+ private:
+ // Overridden from SystemTrayItem.
+ virtual views::View* CreateDetailedView(user::LoginStatus status) OVERRIDE;
+ virtual void DestroyDetailedView() OVERRIDE;
+
+ tray::AudioDetailedView* audio_detail_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(TrayAudioChromeOs);
+};
+
+} // namespace internal
+} // namespace ash
+
+#endif // ASH_SYSTEM_CHROMEOS_AUDIO_TRAY_AUDIO_CHROMEOS_H_

Powered by Google App Engine
This is Rietveld 408576698