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

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

Issue 63273002: Rename WebKit namespace to blink (part 4) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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"
(...skipping 19 matching lines...) Expand all
30 const string16& display_source, 30 const string16& display_source,
31 const string16& replace_id, 31 const string16& replace_id,
32 NotificationDelegate* delegate); 32 NotificationDelegate* delegate);
33 33
34 // Initializes a notification with text content. On non-ash platforms, this 34 // Initializes a notification with text content. On non-ash platforms, this
35 // creates an HTML representation using a data: URL for display. 35 // creates an HTML representation using a data: URL for display.
36 Notification(const GURL& origin_url, 36 Notification(const GURL& origin_url,
37 const GURL& icon_url, 37 const GURL& icon_url,
38 const string16& title, 38 const string16& title,
39 const string16& body, 39 const string16& body,
40 WebKit::WebTextDirection dir, 40 blink::WebTextDirection dir,
41 const string16& display_source, 41 const string16& display_source,
42 const string16& replace_id, 42 const string16& replace_id,
43 NotificationDelegate* delegate); 43 NotificationDelegate* delegate);
44 44
45 // Initializes a notification with text content and an icon image. Currently 45 // Initializes a notification with text content and an icon image. Currently
46 // only used on Ash. Does not generate content_url_. 46 // only used on Ash. Does not generate content_url_.
47 Notification(const GURL& origin_url, 47 Notification(const GURL& origin_url,
48 const gfx::Image& icon, 48 const gfx::Image& icon,
49 const string16& title, 49 const string16& title,
50 const string16& body, 50 const string16& body,
51 WebKit::WebTextDirection dir, 51 blink::WebTextDirection dir,
52 const string16& display_source, 52 const string16& display_source,
53 const string16& replace_id, 53 const string16& replace_id,
54 NotificationDelegate* delegate); 54 NotificationDelegate* delegate);
55 55
56 Notification( 56 Notification(
57 message_center::NotificationType type, 57 message_center::NotificationType type,
58 const GURL& origin_url, 58 const GURL& origin_url,
59 const string16& title, 59 const string16& title,
60 const string16& body, 60 const string16& body,
61 const gfx::Image& icon, 61 const gfx::Image& icon,
62 WebKit::WebTextDirection dir, 62 blink::WebTextDirection dir,
63 const message_center::NotifierId& notifier_id, 63 const message_center::NotifierId& notifier_id,
64 const string16& display_source, 64 const string16& display_source,
65 const string16& replace_id, 65 const string16& replace_id,
66 const message_center::RichNotificationData& rich_notification_data, 66 const message_center::RichNotificationData& rich_notification_data,
67 NotificationDelegate* delegate); 67 NotificationDelegate* delegate);
68 68
69 Notification(const Notification& notification); 69 Notification(const Notification& notification);
70 virtual ~Notification(); 70 virtual ~Notification();
71 Notification& operator=(const Notification& notification); 71 Notification& operator=(const Notification& notification);
72 72
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // The user-supplied replace ID for the notification. 128 // The user-supplied replace ID for the notification.
129 string16 replace_id_; 129 string16 replace_id_;
130 130
131 // A proxy object that allows access back to the JavaScript object that 131 // A proxy object that allows access back to the JavaScript object that
132 // represents the notification, for firing events. 132 // represents the notification, for firing events.
133 scoped_refptr<NotificationDelegate> delegate_; 133 scoped_refptr<NotificationDelegate> delegate_;
134 }; 134 };
135 135
136 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ 136 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/message_center_notifications_browsertest.cc ('k') | chrome/browser/notifications/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698