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

Unified Diff: chrome/browser/resources/history/other_devices.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
Index: chrome/browser/resources/history/other_devices.js
diff --git a/chrome/browser/resources/history/other_devices.js b/chrome/browser/resources/history/other_devices.js
index 427d9f5e1f062590196a69c4976e765c823b5418..398a0b5b3f182923bdc8ced7b8924fd32d359c19 100644
--- a/chrome/browser/resources/history/other_devices.js
+++ b/chrome/browser/resources/history/other_devices.js
@@ -294,14 +294,12 @@ Device.prototype.createSessionContents_ = function(maxNumTabs) {
}
if (numTabsHidden > 0) {
- var moreLinkButton = createElementWithClassName('button',
- 'device-show-more-tabs link-button');
- moreLinkButton.addEventListener('click', this.view_.increaseRowHeight.bind(
+ var moreLink = document.createElement('a', 'action-link');
+ moreLink.classList.add('device-show-more-tabs');
+ moreLink.addEventListener('click', this.view_.increaseRowHeight.bind(
this.view_, this.row_, numTabsHidden));
- var xMore = loadTimeData.getString('xMore');
- moreLinkButton.appendChild(
- document.createTextNode(xMore.replace('$1', numTabsHidden)));
- contents.appendChild(moreLinkButton);
+ moreLink.textContent = loadTimeData.getStringF('xMore', numTabsHidden);
+ contents.appendChild(moreLink);
}
return contents;
« no previous file with comments | « chrome/browser/resources/history/history.js ('k') | chrome/browser/resources/hotword_audio_verification/main.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698