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

Side by Side Diff: chrome/browser/resources/md_history/grouped_list.js

Issue 2656443004: MD History: Add routing for grouped history mode. (Closed)
Patch Set: Review comments Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @typedef {{domain: string, 6 * @typedef {{domain: string,
7 * visits: !Array<HistoryEntry>, 7 * visits: !Array<HistoryEntry>,
8 * rendered: boolean, 8 * rendered: boolean,
9 * expanded: boolean}} 9 * expanded: boolean}}
10 */ 10 */
(...skipping 22 matching lines...) Expand all
33 groupedHistoryData_: Array, 33 groupedHistoryData_: Array,
34 34
35 // An array of history entries in reverse chronological order. 35 // An array of history entries in reverse chronological order.
36 historyData: Array, 36 historyData: Array,
37 37
38 queryInterval: String, 38 queryInterval: String,
39 39
40 range: Number, 40 range: Number,
41 }, 41 },
42 42
43 observers: ['updateGroupedHistoryData_(range, historyData)'], 43 observers: ['updateGroupedHistoryData_(historyData)'],
44 44
45 /** 45 /**
46 * @param {!Array<!HistoryEntry>} results 46 * @param {!Array<!HistoryEntry>} results
47 * @param {boolean} incremental 47 * @param {boolean} incremental
48 * @param {boolean} finished 48 * @param {boolean} finished
49 */ 49 */
50 addNewResults: function(results, incremental, finished) { 50 addNewResults: function(results, incremental, finished) {
51 this.historyData = results; 51 this.historyData = results;
52 }, 52 },
53 53
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 184
185 /** 185 /**
186 * @param {boolean} expanded 186 * @param {boolean} expanded
187 * @return {string} 187 * @return {string}
188 * @private 188 * @private
189 */ 189 */
190 getDropdownIcon_: function(expanded) { 190 getDropdownIcon_: function(expanded) {
191 return expanded ? 'cr:expand-less' : 'cr:expand-more'; 191 return expanded ? 'cr:expand-less' : 'cr:expand-more';
192 }, 192 },
193 }); 193 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698