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

Unified Diff: ash/common/system/tray/actionable_view.cc

Issue 2482043002: [ash-md] Updated layout of Brightness and Audio system menu rows to the material design spec. (Closed)
Patch Set: Fixed bad merge. Created 4 years, 1 month 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/tray/actionable_view.cc
diff --git a/ash/common/system/tray/actionable_view.cc b/ash/common/system/tray/actionable_view.cc
index 07be3c018ee83d232b94863122483498c9e338f0..53d3f59cf6f039edf6c196cd3507b2b3a83ff9e1 100644
--- a/ash/common/system/tray/actionable_view.cc
+++ b/ash/common/system/tray/actionable_view.cc
@@ -127,4 +127,16 @@ void ActionableView::ButtonPressed(Button* sender, const ui::Event& event) {
}
}
+ButtonListenerActionableView::ButtonListenerActionableView(
+ SystemTrayItem* owner,
+ views::ButtonListener* listener)
+ : ActionableView(owner), listener_(listener) {}
+
+// ButtonListenerActionableView::~ButtonListenerActionableView() {}
+
+bool ButtonListenerActionableView::PerformAction(const ui::Event& event) {
+ listener_->ButtonPressed(this, event);
+ return true;
+}
+
} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698