| 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 28 matching lines...) Expand all Loading... |
| 39 timestamp(other.timestamp), | 39 timestamp(other.timestamp), |
| 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 small_image(other.small_image), |
| 43 items(other.items), | 43 items(other.items), |
| 44 progress(other.progress), | 44 progress(other.progress), |
| 45 buttons(other.buttons), | 45 buttons(other.buttons), |
| 46 should_make_spoken_feedback_for_popup_updates( | 46 should_make_spoken_feedback_for_popup_updates( |
| 47 other.should_make_spoken_feedback_for_popup_updates), | 47 other.should_make_spoken_feedback_for_popup_updates), |
| 48 clickable(other.clickable), | 48 clickable(other.clickable), |
| 49 vibration_pattern(other.vibration_pattern), |
| 49 silent(other.silent) {} | 50 silent(other.silent) {} |
| 50 | 51 |
| 51 RichNotificationData::~RichNotificationData() {} | 52 RichNotificationData::~RichNotificationData() {} |
| 52 | 53 |
| 53 Notification::Notification(NotificationType type, | 54 Notification::Notification(NotificationType type, |
| 54 const std::string& id, | 55 const std::string& id, |
| 55 const base::string16& title, | 56 const base::string16& title, |
| 56 const base::string16& message, | 57 const base::string16& message, |
| 57 const gfx::Image& icon, | 58 const gfx::Image& icon, |
| 58 const base::string16& display_source, | 59 const base::string16& display_source, |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 icon, | 161 icon, |
| 161 base::string16() /* display_source */, | 162 base::string16() /* display_source */, |
| 162 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), | 163 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), |
| 163 RichNotificationData(), | 164 RichNotificationData(), |
| 164 new HandleNotificationClickedDelegate(click_callback))); | 165 new HandleNotificationClickedDelegate(click_callback))); |
| 165 notification->SetSystemPriority(); | 166 notification->SetSystemPriority(); |
| 166 return notification.Pass(); | 167 return notification.Pass(); |
| 167 } | 168 } |
| 168 | 169 |
| 169 } // namespace message_center | 170 } // namespace message_center |
| OLD | NEW |