| 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 23 matching lines...) Expand all Loading... |
| 34 // creates an HTML representation using a data: URL for display. | 34 // creates an HTML representation using a data: URL for display. |
| 35 Notification(const GURL& origin_url, | 35 Notification(const GURL& origin_url, |
| 36 const GURL& icon_url, | 36 const GURL& icon_url, |
| 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. Makes a deep copy of |
| 45 // optional_fields. | 45 // optional_fields. |
| 46 Notification(message_center::NotificationType type, | 46 Notification(message_center::NotificationType type, |
| 47 const GURL& origin_url, | 47 const GURL& origin_url, |
| 48 const GURL& icon_url, | 48 const GURL& icon_url, |
| 49 const string16& title, | 49 const string16& title, |
| 50 const string16& body, | 50 const string16& body, |
| 51 WebKit::WebTextDirection dir, | 51 WebKit::WebTextDirection dir, |
| 52 const string16& display_source, | 52 const string16& display_source, |
| 53 const string16& replace_id, | 53 const string16& replace_id, |
| 54 const DictionaryValue* optional_fields, | 54 const DictionaryValue* optional_fields, |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 string16 replace_id_; | 150 string16 replace_id_; |
| 151 | 151 |
| 152 scoped_ptr<DictionaryValue> optional_fields_; | 152 scoped_ptr<DictionaryValue> optional_fields_; |
| 153 | 153 |
| 154 // 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 |
| 155 // represents the notification, for firing events. | 155 // represents the notification, for firing events. |
| 156 scoped_refptr<NotificationDelegate> delegate_; | 156 scoped_refptr<NotificationDelegate> delegate_; |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ | 159 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_H_ |
| OLD | NEW |