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

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

Issue 2239623002: [MD History] Add shift-selection to the history lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@reshadow
Patch Set: rebase, fix closure compile 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 | « no previous file | chrome/browser/resources/md_history/history_item.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_history/app.js
diff --git a/chrome/browser/resources/md_history/app.js b/chrome/browser/resources/md_history/app.js
index c9a41b995f83e9280ce30cd22621e6bd7d05473c..66b7e32c0d7f55990d99aa730c137dca3bf0c8e8 100644
--- a/chrome/browser/resources/md_history/app.js
+++ b/chrome/browser/resources/md_history/app.js
@@ -107,7 +107,8 @@ Polymer({
*/
checkboxSelected: function(e) {
var toolbar = /** @type {HistoryToolbarElement} */ (this.$.toolbar);
- toolbar.count += e.detail.countAddition;
+ toolbar.count = /** @type {HistoryListContainerElement} */ (this.$.history)
+ .getSelectedItemCount();
},
/**
@@ -117,7 +118,7 @@ Polymer({
*/
unselectAll: function() {
var listContainer =
- /** @type {HistoryListContainerElement} */ (this.$['history']);
+ /** @type {HistoryListContainerElement} */ (this.$.history);
var toolbar = /** @type {HistoryToolbarElement} */ (this.$.toolbar);
listContainer.unselectAllItems(toolbar.count);
toolbar.count = 0;
« no previous file with comments | « no previous file | chrome/browser/resources/md_history/history_item.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698