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 /** | 5 /** |
| 6 * @param {!Element} root | 6 * @param {!Element} root |
| 7 * @param {?Element} boundary | 7 * @param {?Element} boundary |
| 8 * @param {cr.ui.FocusRow.Delegate} delegate | 8 * @param {cr.ui.FocusRow.Delegate} delegate |
| 9 * @constructor | 9 * @constructor |
| 10 * @extends {cr.ui.FocusRow} | 10 * @extends {cr.ui.FocusRow} |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 117 }, | 117 }, |
| 118 }, | 118 }, |
| 119 | 119 |
| 120 /** @private {?HistoryFocusRow} */ | 120 /** @private {?HistoryFocusRow} */ |
| 121 row_: null, | 121 row_: null, |
| 122 | 122 |
| 123 /** @override */ | 123 /** @override */ |
| 124 attached: function() { | 124 attached: function() { |
| 125 Polymer.RenderStatus.afterNextRender(this, function() { | 125 Polymer.RenderStatus.afterNextRender(this, function() { |
| 126 this.row_ = new HistoryFocusRow( | 126 this.row_ = new HistoryFocusRow( |
| 127 this.$['sizing-container'], null, new FocusRowDelegate(this)); | 127 this.$['main-container'], null, new FocusRowDelegate(this)); |
|
tsergeant
2016/09/30 04:47:58
I don't think there's any problems with moving whe
calamity
2016/09/30 04:58:44
Acknowledged.
| |
| 128 this.row_.makeActive(this.ironListTabIndex == 0); | 128 this.row_.makeActive(this.ironListTabIndex == 0); |
| 129 this.listen(this, 'focus', 'onFocus_'); | 129 this.listen(this, 'focus', 'onFocus_'); |
| 130 this.listen(this, 'dom-change', 'onDomChange_'); | 130 this.listen(this, 'dom-change', 'onDomChange_'); |
| 131 }); | 131 }); |
| 132 }, | 132 }, |
| 133 | 133 |
| 134 /** @override */ | 134 /** @override */ |
| 135 detached: function() { | 135 detached: function() { |
| 136 this.unlisten(this, 'focus', 'onFocus_'); | 136 this.unlisten(this, 'focus', 'onFocus_'); |
| 137 this.unlisten(this, 'dom-change', 'onDomChange_'); | 137 this.unlisten(this, 'dom-change', 'onDomChange_'); |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 322 | 322 |
| 323 if (searchedTerm) | 323 if (searchedTerm) |
| 324 return currentItem.dateShort != nextItem.dateShort; | 324 return currentItem.dateShort != nextItem.dateShort; |
| 325 | 325 |
| 326 return currentItem.time - nextItem.time > BROWSING_GAP_TIME && | 326 return currentItem.time - nextItem.time > BROWSING_GAP_TIME && |
| 327 currentItem.dateRelativeDay == nextItem.dateRelativeDay; | 327 currentItem.dateRelativeDay == nextItem.dateRelativeDay; |
| 328 }; | 328 }; |
| 329 | 329 |
| 330 return { HistoryItem: HistoryItem }; | 330 return { HistoryItem: HistoryItem }; |
| 331 }); | 331 }); |
| OLD | NEW |