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

Unified Diff: ash/common/system/chromeos/audio/audio_detailed_view.h

Issue 2300353002: Revert of Make TrayDetailsView a ViewClickListener and ButtonListener (Closed)
Patch Set: Created 4 years, 3 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/common/system/cast/tray_cast.cc ('k') | ash/common/system/chromeos/audio/audio_detailed_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/audio/audio_detailed_view.h
diff --git a/ash/common/system/chromeos/audio/audio_detailed_view.h b/ash/common/system/chromeos/audio/audio_detailed_view.h
index 4ae38ec78ee560eeeef4c8c4c8e5e13b365f0d14..8fa25d7f74c928641b393bb83c5794d54d10ccfd 100644
--- a/ash/common/system/chromeos/audio/audio_detailed_view.h
+++ b/ash/common/system/chromeos/audio/audio_detailed_view.h
@@ -8,6 +8,7 @@
#include <map>
#include "ash/common/system/tray/tray_details_view.h"
+#include "ash/common/system/tray/view_click_listener.h"
#include "base/macros.h"
#include "chromeos/audio/audio_device.h"
#include "ui/gfx/font.h"
@@ -21,7 +22,7 @@
namespace tray {
-class AudioDetailedView : public TrayDetailsView {
+class AudioDetailedView : public TrayDetailsView, public ViewClickListener {
public:
explicit AudioDetailedView(SystemTrayItem* owner);
@@ -36,13 +37,14 @@
bool highlight,
bool checked);
+ void CreateHeaderEntry();
void CreateItems();
void UpdateScrollableList();
void UpdateAudioDevices();
- // TrayDetailsView:
- void HandleViewClicked(views::View* view) override;
+ // Overridden from ViewClickListener.
+ void OnViewClicked(views::View* sender) override;
typedef std::map<views::View*, chromeos::AudioDevice> AudioDeviceMap;
« no previous file with comments | « ash/common/system/cast/tray_cast.cc ('k') | ash/common/system/chromeos/audio/audio_detailed_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698