summaryrefslogtreecommitdiff
path: root/Source/WebCore/notifications/NotificationPresenter.h
diff options
context:
space:
mode:
authorSimon Hausmann <simon.hausmann@nokia.com>2012-02-09 14:16:12 +0100
committerSimon Hausmann <simon.hausmann@nokia.com>2012-02-09 14:16:12 +0100
commit03e12282df9aa1e1fb05a8b90f1cfc2e08764cec (patch)
tree52599cd0ab782b1768e23ad176f7618f98333cb6 /Source/WebCore/notifications/NotificationPresenter.h
parentcd44dc59cdfc39534aef4d417e9f3c412e3be139 (diff)
downloadqtwebkit-03e12282df9aa1e1fb05a8b90f1cfc2e08764cec.tar.gz
Imported WebKit commit e09a82039aa4273ab318b71122e92d8e5f233525 (http://svn.webkit.org/repository/webkit/trunk@107223)
Diffstat (limited to 'Source/WebCore/notifications/NotificationPresenter.h')
-rw-r--r--Source/WebCore/notifications/NotificationPresenter.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebCore/notifications/NotificationPresenter.h b/Source/WebCore/notifications/NotificationPresenter.h
index d1c995a29..108f05583 100644
--- a/Source/WebCore/notifications/NotificationPresenter.h
+++ b/Source/WebCore/notifications/NotificationPresenter.h
@@ -57,6 +57,10 @@ public:
// Requests that a notification that has already been shown be canceled.
virtual void cancel(Notification*) = 0;
+ // When the user closes a page, or quits the client application, all of the page's
+ // associated notifications are cleared.
+ virtual void clearNotifications(ScriptExecutionContext*) { }
+
// Informs the presenter that a Notification object has been destroyed
// (such as by a page transition). The presenter may continue showing
// the notification, but must not attempt to call the event handlers.