| 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_types.h" | 8 #include "ui/message_center/notification_types.h" |
| 9 | 9 |
| 10 namespace { | 10 namespace { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 NotificationDelegate* delegate) | 52 NotificationDelegate* delegate) |
| 53 : type_(type), | 53 : type_(type), |
| 54 id_(id), | 54 id_(id), |
| 55 title_(title), | 55 title_(title), |
| 56 message_(message), | 56 message_(message), |
| 57 icon_(icon), | 57 icon_(icon), |
| 58 display_source_(display_source), | 58 display_source_(display_source), |
| 59 extension_id_(extension_id), | 59 extension_id_(extension_id), |
| 60 serial_number_(g_next_serial_number_++), | 60 serial_number_(g_next_serial_number_++), |
| 61 optional_fields_(optional_fields), | 61 optional_fields_(optional_fields), |
| 62 shown_as_popup_(false), |
| 63 is_read_(false), |
| 64 is_expanded_(false), |
| 62 delegate_(delegate) {} | 65 delegate_(delegate) {} |
| 63 | 66 |
| 64 Notification::Notification(const Notification& other) | 67 Notification::Notification(const Notification& other) |
| 65 : type_(other.type_), | 68 : type_(other.type_), |
| 66 id_(other.id_), | 69 id_(other.id_), |
| 67 title_(other.title_), | 70 title_(other.title_), |
| 68 message_(other.message_), | 71 message_(other.message_), |
| 69 icon_(other.icon_), | 72 icon_(other.icon_), |
| 70 display_source_(other.display_source_), | 73 display_source_(other.display_source_), |
| 71 extension_id_(other.extension_id_), | 74 extension_id_(other.extension_id_), |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return; | 113 return; |
| 111 optional_fields_.buttons[index].icon = icon; | 114 optional_fields_.buttons[index].icon = icon; |
| 112 } | 115 } |
| 113 | 116 |
| 114 void Notification::SetSystemPriority() { | 117 void Notification::SetSystemPriority() { |
| 115 optional_fields_.priority = SYSTEM_PRIORITY; | 118 optional_fields_.priority = SYSTEM_PRIORITY; |
| 116 optional_fields_.never_timeout = true; | 119 optional_fields_.never_timeout = true; |
| 117 } | 120 } |
| 118 | 121 |
| 119 } // namespace message_center | 122 } // namespace message_center |
| OLD | NEW |