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 18 matching lines...) Expand all Loading... |
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 should_make_spoken_feedback_for_popup_updates(true) {} | 32 should_make_spoken_feedback_for_popup_updates(true) {} |
33 | 33 |
34 RichNotificationData::RichNotificationData(const RichNotificationData& other) | 34 RichNotificationData::RichNotificationData(const RichNotificationData& other) |
35 : priority(other.priority), | 35 : priority(other.priority), |
36 never_timeout(other.never_timeout), | 36 never_timeout(other.never_timeout), |
37 timestamp(other.timestamp), | 37 timestamp(other.timestamp), |
38 expanded_message(other.expanded_message), | 38 expanded_message(other.expanded_message), |
39 context_message(other.context_message), | |
40 image(other.image), | 39 image(other.image), |
41 items(other.items), | 40 items(other.items), |
42 progress(other.progress), | 41 progress(other.progress), |
43 buttons(other.buttons), | 42 buttons(other.buttons), |
44 should_make_spoken_feedback_for_popup_updates( | 43 should_make_spoken_feedback_for_popup_updates( |
45 other.should_make_spoken_feedback_for_popup_updates) {} | 44 other.should_make_spoken_feedback_for_popup_updates) {} |
46 | 45 |
47 RichNotificationData::~RichNotificationData() {} | 46 RichNotificationData::~RichNotificationData() {} |
48 | 47 |
49 Notification::Notification(NotificationType type, | 48 Notification::Notification(NotificationType type, |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 icon, | 140 icon, |
142 base::string16() /* display_source */, | 141 base::string16() /* display_source */, |
143 NotifierId(system_component_id), | 142 NotifierId(system_component_id), |
144 RichNotificationData(), | 143 RichNotificationData(), |
145 new HandleNotificationClickedDelegate(click_callback))); | 144 new HandleNotificationClickedDelegate(click_callback))); |
146 notification->SetSystemPriority(); | 145 notification->SetSystemPriority(); |
147 return notification.Pass(); | 146 return notification.Pass(); |
148 } | 147 } |
149 | 148 |
150 } // namespace message_center | 149 } // namespace message_center |
OLD | NEW |