Chromium Code Reviews| 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 23 matching lines...) Expand all Loading... | |
| 34 never_timeout(other.never_timeout), | 34 never_timeout(other.never_timeout), |
| 35 timestamp(other.timestamp), | 35 timestamp(other.timestamp), |
| 36 expanded_message(other.expanded_message), | 36 expanded_message(other.expanded_message), |
| 37 image(other.image), | 37 image(other.image), |
| 38 items(other.items), | 38 items(other.items), |
| 39 progress(other.progress), | 39 progress(other.progress), |
| 40 buttons(other.buttons) {} | 40 buttons(other.buttons) {} |
| 41 | 41 |
| 42 RichNotificationData::~RichNotificationData() {} | 42 RichNotificationData::~RichNotificationData() {} |
| 43 | 43 |
| 44 Notification::Notification() { | |
|
dewittj
2013/07/24 23:09:53
Doesn't this need defaults for all the member vari
jianli
2013/07/25 01:02:41
Removed.
| |
| 45 } | |
| 46 | |
| 44 Notification::Notification(NotificationType type, | 47 Notification::Notification(NotificationType type, |
| 45 const std::string& id, | 48 const std::string& id, |
| 46 const string16& title, | 49 const string16& title, |
| 47 const string16& message, | 50 const string16& message, |
| 48 const gfx::Image& icon, | 51 const gfx::Image& icon, |
| 49 const string16& display_source, | 52 const string16& display_source, |
| 50 const std::string& extension_id, | 53 const std::string& extension_id, |
| 51 const RichNotificationData& optional_fields, | 54 const RichNotificationData& optional_fields, |
| 52 NotificationDelegate* delegate) | 55 NotificationDelegate* delegate) |
| 53 : type_(type), | 56 : type_(type), |
| (...skipping 56 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 |