| 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 15 matching lines...) Expand all Loading... |
| 26 * The indexes where a window separator should be shown. The use of a | 26 * The indexes where a window separator should be shown. The use of a |
| 27 * separate array here is necessary for window separators to appear | 27 * separate array here is necessary for window separators to appear |
| 28 * correctly in search. See http://crrev.com/2022003002 for more details. | 28 * correctly in search. See http://crrev.com/2022003002 for more details. |
| 29 * @type {!Array<number>} | 29 * @type {!Array<number>} |
| 30 */ | 30 */ |
| 31 separatorIndexes: Array, | 31 separatorIndexes: Array, |
| 32 | 32 |
| 33 // Whether the card is open. | 33 // Whether the card is open. |
| 34 cardOpen_: {type: Boolean, value: true}, | 34 cardOpen_: {type: Boolean, value: true}, |
| 35 | 35 |
| 36 searchedTerm: String, | 36 searchTerm: String, |
| 37 }, | 37 }, |
| 38 | 38 |
| 39 /** | 39 /** |
| 40 * Opens all the tabs displayed on the device in separate tabs. | 40 * Opens all the tabs displayed on the device in separate tabs. |
| 41 * @private | 41 * @private |
| 42 */ | 42 */ |
| 43 openAllTabs_: function() { | 43 openAllTabs_: function() { |
| 44 // TODO(calamity): add a warning if an excessive number of tabs will open. | 44 // TODO(calamity): add a warning if an excessive number of tabs will open. |
| 45 for (var i = 0; i < this.tabs.length; i++) | 45 for (var i = 0; i < this.tabs.length; i++) |
| 46 window.open(this.tabs[i].url, '_blank'); | 46 window.open(this.tabs[i].url, '_blank'); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 69 cr.icon.getFaviconImageSet(this.tabs[i].url); | 69 cr.icon.getFaviconImageSet(this.tabs[i].url); |
| 70 } | 70 } |
| 71 }); | 71 }); |
| 72 }, | 72 }, |
| 73 | 73 |
| 74 /** @private */ | 74 /** @private */ |
| 75 isWindowSeparatorIndex_: function(index, separatorIndexes) { | 75 isWindowSeparatorIndex_: function(index, separatorIndexes) { |
| 76 return this.separatorIndexes.indexOf(index) != -1; | 76 return this.separatorIndexes.indexOf(index) != -1; |
| 77 } | 77 } |
| 78 }); | 78 }); |
| OLD | NEW |