summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authordewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-19 16:44:01 +0000
committerdewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-19 16:44:01 +0000
commit1dbbf1651b07c57ee9dfce78aa1b76753283b381 (patch)
treeb6ceb46734224b921466075a2d6f6974fb52bcad /chrome/common
parentfc1b01cae5e0aa6cd1301891cd71ba2c50612893 (diff)
downloadchromium_src-1dbbf1651b07c57ee9dfce78aa1b76753283b381.zip
chromium_src-1dbbf1651b07c57ee9dfce78aa1b76753283b381.tar.gz
chromium_src-1dbbf1651b07c57ee9dfce78aa1b76753283b381.tar.bz2
Adds a hint to the notifications API that a notification is clickable.
The former behavior was that all notifications would be shown as if they were clickable if the app had any onClick handler installed. This patch changes the behavior - if isClickable is false, then the notification body will not appear clickable even if there is an onClick handler installed. Also fixes a bug where buttons don't appear to have the clickable cursor. BUG=304923 Review URL: https://codereview.chromium.org/27569003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229585 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/api/notifications.idl4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/notifications.idl b/chrome/common/extensions/api/notifications.idl
index 504cda9..85ae00a 100644
--- a/chrome/common/extensions/api/notifications.idl
+++ b/chrome/common/extensions/api/notifications.idl
@@ -79,6 +79,10 @@ namespace notifications {
// Current progress ranges from 0 to 100.
long? progress;
+
+ // Whether to show UI indicating that the app will visibly respond to
+ // clicks on the body of a notification.
+ boolean? isClickable;
};
callback CreateCallback = void (DOMString notificationId);