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

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

Issue 2207323002: [MD History] Factor out a common HistoryListBehavior. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments 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
Index: chrome/browser/resources/md_history/history_item.js
diff --git a/chrome/browser/resources/md_history/history_item.js b/chrome/browser/resources/md_history/history_item.js
index 5a3fa265364c27cd8df7618ddb807c0c770451e1..7a1133f5d72f028f0a2c6e672faeb24c4d5d8b12 100644
--- a/chrome/browser/resources/md_history/history_item.js
+++ b/chrome/browser/resources/md_history/history_item.js
@@ -31,7 +31,10 @@ cr.define('md_history', function() {
hasTimeGap: {type: Boolean},
- numberOfItems: {type: Number}
+ numberOfItems: {type: Number},
+
+ // The path of this history item inside its parent.
+ path: String,
},
/**
@@ -40,7 +43,9 @@ cr.define('md_history', function() {
* @private
*/
onCheckboxSelected_: function() {
+ // TODO(calamity): Fire this event whenever |selected| changes.
this.fire('history-checkbox-select', {
+ element: this,
countAddition: this.$.checkbox.checked ? 1 : -1
});
},

Powered by Google App Engine
This is Rietveld 408576698