diff options
author | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 14:02:56 +0000 |
---|---|---|
committer | dilmah@chromium.org <dilmah@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-13 14:02:56 +0000 |
commit | 61d68ef1198bf59e4e317f3f61e780564f99be3e (patch) | |
tree | 97754dd71f7b9acc12118951f8f29e5ee38a231f /chrome/browser/chromeos/notifications/system_notification.h | |
parent | 824fee159375f3118333f0a3f21ed9e84a11a423 (diff) | |
download | chromium_src-61d68ef1198bf59e4e317f3f61e780564f99be3e.zip chromium_src-61d68ef1198bf59e4e317f3f61e780564f99be3e.tar.gz chromium_src-61d68ef1198bf59e4e317f3f61e780564f99be3e.tar.bz2 |
For ChromeOS: when starting session:
if locale was changed (as a result of sync or because user preference differs from login locale): show notification.
BUG=chromium-os:9164
TEST=Manual
Review URL: http://codereview.chromium.org/5976005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71320 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/notifications/system_notification.h')
-rw-r--r-- | chrome/browser/chromeos/notifications/system_notification.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/chrome/browser/chromeos/notifications/system_notification.h b/chrome/browser/chromeos/notifications/system_notification.h index 81976b7..5573f2b 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_; |