Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4196)

Unified Diff: chrome/browser/resources/ntp4/apps_page.js

Issue 2163893003: Start sending auxclick instead of click for non-primary buttons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another rebase Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/ntp4/apps_page.js
diff --git a/chrome/browser/resources/ntp4/apps_page.js b/chrome/browser/resources/ntp4/apps_page.js
index 42197a07ac2b99f25175523a9389428d74e9ff0b..8e4772685db18fbe2ad4c7534d67868de49795ae 100644
--- a/chrome/browser/resources/ntp4/apps_page.js
+++ b/chrome/browser/resources/ntp4/apps_page.js
@@ -390,7 +390,7 @@ cr.define('ntp', function() {
/**
* Invoked when an app is clicked.
- * @param {Event} e The click event.
+ * @param {Event} e The click/auxclick event.
* @private
*/
onClick_: function(e) {
@@ -433,6 +433,7 @@ cr.define('ntp', function() {
addLaunchClickTarget_: function(node) {
node.classList.add('launch-click-target');
node.addEventListener('click', this.onClick_.bind(this));
+ node.addEventListener('auxclick', this.onClick_.bind(this));
},
/**
« no previous file with comments | « chrome/browser/resources/md_downloads/crisper.js ('k') | chrome/browser/resources/ntp4/new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698