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

Side by Side Diff: ui/message_center/views/message_center_view.cc

Issue 318173002: Fix the notification center label. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/message_center/views/message_center_view.h" 5 #include "ui/message_center/views/message_center_view.h"
6 6
7 #include <list> 7 #include <list>
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after
989 scroller_->SetFocusable(!no_message_views); 989 scroller_->SetFocusable(!no_message_views);
990 990
991 if (focus_manager && focused_view) 991 if (focus_manager && focused_view)
992 focus_manager->SetFocusedView(focused_view); 992 focus_manager->SetFocusedView(focused_view);
993 993
994 scroller_->InvalidateLayout(); 994 scroller_->InvalidateLayout();
995 PreferredSizeChanged(); 995 PreferredSizeChanged();
996 Layout(); 996 Layout();
997 } 997 }
998 998
999 void MessageCenterView::SetNotificationTitle(const base::string16& new_title) {
1000 button_bar_->SetNotificationTitle(new_title);
1001 }
1002
999 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { 1003 void MessageCenterView::SetNotificationViewForTest(MessageView* view) {
1000 message_list_view_->AddNotificationAt(view, 0); 1004 message_list_view_->AddNotificationAt(view, 0);
1001 } 1005 }
1002 1006
1003 } // namespace message_center 1007 } // namespace message_center
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698