| 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 Polymer({ | 5 Polymer({ |
| 6 is: 'history-toolbar', | 6 is: 'history-toolbar', |
| 7 properties: { | 7 properties: { |
| 8 // Number of history items currently selected. | 8 // Number of history items currently selected. |
| 9 // TODO(calamity): bind this to |
| 10 // listContainer.selectedItem.selectedPaths.length. |
| 9 count: { | 11 count: { |
| 10 type: Number, | 12 type: Number, |
| 11 value: 0, | 13 value: 0, |
| 12 observer: 'changeToolbarView_' | 14 observer: 'changeToolbarView_' |
| 13 }, | 15 }, |
| 14 | 16 |
| 15 // True if 1 or more history items are selected. When this value changes | 17 // True if 1 or more history items are selected. When this value changes |
| 16 // the background colour changes. | 18 // the background colour changes. |
| 17 itemsSelected_: { | 19 itemsSelected_: { |
| 18 type: Boolean, | 20 type: Boolean, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 // TODO(calamity): Fix the format of these dates. | 130 // TODO(calamity): Fix the format of these dates. |
| 129 return loadTimeData.getStringF( | 131 return loadTimeData.getStringF( |
| 130 'historyInterval', queryStartTime, queryEndTime); | 132 'historyInterval', queryStartTime, queryEndTime); |
| 131 }, | 133 }, |
| 132 | 134 |
| 133 /** @private */ | 135 /** @private */ |
| 134 hasDrawerChanged_: function() { | 136 hasDrawerChanged_: function() { |
| 135 this.updateStyles(); | 137 this.updateStyles(); |
| 136 }, | 138 }, |
| 137 }); | 139 }); |
| OLD | NEW |