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

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

Issue 11958025: Start delegating notifications to MessageCenter on Windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another build fix Created 7 years, 11 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"
(...skipping 26 matching lines...) Expand all
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/notifications/message_center_notification_manager.cc ('k') | chrome/browser/notifications/notification.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698