OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/notifications/notification.h" | 5 #include "chrome/browser/notifications/notification.h" |
6 | 6 |
7 #include "base/strings/string_util.h" | 7 #include "base/strings/string_util.h" |
8 #include "chrome/browser/notifications/desktop_notification_service.h" | 8 #include "chrome/browser/notifications/desktop_notification_service.h" |
9 #include "ui/message_center/message_center_util.h" | 9 #include "ui/message_center/message_center_util.h" |
10 #include "ui/webui/web_ui_util.h" | 10 #include "ui/webui/web_ui_util.h" |
11 | 11 |
| 12 Notification::Notification() { |
| 13 } |
| 14 |
12 Notification::Notification(const GURL& origin_url, | 15 Notification::Notification(const GURL& origin_url, |
13 const GURL& content_url, | 16 const GURL& content_url, |
14 const string16& display_source, | 17 const string16& display_source, |
15 const string16& replace_id, | 18 const string16& replace_id, |
16 NotificationDelegate* delegate) | 19 NotificationDelegate* delegate) |
17 : message_center::Notification(message_center::NOTIFICATION_TYPE_SIMPLE, | 20 : message_center::Notification(message_center::NOTIFICATION_TYPE_SIMPLE, |
18 delegate->id(), | 21 delegate->id(), |
19 EmptyString16(), | 22 EmptyString16(), |
20 EmptyString16(), | 23 EmptyString16(), |
21 gfx::Image(), | 24 gfx::Image(), |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 icon_url_ = notification.icon_url(); | 136 icon_url_ = notification.icon_url(); |
134 is_html_ = notification.is_html(); | 137 is_html_ = notification.is_html(); |
135 content_url_ = notification.content_url(); | 138 content_url_ = notification.content_url(); |
136 button_one_icon_url_ = notification.button_one_icon_url(); | 139 button_one_icon_url_ = notification.button_one_icon_url(); |
137 button_two_icon_url_ = notification.button_two_icon_url(); | 140 button_two_icon_url_ = notification.button_two_icon_url(); |
138 image_url_ = notification.image_url(); | 141 image_url_ = notification.image_url(); |
139 replace_id_ = notification.replace_id(); | 142 replace_id_ = notification.replace_id(); |
140 delegate_ = notification.delegate(); | 143 delegate_ = notification.delegate(); |
141 return *this; | 144 return *this; |
142 } | 145 } |
OLD | NEW |