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

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

Issue 2300423002: Reland of Make TrayDetailsView a ViewClickListener and ButtonListener (Closed)
Patch Set: for review 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
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 8fa25d7f74c928641b393bb83c5794d54d10ccfd..4ae38ec78ee560eeeef4c8c4c8e5e13b365f0d14 100644
--- a/ash/common/system/chromeos/audio/audio_detailed_view.h
+++ b/ash/common/system/chromeos/audio/audio_detailed_view.h
@@ -8,7 +8,6 @@
#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"
@@ -22,7 +21,7 @@ class HoverHighlightView;
namespace tray {
-class AudioDetailedView : public TrayDetailsView, public ViewClickListener {
+class AudioDetailedView : public TrayDetailsView {
public:
explicit AudioDetailedView(SystemTrayItem* owner);
@@ -37,14 +36,13 @@ class AudioDetailedView : public TrayDetailsView, public ViewClickListener {
bool highlight,
bool checked);
- void CreateHeaderEntry();
void CreateItems();
void UpdateScrollableList();
void UpdateAudioDevices();
- // Overridden from ViewClickListener.
- void OnViewClicked(views::View* sender) override;
+ // TrayDetailsView:
+ void HandleViewClicked(views::View* view) override;
typedef std::map<views::View*, chromeos::AudioDevice> AudioDeviceMap;

Powered by Google App Engine
This is Rietveld 408576698