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 10 matching lines...) Expand all Loading... |
21 } | 21 } |
22 | 22 |
23 ButtonInfo::ButtonInfo(const base::string16& title) | 23 ButtonInfo::ButtonInfo(const base::string16& title) |
24 : title(title) { | 24 : title(title) { |
25 } | 25 } |
26 | 26 |
27 RichNotificationData::RichNotificationData() | 27 RichNotificationData::RichNotificationData() |
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 context_message("", false), |
31 progress(0), | 32 progress(0), |
32 should_make_spoken_feedback_for_popup_updates(true), | 33 should_make_spoken_feedback_for_popup_updates(true), |
33 clickable(true), | 34 clickable(true), |
34 silent(false) {} | 35 silent(false) {} |
35 | 36 |
36 RichNotificationData::RichNotificationData(const RichNotificationData& other) | 37 RichNotificationData::RichNotificationData(const RichNotificationData& other) |
37 : priority(other.priority), | 38 : priority(other.priority), |
38 never_timeout(other.never_timeout), | 39 never_timeout(other.never_timeout), |
39 timestamp(other.timestamp), | 40 timestamp(other.timestamp), |
40 context_message(other.context_message), | 41 context_message(other.context_message), |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 icon, | 162 icon, |
162 base::string16() /* display_source */, | 163 base::string16() /* display_source */, |
163 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), | 164 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), |
164 RichNotificationData(), | 165 RichNotificationData(), |
165 new HandleNotificationClickedDelegate(click_callback))); | 166 new HandleNotificationClickedDelegate(click_callback))); |
166 notification->SetSystemPriority(); | 167 notification->SetSystemPriority(); |
167 return notification.Pass(); | 168 return notification.Pass(); |
168 } | 169 } |
169 | 170 |
170 } // namespace message_center | 171 } // namespace message_center |
OLD | NEW |