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 #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 26 matching lines...) Expand all Loading... |
37 const string16& title, | 37 const string16& title, |
38 const string16& body, | 38 const string16& body, |
39 WebKit::WebTextDirection dir, | 39 WebKit::WebTextDirection dir, |
40 const string16& display_source, | 40 const string16& display_source, |
41 const string16& replace_id, | 41 const string16& replace_id, |
42 NotificationDelegate* delegate); | 42 NotificationDelegate* delegate); |
43 | 43 |
44 // Initializes a notification with a given type. Takes ownership of | 44 // Initializes a notification with a given type. Takes ownership of |
45 // optional_fields. | 45 // optional_fields. |
46 Notification(ui::notifications::NotificationType type, | 46 Notification(ui::notifications::NotificationType type, |
| 47 const GURL& origin_url, |
47 const GURL& icon_url, | 48 const GURL& icon_url, |
48 const string16& title, | 49 const string16& title, |
49 const string16& body, | 50 const string16& body, |
50 WebKit::WebTextDirection dir, | 51 WebKit::WebTextDirection dir, |
51 const string16& display_source, | 52 const string16& display_source, |
52 const string16& replace_id, | 53 const string16& replace_id, |
53 const DictionaryValue* optional_fields, | 54 const DictionaryValue* optional_fields, |
54 NotificationDelegate* delegate); | 55 NotificationDelegate* delegate); |
55 | 56 |
56 // Initializes a notification with text content and an icon image. Currently | 57 // Initializes a notification with text content and an icon image. Currently |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 string16 replace_id_; | 150 string16 replace_id_; |
150 | 151 |
151 scoped_ptr<DictionaryValue> optional_fields_; | 152 scoped_ptr<DictionaryValue> optional_fields_; |
152 | 153 |
153 // A proxy object that allows access back to the JavaScript object that | 154 // A proxy object that allows access back to the JavaScript object that |
154 // represents the notification, for firing events. | 155 // represents the notification, for firing events. |
155 scoped_refptr<NotificationDelegate> delegate_; | 156 scoped_refptr<NotificationDelegate> delegate_; |
156 }; | 157 }; |
157 | 158 |
158 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ | 159 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ |
OLD | NEW |