| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/notification.h" | 5 #include "ui/message_center/notification.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/message_center/notification_delegate.h" | 8 #include "ui/message_center/notification_delegate.h" |
| 9 #include "ui/message_center/notification_types.h" | 9 #include "ui/message_center/notification_types.h" |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 : priority(DEFAULT_PRIORITY), | 28 : priority(DEFAULT_PRIORITY), |
| 29 never_timeout(false), | 29 never_timeout(false), |
| 30 timestamp(base::Time::Now()), | 30 timestamp(base::Time::Now()), |
| 31 progress(0) {} | 31 progress(0) {} |
| 32 | 32 |
| 33 RichNotificationData::RichNotificationData(const RichNotificationData& other) | 33 RichNotificationData::RichNotificationData(const RichNotificationData& other) |
| 34 : priority(other.priority), | 34 : priority(other.priority), |
| 35 never_timeout(other.never_timeout), | 35 never_timeout(other.never_timeout), |
| 36 timestamp(other.timestamp), | 36 timestamp(other.timestamp), |
| 37 expanded_message(other.expanded_message), | 37 expanded_message(other.expanded_message), |
| 38 context_message(other.context_message), |
| 38 image(other.image), | 39 image(other.image), |
| 39 items(other.items), | 40 items(other.items), |
| 40 progress(other.progress), | 41 progress(other.progress), |
| 41 buttons(other.buttons) {} | 42 buttons(other.buttons) {} |
| 42 | 43 |
| 43 RichNotificationData::~RichNotificationData() {} | 44 RichNotificationData::~RichNotificationData() {} |
| 44 | 45 |
| 45 Notification::Notification(NotificationType type, | 46 Notification::Notification(NotificationType type, |
| 46 const std::string& id, | 47 const std::string& id, |
| 47 const string16& title, | 48 const string16& title, |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 icon, | 138 icon, |
| 138 base::string16() /* display_source */, | 139 base::string16() /* display_source */, |
| 139 NotifierId(system_component_id), | 140 NotifierId(system_component_id), |
| 140 RichNotificationData(), | 141 RichNotificationData(), |
| 141 new HandleNotificationClickedDelegate(click_callback))); | 142 new HandleNotificationClickedDelegate(click_callback))); |
| 142 notification->SetSystemPriority(); | 143 notification->SetSystemPriority(); |
| 143 return notification.Pass(); | 144 return notification.Pass(); |
| 144 } | 145 } |
| 145 | 146 |
| 146 } // namespace message_center | 147 } // namespace message_center |
| OLD | NEW |