OLD | NEW |
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 #include "ui/message_center/fake_message_center.h" | 5 #include "ui/message_center/fake_message_center.h" |
6 #include "ui/message_center/notification_list.h" | 6 #include "ui/message_center/notification_list.h" |
7 | 7 |
8 namespace message_center { | 8 namespace message_center { |
9 | 9 |
10 FakeMessageCenter::FakeMessageCenter() { | 10 FakeMessageCenter::FakeMessageCenter() { |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 return NotificationList::PopupNotifications(); | 55 return NotificationList::PopupNotifications(); |
56 } | 56 } |
57 | 57 |
58 void FakeMessageCenter::AddNotification( | 58 void FakeMessageCenter::AddNotification( |
59 NotificationType type, | 59 NotificationType type, |
60 const std::string& id, | 60 const std::string& id, |
61 const string16& title, | 61 const string16& title, |
62 const string16& message, | 62 const string16& message, |
63 const string16& display_source, | 63 const string16& display_source, |
64 const std::string& extension_id, | 64 const std::string& extension_id, |
65 const base::DictionaryValue* optional_fields) { | 65 const base::DictionaryValue* optional_fields, |
66 } | 66 NotificationDelegate* delegate) {} |
67 | 67 |
68 void FakeMessageCenter::UpdateNotification( | 68 void FakeMessageCenter::UpdateNotification( |
69 const std::string& old_id, | 69 const std::string& old_id, |
70 const std::string& new_id, | 70 const std::string& new_id, |
71 const string16& title, | 71 const string16& title, |
72 const string16& message, | 72 const string16& message, |
73 const base::DictionaryValue* optional_fields) { | 73 const base::DictionaryValue* optional_fields, |
74 } | 74 NotificationDelegate* delegate) {} |
75 | 75 |
76 void FakeMessageCenter::RemoveNotification(const std::string& id, | 76 void FakeMessageCenter::RemoveNotification(const std::string& id, |
77 bool by_user) { | 77 bool by_user) { |
78 } | 78 } |
79 | 79 |
80 void FakeMessageCenter::RemoveAllNotifications(bool by_user) { | 80 void FakeMessageCenter::RemoveAllNotifications(bool by_user) { |
81 } | 81 } |
82 | 82 |
83 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, | 83 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, |
84 const gfx::Image& image) { | 84 const gfx::Image& image) { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 } | 128 } |
129 | 129 |
130 void FakeMessageCenter::EnterQuietModeWithExpire( | 130 void FakeMessageCenter::EnterQuietModeWithExpire( |
131 const base::TimeDelta& expires_in) { | 131 const base::TimeDelta& expires_in) { |
132 } | 132 } |
133 | 133 |
134 void FakeMessageCenter::SetMessageCenterVisible(bool visible) { | 134 void FakeMessageCenter::SetMessageCenterVisible(bool visible) { |
135 } | 135 } |
136 | 136 |
137 } // namespace message_center | 137 } // namespace message_center |
OLD | NEW |