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/macros.h" | 10 #include "base/macros.h" |
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 void MessageCenterView::ClickOnNotification( | 498 void MessageCenterView::ClickOnNotification( |
499 const std::string& notification_id) { | 499 const std::string& notification_id) { |
500 message_center_->ClickOnNotification(notification_id); | 500 message_center_->ClickOnNotification(notification_id); |
501 } | 501 } |
502 | 502 |
503 void MessageCenterView::RemoveNotification(const std::string& notification_id, | 503 void MessageCenterView::RemoveNotification(const std::string& notification_id, |
504 bool by_user) { | 504 bool by_user) { |
505 message_center_->RemoveNotification(notification_id, by_user); | 505 message_center_->RemoveNotification(notification_id, by_user); |
506 } | 506 } |
507 | 507 |
508 scoped_ptr<ui::MenuModel> MessageCenterView::CreateMenuModel( | 508 std::unique_ptr<ui::MenuModel> MessageCenterView::CreateMenuModel( |
509 const NotifierId& notifier_id, | 509 const NotifierId& notifier_id, |
510 const base::string16& display_source) { | 510 const base::string16& display_source) { |
511 return tray_->CreateNotificationMenuModel(notifier_id, display_source); | 511 return tray_->CreateNotificationMenuModel(notifier_id, display_source); |
512 } | 512 } |
513 | 513 |
514 bool MessageCenterView::HasClickedListener(const std::string& notification_id) { | 514 bool MessageCenterView::HasClickedListener(const std::string& notification_id) { |
515 return message_center_->HasClickedListener(notification_id); | 515 return message_center_->HasClickedListener(notification_id); |
516 } | 516 } |
517 | 517 |
518 void MessageCenterView::ClickOnNotificationButton( | 518 void MessageCenterView::ClickOnNotificationButton( |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 scroller_->InvalidateLayout(); | 609 scroller_->InvalidateLayout(); |
610 PreferredSizeChanged(); | 610 PreferredSizeChanged(); |
611 Layout(); | 611 Layout(); |
612 } | 612 } |
613 | 613 |
614 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { | 614 void MessageCenterView::SetNotificationViewForTest(MessageView* view) { |
615 message_list_view_->AddNotificationAt(view, 0); | 615 message_list_view_->AddNotificationAt(view, 0); |
616 } | 616 } |
617 | 617 |
618 } // namespace message_center | 618 } // namespace message_center |
OLD | NEW |