| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 | 48 |
| 49 const NotificationList::Notifications& FakeMessageCenter::GetNotifications() { | 49 const NotificationList::Notifications& FakeMessageCenter::GetNotifications() { |
| 50 return empty_notifications_; | 50 return empty_notifications_; |
| 51 } | 51 } |
| 52 | 52 |
| 53 NotificationList::PopupNotifications | 53 NotificationList::PopupNotifications |
| 54 FakeMessageCenter::GetPopupNotifications() { | 54 FakeMessageCenter::GetPopupNotifications() { |
| 55 return NotificationList::PopupNotifications(); | 55 return NotificationList::PopupNotifications(); |
| 56 } | 56 } |
| 57 | 57 |
| 58 void FakeMessageCenter::AddNotification( | 58 void FakeMessageCenter::AddNotification(scoped_ptr<Notification> notification) { |
| 59 NotificationType type, | 59 } |
| 60 const std::string& id, | |
| 61 const string16& title, | |
| 62 const string16& message, | |
| 63 const string16& display_source, | |
| 64 const std::string& extension_id, | |
| 65 const base::DictionaryValue* optional_fields, | |
| 66 NotificationDelegate* delegate) {} | |
| 67 | 60 |
| 68 void FakeMessageCenter::UpdateNotification( | 61 void FakeMessageCenter::UpdateNotification( |
| 69 const std::string& old_id, | 62 const std::string& old_id, |
| 70 const std::string& new_id, | 63 scoped_ptr<Notification> new_notification) {} |
| 71 const string16& title, | |
| 72 const string16& message, | |
| 73 const base::DictionaryValue* optional_fields, | |
| 74 NotificationDelegate* delegate) {} | |
| 75 | 64 |
| 76 void FakeMessageCenter::RemoveNotification(const std::string& id, | 65 void FakeMessageCenter::RemoveNotification(const std::string& id, |
| 77 bool by_user) { | 66 bool by_user) { |
| 78 } | 67 } |
| 79 | 68 |
| 80 void FakeMessageCenter::RemoveAllNotifications(bool by_user) { | 69 void FakeMessageCenter::RemoveAllNotifications(bool by_user) { |
| 81 } | 70 } |
| 82 | 71 |
| 83 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, | 72 void FakeMessageCenter::SetNotificationIcon(const std::string& notification_id, |
| 84 const gfx::Image& image) { | 73 const gfx::Image& image) { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 117 } |
| 129 | 118 |
| 130 void FakeMessageCenter::EnterQuietModeWithExpire( | 119 void FakeMessageCenter::EnterQuietModeWithExpire( |
| 131 const base::TimeDelta& expires_in) { | 120 const base::TimeDelta& expires_in) { |
| 132 } | 121 } |
| 133 | 122 |
| 134 void FakeMessageCenter::SetMessageCenterVisible(bool visible) { | 123 void FakeMessageCenter::SetMessageCenterVisible(bool visible) { |
| 135 } | 124 } |
| 136 | 125 |
| 137 } // namespace message_center | 126 } // namespace message_center |
| OLD | NEW |