| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 * @constructor | 6 * @constructor |
| 7 * @implements {SearchFieldDelegate} | 7 * @implements {SearchFieldDelegate} |
| 8 * @param {!HistoryToolbarElement} toolbar This history-toolbar. | 8 * @param {!HistoryToolbarElement} toolbar This history-toolbar. |
| 9 */ | 9 */ |
| 10 function ToolbarSearchFieldDelegate(toolbar) { | 10 function ToolbarSearchFieldDelegate(toolbar) { |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 // Whether domain-grouped history is enabled. | 52 // Whether domain-grouped history is enabled. |
| 53 isGroupedMode: { | 53 isGroupedMode: { |
| 54 type: Boolean, | 54 type: Boolean, |
| 55 reflectToAttribute: true, | 55 reflectToAttribute: true, |
| 56 }, | 56 }, |
| 57 | 57 |
| 58 // The period to search over. Matches BrowsingHistoryHandler::Range. | 58 // The period to search over. Matches BrowsingHistoryHandler::Range. |
| 59 groupedRange: { | 59 groupedRange: { |
| 60 type: Number, | 60 type: Number, |
| 61 value: 0, | 61 value: 0, |
| 62 reflectToAttribute: true | 62 reflectToAttribute: true, |
| 63 notify: true |
| 63 }, | 64 }, |
| 64 | 65 |
| 65 // The start time of the query range. | 66 // The start time of the query range. |
| 66 queryStartTime: String, | 67 queryStartTime: String, |
| 67 | 68 |
| 68 // The end time of the query range. | 69 // The end time of the query range. |
| 69 queryEndTime: String, | 70 queryEndTime: String, |
| 70 }, | 71 }, |
| 71 | 72 |
| 72 /** | 73 /** |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 numberOfItemsSelected_: function(count) { | 128 numberOfItemsSelected_: function(count) { |
| 128 return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : ''; | 129 return count > 0 ? loadTimeData.getStringF('itemsSelected', count) : ''; |
| 129 }, | 130 }, |
| 130 | 131 |
| 131 getHistoryInterval_: function(queryStartTime, queryEndTime) { | 132 getHistoryInterval_: function(queryStartTime, queryEndTime) { |
| 132 // TODO(calamity): Fix the format of these dates. | 133 // TODO(calamity): Fix the format of these dates. |
| 133 return loadTimeData.getStringF( | 134 return loadTimeData.getStringF( |
| 134 'historyInterval', queryStartTime, queryEndTime); | 135 'historyInterval', queryStartTime, queryEndTime); |
| 135 } | 136 } |
| 136 }); | 137 }); |
| OLD | NEW |