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

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

Issue 576823003: Merge two Notification constructors, increase priority of low-battery notification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wrap kNotificationOriginUrl in GURL Created 6 years, 3 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
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"
(...skipping 20 matching lines...) Expand all
31 // creates an HTML representation using a data: URL for display. 31 // creates an HTML representation using a data: URL for display.
32 Notification(const GURL& origin_url, 32 Notification(const GURL& origin_url,
33 const GURL& icon_url, 33 const GURL& icon_url,
34 const base::string16& title, 34 const base::string16& title,
35 const base::string16& body, 35 const base::string16& body,
36 blink::WebTextDirection dir, 36 blink::WebTextDirection dir,
37 const base::string16& display_source, 37 const base::string16& display_source,
38 const base::string16& replace_id, 38 const base::string16& replace_id,
39 NotificationDelegate* delegate); 39 NotificationDelegate* delegate);
40 40
41 // Initializes a notification with text content and an icon image. Currently
42 // only used on Ash. Does not generate content_url_.
43 Notification(const GURL& origin_url,
44 const gfx::Image& icon,
45 const base::string16& title,
46 const base::string16& body,
47 blink::WebTextDirection dir,
48 const base::string16& display_source,
49 const base::string16& replace_id,
50 NotificationDelegate* delegate);
51
52 Notification( 41 Notification(
53 message_center::NotificationType type, 42 message_center::NotificationType type,
54 const GURL& origin_url, 43 const GURL& origin_url,
55 const base::string16& title, 44 const base::string16& title,
56 const base::string16& body, 45 const base::string16& body,
57 const gfx::Image& icon, 46 const gfx::Image& icon,
58 blink::WebTextDirection dir, 47 blink::WebTextDirection dir,
59 const message_center::NotifierId& notifier_id, 48 const message_center::NotifierId& notifier_id,
60 const base::string16& display_source, 49 const base::string16& display_source,
61 const base::string16& replace_id, 50 const base::string16& replace_id,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 101
113 // The user-supplied replace ID for the notification. 102 // The user-supplied replace ID for the notification.
114 base::string16 replace_id_; 103 base::string16 replace_id_;
115 104
116 // A proxy object that allows access back to the JavaScript object that 105 // A proxy object that allows access back to the JavaScript object that
117 // represents the notification, for firing events. 106 // represents the notification, for firing events.
118 scoped_refptr<NotificationDelegate> delegate_; 107 scoped_refptr<NotificationDelegate> delegate_;
119 }; 108 };
120 109
121 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 110 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/desktop_notification_service.cc ('k') | chrome/browser/notifications/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698