diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 01:19:06 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-03-17 01:19:06 +0000 |
commit | 3b845753b707daca3fe3e733263065f162b7162b (patch) | |
tree | b674a4d72a118323da1fad83f8caa43f57a86b32 /chrome/browser/notifications/desktop_notification_service.h | |
parent | fee8f0222a5f2a377ba5d7f2d3383481c02eafac (diff) | |
download | chromium_src-3b845753b707daca3fe3e733263065f162b7162b.zip chromium_src-3b845753b707daca3fe3e733263065f162b7162b.tar.gz chromium_src-3b845753b707daca3fe3e733263065f162b7162b.tar.bz2 |
* Moved sticky/controls frag to chromeos::BalloonViewImpl
* Added AddSystemNotification to add system notification
and UpdateNotification to update a notification.
* refactored NotificationObjectProxy and added NotificationDelegate class.
* Added notification_browser.cc.
BUG=33306
TEST=added notification_browser.cc with minimal test. I'll add more in next step.
Review URL: http://codereview.chromium.org/1013002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41801 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/desktop_notification_service.h')
-rw-r--r-- | chrome/browser/notifications/desktop_notification_service.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/chrome/browser/notifications/desktop_notification_service.h b/chrome/browser/notifications/desktop_notification_service.h index b1050c9..6e9a6d8 100644 --- a/chrome/browser/notifications/desktop_notification_service.h +++ b/chrome/browser/notifications/desktop_notification_service.h @@ -49,16 +49,14 @@ class DesktopNotificationService : public NotificationObserver { // is the origin of the script. |source| indicates whether the // script is in a worker or page. |notification_id| is an opaque // value to be passed back to the process when events occur on - // this notification. |sticky| is used to indicate that the notification - // is sticky and cannot be dismissed by a user. + // this notification. bool ShowDesktopNotification(const GURL& origin, const GURL& url, int process_id, int route_id, DesktopNotificationSource source, - int notification_id, - bool sticky); + int notification_id); bool ShowDesktopNotificationText(const GURL& origin, const GURL& icon, const string16& title, const string16& text, int process_id, - int route_id, DesktopNotificationSource source, int notification_id, - bool sticky); + int route_id, DesktopNotificationSource source, int notification_id); + // Cancels a notification. If it has already been shown, it will be // removed from the screen. If it hasn't been shown yet, it won't be @@ -78,6 +76,11 @@ class DesktopNotificationService : public NotificationObserver { const NotificationSource& source, const NotificationDetails& details); + // Creates a data:xxxx URL which contains the full HTML for a notification + // using supplied icon, title, and text, run through a template which contains + // the standard formatting for notifications. + static string16 CreateDataUrl(const GURL& icon_url, const string16& title, + const string16& body); private: void InitPrefs(); |