| OLD | NEW |
| 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 Polymer({ | 5 Polymer({ |
| 6 is: 'history-synced-device-card', | 6 is: 'history-synced-device-card', |
| 7 | 7 |
| 8 properties: { | 8 properties: { |
| 9 // Name of the synced device. | 9 // Name of the synced device. |
| 10 device: {type: String, value: ''}, | 10 device: {type: String, value: ''}, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 for (var i = 0; i < this.tabs.length; i++) { | 80 for (var i = 0; i < this.tabs.length; i++) { |
| 81 icons[i].style.backgroundImage = | 81 icons[i].style.backgroundImage = |
| 82 cr.icon.getFaviconImageSet(this.tabs[i].url); | 82 cr.icon.getFaviconImageSet(this.tabs[i].url); |
| 83 } | 83 } |
| 84 }); | 84 }); |
| 85 }, | 85 }, |
| 86 | 86 |
| 87 /** @private */ | 87 /** @private */ |
| 88 isWindowSeparatorIndex_: function(index, separatorIndexes) { | 88 isWindowSeparatorIndex_: function(index, separatorIndexes) { |
| 89 return this.separatorIndexes.indexOf(index) != -1; | 89 return this.separatorIndexes.indexOf(index) != -1; |
| 90 } | 90 }, |
| 91 |
| 92 /** |
| 93 * @param {boolean} cardOpen |
| 94 * @return {string} |
| 95 */ |
| 96 getCollapseTitle_: function(cardOpen) { |
| 97 return cardOpen ? loadTimeData.getString('collapseSessionButton') : |
| 98 loadTimeData.getString('expandSessionButton'); |
| 99 }, |
| 91 }); | 100 }); |
| OLD | NEW |