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

Unified Diff: chrome/browser/chromeos/notifications/system_notification.h

Issue 5976005: show notification on locale change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comment Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/notifications/system_notification.h
diff --git a/chrome/browser/chromeos/notifications/system_notification.h b/chrome/browser/chromeos/notifications/system_notification.h
index 81976b77137df78aae7b02f2181a070df28d28d3..5573f2bfb4d8e1307adb5001b1c3e096f376c688 100644
--- a/chrome/browser/chromeos/notifications/system_notification.h
+++ b/chrome/browser/chromeos/notifications/system_notification.h
@@ -27,7 +27,14 @@ class SystemNotification {
// The profile is the current user profile. The id is any string used
// to uniquely identify this notification. The title is the title of
// the message to be displayed. On creation, the message is hidden.
- SystemNotification(Profile* profile, const std::string& id,
+ SystemNotification(Profile* profile,
+ const std::string& id,
+ int icon_resource_id,
+ const string16& title);
+
+ // Allows to provide custom NotificationDelegate.
+ SystemNotification(Profile* profile,
+ NotificationDelegate* delegate,
int icon_resource_id,
const string16& title);
@@ -71,9 +78,11 @@ class SystemNotification {
DISALLOW_COPY_AND_ASSIGN(Delegate);
};
+ void Init(int icon_resource_id);
+
Profile* profile_;
BalloonCollectionImpl* collection_;
- scoped_refptr<Delegate> delegate_;
+ scoped_refptr<NotificationDelegate> delegate_;
GURL icon_;
string16 title_;
bool visible_;

Powered by Google App Engine
This is Rietveld 408576698