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

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

Issue 1641543002: MD History: Refactored design for displaying history information (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@second_patch
Patch Set: Address reviewer's comments Created 4 years, 11 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/md_history/history.js
diff --git a/chrome/browser/resources/md_history/history.js b/chrome/browser/resources/md_history/history.js
index ceb5dab5be840a6da95a6a160fabe69ed0dc6523..e8d33a1070deb2bb6f926e5ba2b3350d64b992d9 100644
--- a/chrome/browser/resources/md_history/history.js
+++ b/chrome/browser/resources/md_history/history.js
@@ -22,7 +22,7 @@ window.addEventListener('load', function() {
* @param {Array<HistoryEntry>} results A list of results.
*/
function historyResult(info, results) {
- $('history-card-manager').addNewResults(results);
+ $('history-list').addNewResults(results);
}
/**
@@ -38,7 +38,7 @@ window.addEventListener('history-checkbox-select', function(e) {
* checkbox to be unselected.
*/
window.addEventListener('unselect-all', function() {
- $('history-card-manager').unselectAllItems($('toolbar').count);
+ $('history-list').unselectAllItems($('toolbar').count);
$('toolbar').count = 0;
});
@@ -48,7 +48,7 @@ window.addEventListener('unselect-all', function() {
window.addEventListener('keydown', function(e) {
// Escape button on keyboard
if (e.keyCode == 27) {
- $('history-card-manager').closeMenu();
+ $('history-list').closeMenu();
}
});
@@ -56,5 +56,5 @@ window.addEventListener('keydown', function(e) {
* Resizing browser window will cause the overflow menu to close.
*/
window.addEventListener('resize', function() {
- $('history-card-manager').closeMenu();
+ $('history-list').closeMenu();
});

Powered by Google App Engine
This is Rietveld 408576698