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

Unified Diff: ui/message_center/views/message_view.cc

Issue 2960333003: Extract the view of control buttons on notification into a separated class (Closed)
Patch Set: addressed comments Created 3 years, 6 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 | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/notification_control_buttons_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/message_view.cc
diff --git a/ui/message_center/views/message_view.cc b/ui/message_center/views/message_view.cc
index ed06b3ff7dd00f33bd4dbb15b205706c9ea496fb..340d9bcce8df1fe5269f693d111c8a21d052424f 100644
--- a/ui/message_center/views/message_view.cc
+++ b/ui/message_center/views/message_view.cc
@@ -235,6 +235,10 @@ void MessageView::OnCloseButtonPressed() {
controller_->RemoveNotification(notification_id_, true); // By user.
}
+void MessageView::OnSettingsButtonPressed() {
+ controller_->ClickOnSettingsButton(notification_id_);
+}
+
void MessageView::SetDrawBackgroundAsActive(bool active) {
background_view_->background()->
SetNativeControlColor(active ? kHoveredButtonBackgroundColor :
« no previous file with comments | « ui/message_center/views/message_view.h ('k') | ui/message_center/views/notification_control_buttons_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698