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

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: Created 4 years, 10 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 24 matching lines...) Expand all
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) override;
44 void RemoveAllVisibleNotifications(bool by_user) override; 44 void RemoveAllVisibleNotifications(bool by_user) override;
45 void RemoveAllClosableNotifications(bool by_user) override;
45 void SetNotificationIcon(const std::string& notification_id, 46 void SetNotificationIcon(const std::string& notification_id,
46 const gfx::Image& image) override; 47 const gfx::Image& image) override;
47 48
48 void SetNotificationImage(const std::string& notification_id, 49 void SetNotificationImage(const std::string& notification_id,
49 const gfx::Image& image) override; 50 const gfx::Image& image) override;
50 51
51 void SetNotificationButtonIcon(const std::string& notification_id, 52 void SetNotificationButtonIcon(const std::string& notification_id,
52 int button_index, 53 int button_index,
53 const gfx::Image& image) override; 54 const gfx::Image& image) override;
54 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override; 55 void DisableNotificationsByNotifier(const NotifierId& notifier_id) override;
(...skipping 20 matching lines...) Expand all
75 76
76 private: 77 private:
77 const NotificationList::Notifications empty_notifications_; 78 const NotificationList::Notifications empty_notifications_;
78 79
79 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter); 80 DISALLOW_COPY_AND_ASSIGN(FakeMessageCenter);
80 }; 81 };
81 82
82 } // namespace message_center 83 } // namespace message_center
83 84
84 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_ 85 #endif // UI_MESSAGE_CENTER_FAKE_MESSAGE_CENTER_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/fake_message_center.cc » ('j') | ui/message_center/message_center.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698