diff options
author | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-10 04:11:31 +0000 |
---|---|---|
committer | mukai@chromium.org <mukai@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-10 04:11:31 +0000 |
commit | cb5e99df013f434d3efe0f0febfbcc09cb86e24f (patch) | |
tree | 4afcf8291cfb50637169bc42379ad6848342b22f /chrome/browser/notifications/notification.h | |
parent | 34fca3d6ed93f3bcc9236ebd3b467aac965330c3 (diff) | |
download | chromium_src-cb5e99df013f434d3efe0f0febfbcc09cb86e24f.zip chromium_src-cb5e99df013f434d3efe0f0febfbcc09cb86e24f.tar.gz chromium_src-cb5e99df013f434d3efe0f0febfbcc09cb86e24f.tar.bz2 |
Cancel notification toast timeoout for webkit ones.
Currently webkit notifications are indistinguishable from TYPE_SIMPLE.
Instead of adding a new type, it just adds a flag to cancel the timeout
and only the webkit notification code path sets it.
Note that this 'no-timeout' flag is slightly different from the persistency
of the system notification for ChromeOS. In addition to no-timeout, the
system notification should not disappear for open/close of message-center,
i.e. MarkShownAsPopup should be canceled too. It will need an additional
flag.
BUG=229014
Review URL: https://chromiumcodereview.appspot.com/13877002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193315 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/notification.h')
-rw-r--r-- | chrome/browser/notifications/notification.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/notifications/notification.h b/chrome/browser/notifications/notification.h index b3c5824..fd1c2a8 100644 --- a/chrome/browser/notifications/notification.h +++ b/chrome/browser/notifications/notification.h @@ -102,6 +102,10 @@ class Notification { return optional_fields_.get(); } + // Marks this explicitly to prevent the timeout dismiss of notification. + // This is used by webkit notifications to keep the existing behavior. + void DisableTimeout(); + void Display() const { delegate()->Display(); } void Error() const { delegate()->Error(); } void Click() const { delegate()->Click(); } |