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

Unified Diff: chrome/browser/resources/history/history.js

Issue 668983004: Add <a is="action-link">, a web component extension of <a> for in-page actions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years, 2 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/history/history.html ('k') | chrome/browser/resources/history/other_devices.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/history.js
diff --git a/chrome/browser/resources/history/history.js b/chrome/browser/resources/history/history.js
index 11ed0aeb3c2841af708547b0207d97a8c51dde92..58962c09886e94c4e34bf724e8cbd91c0c1ea5ef 100644
--- a/chrome/browser/resources/history/history.js
+++ b/chrome/browser/resources/history/history.js
@@ -1323,8 +1323,7 @@ HistoryView.prototype.getGroupedVisitsDOM_ = function(
var siteDomain = siteDomainRow.appendChild(
createElementWithClassName('div', 'site-domain'));
var siteDomainLink = siteDomain.appendChild(
- createElementWithClassName('button', 'link-button'));
- siteDomainLink.addEventListener('click', function(e) { e.preventDefault(); });
+ document.createElement('a', 'action-link'));
siteDomainLink.textContent = domain;
var numberOfVisits = createElementWithClassName('span', 'number-visits');
var domainElement = document.createElement('span');
@@ -1616,7 +1615,7 @@ var focusGridColumnSelector = [
'.title a',
'.drop-down',
'.domain-checkbox',
- '.link-button',
+ '[is="action-link"]',
].join(', ');
/** @private */
« no previous file with comments | « chrome/browser/resources/history/history.html ('k') | chrome/browser/resources/history/other_devices.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698