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

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

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, 5 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/strings/string16.h" 12 #include "base/strings/string16.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/notifications/notification_delegate.h" 14 #include "chrome/browser/notifications/notification_delegate.h"
15 #include "third_party/WebKit/public/web/WebTextDirection.h" 15 #include "third_party/WebKit/public/web/WebTextDirection.h"
16 #include "ui/gfx/image/image.h" 16 #include "ui/gfx/image/image.h"
17 #include "ui/message_center/notification.h" 17 #include "ui/message_center/notification.h"
18 #include "ui/message_center/notification_types.h" 18 #include "ui/message_center/notification_types.h"
19 #include "url/gurl.h" 19 #include "url/gurl.h"
20 20
21 // Representation of a notification to be shown to the user. 21 // Representation of a notification to be shown to the user.
22 // On non-Ash platforms these are rendered as HTML, sometimes described by a 22 // On non-Ash platforms these are rendered as HTML, sometimes described by a
23 // data url converted from text + icon data. On Ash they are rendered as 23 // data url converted from text + icon data. On Ash they are rendered as
24 // formated text and icon data. 24 // formated text and icon data.
25 class Notification : public message_center::Notification { 25 class Notification : public message_center::Notification {
26 public: 26 public:
27 Notification();
dewittj 2013/07/24 23:09:53 I don't love this, since it creates an invalid not
jianli 2013/07/25 01:02:41 Removed.
28
27 // Initializes a notification with HTML content. 29 // Initializes a notification with HTML content.
28 Notification(const GURL& origin_url, 30 Notification(const GURL& origin_url,
29 const GURL& content_url, 31 const GURL& content_url,
30 const string16& display_source, 32 const string16& display_source,
31 const string16& replace_id, 33 const string16& replace_id,
32 NotificationDelegate* delegate); 34 NotificationDelegate* delegate);
33 35
34 // Initializes a notification with text content. On non-ash platforms, this 36 // Initializes a notification with text content. On non-ash platforms, this
35 // creates an HTML representation using a data: URL for display. 37 // creates an HTML representation using a data: URL for display.
36 Notification(const GURL& origin_url, 38 Notification(const GURL& origin_url,
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 128
127 // The user-supplied replace ID for the notification. 129 // The user-supplied replace ID for the notification.
128 string16 replace_id_; 130 string16 replace_id_;
129 131
130 // A proxy object that allows access back to the JavaScript object that 132 // A proxy object that allows access back to the JavaScript object that
131 // represents the notification, for firing events. 133 // represents the notification, for firing events.
132 scoped_refptr<NotificationDelegate> delegate_; 134 scoped_refptr<NotificationDelegate> delegate_;
133 }; 135 };
134 136
135 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 137 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698