summaryrefslogtreecommitdiffstats
path: root/chrome/browser/notifications/notification_delegate.h
diff options
context:
space:
mode:
authorjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 05:50:35 +0000
committerjohnnyg@chromium.org <johnnyg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-01 05:50:35 +0000
commit0ff62860f0db277412f8c56b43cc65356af6d820 (patch)
tree3c1d21cb3a1640b95e74fd0f919c3cc3681238e8 /chrome/browser/notifications/notification_delegate.h
parentbcb9a7c0f0084dd42e3db746ed74bfae432ffb55 (diff)
downloadchromium_src-0ff62860f0db277412f8c56b43cc65356af6d820.zip
chromium_src-0ff62860f0db277412f8c56b43cc65356af6d820.tar.gz
chromium_src-0ff62860f0db277412f8c56b43cc65356af6d820.tar.bz2
Implement the plumbing to deliver click events from the notification balloon view to the javascript object.
BUG=51226 TEST=use notifications with an onclick event Review URL: http://codereview.chromium.org/3273007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58137 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/notifications/notification_delegate.h')
-rw-r--r--chrome/browser/notifications/notification_delegate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/notifications/notification_delegate.h b/chrome/browser/notifications/notification_delegate.h
index 6814bde..53226e5 100644
--- a/chrome/browser/notifications/notification_delegate.h
+++ b/chrome/browser/notifications/notification_delegate.h
@@ -27,6 +27,9 @@ class NotificationDelegate
// user explicitly (as opposed to timeout/script), |by_user| should be true.
virtual void Close(bool by_user) = 0;
+ // To be called when a desktop notification is clicked.
+ virtual void Click() = 0;
+
// Returns unique id of the notification.
virtual std::string id() const = 0;