OLD | NEW |
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 Loading... |
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 |
OLD | NEW |