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

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

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr Created 4 years, 8 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
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/macros.h" 10 #include "base/macros.h"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_view.h ('k') | ui/message_center/views/message_center_view_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698