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

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

Issue 1961813002: Show no-notification message in the bottom label of message center (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reused the existing string Created 4 years, 7 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_center_button_bar.h ('k') | ui/message_center/views/message_center_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_center_button_bar.cc
diff --git a/ui/message_center/views/message_center_button_bar.cc b/ui/message_center/views/message_center_button_bar.cc
index a92a5c4b002e249d6ef976dfafb08372606c4f87..47613da4f3167ddb158b6d6aa50957e1b4df972f 100644
--- a/ui/message_center/views/message_center_button_bar.cc
+++ b/ui/message_center/views/message_center_button_bar.cc
@@ -278,6 +278,10 @@ void MessageCenterButtonBar::SetBackArrowVisible(bool visible) {
Layout();
}
+void MessageCenterButtonBar::SetTitle(const base::string16& title) {
+ notification_label_->SetText(title);
+}
+
void MessageCenterButtonBar::ChildVisibilityChanged(views::View* child) {
InvalidateLayout();
}
« no previous file with comments | « ui/message_center/views/message_center_button_bar.h ('k') | ui/message_center/views/message_center_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698