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 Notification::Notification( | 7 Notification::Notification( |
8 message_center::NotificationType type, | 8 message_center::NotificationType type, |
9 const GURL& origin_url, | 9 const GURL& origin_url, |
10 const base::string16& title, | 10 const base::string16& title, |
(...skipping 14 matching lines...) Expand all Loading... |
25 notifier_id, | 25 notifier_id, |
26 rich_notification_data, | 26 rich_notification_data, |
27 delegate), | 27 delegate), |
28 origin_url_(origin_url), | 28 origin_url_(origin_url), |
29 replace_id_(replace_id), | 29 replace_id_(replace_id), |
30 delegate_(delegate) {} | 30 delegate_(delegate) {} |
31 | 31 |
32 Notification::Notification(const Notification& notification) | 32 Notification::Notification(const Notification& notification) |
33 : message_center::Notification(notification), | 33 : message_center::Notification(notification), |
34 origin_url_(notification.origin_url()), | 34 origin_url_(notification.origin_url()), |
35 button_one_icon_url_(notification.button_one_icon_url()), | |
36 button_two_icon_url_(notification.button_two_icon_url()), | |
37 image_url_(notification.image_url()), | |
38 replace_id_(notification.replace_id()), | 35 replace_id_(notification.replace_id()), |
39 delegate_(notification.delegate()) {} | 36 delegate_(notification.delegate()) {} |
40 | 37 |
41 Notification::~Notification() {} | 38 Notification::~Notification() {} |
42 | 39 |
43 Notification& Notification::operator=(const Notification& notification) { | 40 Notification& Notification::operator=(const Notification& notification) { |
44 message_center::Notification::operator=(notification); | 41 message_center::Notification::operator=(notification); |
45 origin_url_ = notification.origin_url(); | 42 origin_url_ = notification.origin_url(); |
46 button_one_icon_url_ = notification.button_one_icon_url(); | |
47 button_two_icon_url_ = notification.button_two_icon_url(); | |
48 image_url_ = notification.image_url(); | |
49 replace_id_ = notification.replace_id(); | 43 replace_id_ = notification.replace_id(); |
50 delegate_ = notification.delegate(); | 44 delegate_ = notification.delegate(); |
51 return *this; | 45 return *this; |
52 } | 46 } |
OLD | NEW |