Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: chrome/browser/notifications/notification.cc

Issue 20136004: Allow partial update for notification update API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix trybots Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698