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

Side by Side Diff: ui/message_center/fake_message_center.h

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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 #ifndef UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 5 #ifndef UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 6 #define UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 17 matching lines...) Expand all
28 void RemoveNotificationBlocker(NotificationBlocker* blocker) override; 28 void RemoveNotificationBlocker(NotificationBlocker* blocker) override;
29 size_t NotificationCount() const override; 29 size_t NotificationCount() const override;
30 size_t UnreadNotificationCount() const override; 30 size_t UnreadNotificationCount() const override;
31 bool HasPopupNotifications() const override; 31 bool HasPopupNotifications() const override;
32 bool IsQuietMode() const override; 32 bool IsQuietMode() const override;
33 bool HasClickedListener(const std::string& id) override; 33 bool HasClickedListener(const std::string& id) override;
34 message_center::Notification* FindVisibleNotificationById( 34 message_center::Notification* FindVisibleNotificationById(
35 const std::string& id) override; 35 const std::string& id) override;
36 const NotificationList::Notifications& GetVisibleNotifications() override; 36 const NotificationList::Notifications& GetVisibleNotifications() override;
37 NotificationList::PopupNotifications GetPopupNotifications() override; 37 NotificationList::PopupNotifications GetPopupNotifications() override;
38 void AddNotification(scoped_ptr<Notification> notification) override; 38 void AddNotification(std::unique_ptr<Notification> notification) override;
39 void UpdateNotification(const std::string& old_id, 39 void UpdateNotification(
40 scoped_ptr<Notification> new_notification) override; 40 const std::string& old_id,
41 std::unique_ptr<Notification> new_notification) override;
41 42
42 void RemoveNotification(const std::string& id, bool by_user) override; 43 void RemoveNotification(const std::string& id, bool by_user) override;
43 void RemoveAllNotifications(bool by_user, RemoveType type) override; 44 void RemoveAllNotifications(bool by_user, RemoveType type) override;
44 void SetNotificationIcon(const std::string& notification_id, 45 void SetNotificationIcon(const std::string& notification_id,
45 const gfx::Image& image) override; 46 const gfx::Image& image) override;
46 47
47 void SetNotificationImage(const std::string& notification_id, 48 void SetNotificationImage(const std::string& notification_id,
48 const gfx::Image& image) override; 49 const gfx::Image& image) override;
49 50
50 void SetNotificationButtonIcon(const std::string& notification_id, 51 void SetNotificationButtonIcon(const std::string& notification_id,
(...skipping 23 matching lines...) Expand all
74 75
75 private: 76 private:
76 const NotificationList::Notifications empty_notifications_; 77 const NotificationList::Notifications empty_notifications_;
77 78
78 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); 79 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter);
79 }; 80 };
80 81
81 } // namespace message_center 82 } // namespace message_center
82 83
83 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 84 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « ui/message_center/cocoa/popup_controller_unittest.mm ('k') | ui/message_center/fake_message_center.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698