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

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

Issue 1645843003: Implement Non-Closable Notification (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary property. Created 4 years, 9 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 22 matching lines...) Expand all
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(scoped_ptr<Notification> notification) override;
39 void UpdateNotification(const std::string& old_id, 39 void UpdateNotification(const std::string& old_id,
40 scoped_ptr<Notification> new_notification) override; 40 scoped_ptr<Notification> new_notification) override;
41 41
42 void RemoveNotification(const std::string& id, bool by_user) override; 42 void RemoveNotification(const std::string& id, bool by_user) override;
43 void RemoveAllNotifications(bool by_user) override; 43 void RemoveAllNotifications(bool by_user, RemoveType type) override;
44 void RemoveAllVisibleNotifications(bool by_user) override;
45 void SetNotificationIcon(const std::string& notification_id, 44 void SetNotificationIcon(const std::string& notification_id,
46 const gfx::Image& image) override; 45 const gfx::Image& image) override;
47 46
48 void SetNotificationImage(const std::string& notification_id, 47 void SetNotificationImage(const std::string& notification_id,
49 const gfx::Image& image) override; 48 const gfx::Image& image) override;
50 49
51 void SetNotificationButtonIcon(const std::string& notification_id, 50 void SetNotificationButtonIcon(const std::string& notification_id,
52 int button_index, 51 int button_index,
53 const gfx::Image& image) override; 52 const gfx::Image& image) override;
54 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override; 53 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override;
(...skipping 20 matching lines...) Expand all
75 74
76 private: 75 private:
77 const NotificationList::Notifications empty_notifications_; 76 const NotificationList::Notifications empty_notifications_;
78 77
79 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); 78 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter);
80 }; 79 };
81 80
82 } // namespace message_center 81 } // namespace message_center
83 82
84 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 83 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698