Chromium Code Reviews| 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. | |
|
tsergeant
2016/08/15 04:49:50
This is still relevant, right? There are still cas
calamity
2016/08/15 07:18:40
Hmm. Ok, restored. I'm not convinced there's a nic
| |
| 11 count: { | 9 count: { |
| 12 type: Number, | 10 type: Number, |
| 13 value: 0, | 11 value: 0, |
| 14 observer: 'changeToolbarView_' | 12 observer: 'changeToolbarView_' |
| 15 }, | 13 }, |
| 16 | 14 |
| 17 // True if 1 or more history items are selected. When this value changes | 15 // True if 1 or more history items are selected. When this value changes |
| 18 // the background colour changes. | 16 // the background colour changes. |
| 19 itemsSelected_: { | 17 itemsSelected_: { |
| 20 type: Boolean, | 18 type: Boolean, |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 130 // TODO(calamity): Fix the format of these dates. | 128 // TODO(calamity): Fix the format of these dates. |
| 131 return loadTimeData.getStringF( | 129 return loadTimeData.getStringF( |
| 132 'historyInterval', queryStartTime, queryEndTime); | 130 'historyInterval', queryStartTime, queryEndTime); |
| 133 }, | 131 }, |
| 134 | 132 |
| 135 /** @private */ | 133 /** @private */ |
| 136 hasDrawerChanged_: function() { | 134 hasDrawerChanged_: function() { |
| 137 this.updateStyles(); | 135 this.updateStyles(); |
| 138 }, | 136 }, |
| 139 }); | 137 }); |
| OLD | NEW |