| 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 21 matching lines...) Expand all Loading... |
| 32 should_make_spoken_feedback_for_popup_updates(true), | 32 should_make_spoken_feedback_for_popup_updates(true), |
| 33 clickable(true) {} | 33 clickable(true) {} |
| 34 | 34 |
| 35 RichNotificationData::RichNotificationData(const RichNotificationData& other) | 35 RichNotificationData::RichNotificationData(const RichNotificationData& other) |
| 36 : priority(other.priority), | 36 : priority(other.priority), |
| 37 never_timeout(other.never_timeout), | 37 never_timeout(other.never_timeout), |
| 38 timestamp(other.timestamp), | 38 timestamp(other.timestamp), |
| 39 expanded_message(other.expanded_message), | 39 expanded_message(other.expanded_message), |
| 40 context_message(other.context_message), | 40 context_message(other.context_message), |
| 41 image(other.image), | 41 image(other.image), |
| 42 small_image(other.small_image), |
| 42 items(other.items), | 43 items(other.items), |
| 43 progress(other.progress), | 44 progress(other.progress), |
| 44 buttons(other.buttons), | 45 buttons(other.buttons), |
| 45 should_make_spoken_feedback_for_popup_updates( | 46 should_make_spoken_feedback_for_popup_updates( |
| 46 other.should_make_spoken_feedback_for_popup_updates), | 47 other.should_make_spoken_feedback_for_popup_updates), |
| 47 clickable(other.clickable) {} | 48 clickable(other.clickable) {} |
| 48 | 49 |
| 49 RichNotificationData::~RichNotificationData() {} | 50 RichNotificationData::~RichNotificationData() {} |
| 50 | 51 |
| 51 Notification::Notification(NotificationType type, | 52 Notification::Notification(NotificationType type, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 icon, | 148 icon, |
| 148 base::string16() /* display_source */, | 149 base::string16() /* display_source */, |
| 149 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), | 150 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), |
| 150 RichNotificationData(), | 151 RichNotificationData(), |
| 151 new HandleNotificationClickedDelegate(click_callback))); | 152 new HandleNotificationClickedDelegate(click_callback))); |
| 152 notification->SetSystemPriority(); | 153 notification->SetSystemPriority(); |
| 153 return notification.Pass(); | 154 return notification.Pass(); |
| 154 } | 155 } |
| 155 | 156 |
| 156 } // namespace message_center | 157 } // namespace message_center |
| OLD | NEW |