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

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

Issue 2578013002: [MD History] clang-format all javascript. (Closed)
Patch Set: rebase Created 4 years 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_list.js
diff --git a/chrome/browser/resources/md_history/history_list.js b/chrome/browser/resources/md_history/history_list.js
index 96d860a566377bd37b4ba3da03b335b360d89e45..608b05a409bf239292b1ea09b0a301916db7730b 100644
--- a/chrome/browser/resources/md_history/history_list.js
+++ b/chrome/browser/resources/md_history/history_list.js
@@ -14,17 +14,17 @@ Polymer({
value: '',
},
- querying: Boolean,
-
- // An array of history entries in reverse chronological order.
- historyData_: Array,
-
resultLoadingDisabled_: {
type: Boolean,
value: false,
},
+ // An array of history entries in reverse chronological order.
+ historyData_: Array,
+
lastFocused_: Object,
+
+ querying: Boolean,
},
listeners: {
@@ -37,7 +37,7 @@ Polymer({
// It is possible (eg, when middle clicking the reload button) for all other
// resize events to fire before the list is attached and can be measured.
// Adding another resize here ensures it will get sized correctly.
- /** @type {IronListElement} */(this.$['infinite-list']).notifyResize();
+ /** @type {IronListElement} */ (this.$['infinite-list']).notifyResize();
this.$['infinite-list'].scrollTarget = this;
this.$['scroll-threshold'].scrollTarget = this;
},
@@ -70,7 +70,7 @@ Polymer({
*/
addNewResults: function(historyResults, incremental, finished) {
var results = historyResults.slice();
- /** @type {IronScrollThresholdElement} */(this.$['scroll-threshold'])
+ /** @type {IronScrollThresholdElement} */ (this.$['scroll-threshold'])
.clearTriggers();
if (!incremental) {
@@ -154,16 +154,12 @@ Polymer({
/**
* @private
*/
- notifyListScroll_: function() {
- this.fire('history-list-scrolled');
- },
+ notifyListScroll_: function() { this.fire('history-list-scrolled'); },
/**
* @param {number} index
* @return {string}
* @private
*/
- pathForItem_: function(index) {
- return 'historyData_.' + index;
- },
+ pathForItem_: function(index) { return 'historyData_.' + index; },
});
« no previous file with comments | « chrome/browser/resources/md_history/history_item.js ('k') | chrome/browser/resources/md_history/history_list_behavior.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698