| 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: { | 10 device: { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 * correctly in search. See http://crrev.com/2022003002 for more details. | 34 * correctly in search. See http://crrev.com/2022003002 for more details. |
| 35 * @type {!Array<number>} | 35 * @type {!Array<number>} |
| 36 */ | 36 */ |
| 37 separatorIndexes: Array, | 37 separatorIndexes: Array, |
| 38 | 38 |
| 39 // Whether the card is open. | 39 // Whether the card is open. |
| 40 cardOpen_: { | 40 cardOpen_: { |
| 41 type: Boolean, | 41 type: Boolean, |
| 42 value: true | 42 value: true |
| 43 }, | 43 }, |
| 44 |
| 45 searchedTerm: String, |
| 44 }, | 46 }, |
| 45 | 47 |
| 46 /** | 48 /** |
| 47 * Opens all the tabs displayed on the device in separate tabs. | 49 * Opens all the tabs displayed on the device in separate tabs. |
| 48 * @private | 50 * @private |
| 49 */ | 51 */ |
| 50 openAllTabs_: function() { | 52 openAllTabs_: function() { |
| 51 // TODO(calamity): add a warning if an excessive number of tabs will open. | 53 // TODO(calamity): add a warning if an excessive number of tabs will open. |
| 52 for (var i = 0; i < this.tabs.length; i++) | 54 for (var i = 0; i < this.tabs.length; i++) |
| 53 window.open(this.tabs[i].url, '_blank'); | 55 window.open(this.tabs[i].url, '_blank'); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 75 icons[i].style.backgroundImage = | 77 icons[i].style.backgroundImage = |
| 76 cr.icon.getFaviconImageSet(this.tabs[i].url); | 78 cr.icon.getFaviconImageSet(this.tabs[i].url); |
| 77 } | 79 } |
| 78 }); | 80 }); |
| 79 }, | 81 }, |
| 80 | 82 |
| 81 isWindowSeparatorIndex_: function(index, separatorIndexes) { | 83 isWindowSeparatorIndex_: function(index, separatorIndexes) { |
| 82 return this.separatorIndexes.indexOf(index) != -1; | 84 return this.separatorIndexes.indexOf(index) != -1; |
| 83 } | 85 } |
| 84 }); | 86 }); |
| OLD | NEW |