diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 18:56:17 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-02-26 18:56:17 +0000 |
commit | 9e9fff083f6742c63ba154f11d458866e99c6ed9 (patch) | |
tree | 844b3fe98800552e320c8775fbbf5d01e6dfb137 /chrome/browser/notifications/desktop_notification_service.h | |
parent | e2027b09db15ed5ecf0a481a006655ecd5fd097a (diff) | |
download | chromium_src-9e9fff083f6742c63ba154f11d458866e99c6ed9.zip chromium_src-9e9fff083f6742c63ba154f11d458866e99c6ed9.tar.gz chromium_src-9e9fff083f6742c63ba154f11d458866e99c6ed9.tar.bz2 |
Adding sticky field to Notification
BUG=33306
TEST=modified and added new test (TestSticky) to DesktopNotificationsTest
Review URL: http://codereview.chromium.org/661155
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@40139 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 | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/chrome/browser/notifications/desktop_notification_service.h b/chrome/browser/notifications/desktop_notification_service.h index b384a79..b1050c9 100644 --- a/chrome/browser/notifications/desktop_notification_service.h +++ b/chrome/browser/notifications/desktop_notification_service.h @@ -49,13 +49,16 @@ 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. + // this notification. |sticky| is used to indicate that the notification + // is sticky and cannot be dismissed by a user. bool ShowDesktopNotification(const GURL& origin, const GURL& url, int process_id, int route_id, DesktopNotificationSource source, - int notification_id); + int notification_id, + bool sticky); 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); + int route_id, DesktopNotificationSource source, int notification_id, + bool sticky); // 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 |