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

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: 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..91882e91f0e4cdb2190eabe7f43d16727527be8b 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,
},
/**
@@ -41,6 +44,7 @@ cr.define('md_history', function() {
*/
onCheckboxSelected_: function() {
this.fire('history-checkbox-select', {
tsergeant 2016/08/05 01:39:09 I think we should consider making this fire on sel
calamity 2016/08/09 02:56:00 Yeah, I agree. Added a TODO.
+ element: this,
countAddition: this.$.checkbox.checked ? 1 : -1
});
},

Powered by Google App Engine
This is Rietveld 408576698