| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 progress(other.progress), | 51 progress(other.progress), |
| 52 buttons(other.buttons), | 52 buttons(other.buttons), |
| 53 should_make_spoken_feedback_for_popup_updates( | 53 should_make_spoken_feedback_for_popup_updates( |
| 54 other.should_make_spoken_feedback_for_popup_updates), | 54 other.should_make_spoken_feedback_for_popup_updates), |
| 55 clickable(other.clickable), | 55 clickable(other.clickable), |
| 56 #if defined(OS_CHROMEOS) | 56 #if defined(OS_CHROMEOS) |
| 57 pinned(other.pinned), | 57 pinned(other.pinned), |
| 58 #endif // defined(OS_CHROMEOS) | 58 #endif // defined(OS_CHROMEOS) |
| 59 vibration_pattern(other.vibration_pattern), | 59 vibration_pattern(other.vibration_pattern), |
| 60 renotify(other.renotify), | 60 renotify(other.renotify), |
| 61 silent(other.silent) {} | 61 silent(other.silent), |
| 62 accessible_name(other.accessible_name) {} |
| 62 | 63 |
| 63 RichNotificationData::~RichNotificationData() {} | 64 RichNotificationData::~RichNotificationData() {} |
| 64 | 65 |
| 65 Notification::Notification(NotificationType type, | 66 Notification::Notification(NotificationType type, |
| 66 const std::string& id, | 67 const std::string& id, |
| 67 const base::string16& title, | 68 const base::string16& title, |
| 68 const base::string16& message, | 69 const base::string16& message, |
| 69 const gfx::Image& icon, | 70 const gfx::Image& icon, |
| 70 const base::string16& display_source, | 71 const base::string16& display_source, |
| 71 const GURL& origin_url, | 72 const GURL& origin_url, |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon, | 177 NOTIFICATION_TYPE_SIMPLE, notification_id, title, message, icon, |
| 177 base::string16() /* display_source */, GURL(), | 178 base::string16() /* display_source */, GURL(), |
| 178 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), | 179 NotifierId(NotifierId::SYSTEM_COMPONENT, system_component_id), |
| 179 RichNotificationData(), | 180 RichNotificationData(), |
| 180 new HandleNotificationClickedDelegate(click_callback))); | 181 new HandleNotificationClickedDelegate(click_callback))); |
| 181 notification->SetSystemPriority(); | 182 notification->SetSystemPriority(); |
| 182 return notification; | 183 return notification; |
| 183 } | 184 } |
| 184 | 185 |
| 185 } // namespace message_center | 186 } // namespace message_center |
| OLD | NEW |