| 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('device-list', { | 5 Polymer('device-list', { |
| 6 publish: { | 6 publish: { |
| 7 /** | 7 /** |
| 8 * The label of the list to be displayed. | 8 * The label of the list to be displayed. |
| 9 * @type {string} | 9 * @type {string} |
| 10 */ | 10 */ |
| 11 label: 'Device List', | 11 label: 'Device List', |
| 12 | 12 |
| 13 /** | 13 /** |
| 14 * Info of the devices contained in the list. | 14 * Info of the devices contained in the list. |
| 15 * @type {Array.<DeviceInfo>} | 15 * @type {Array<DeviceInfo>} |
| 16 */ | 16 */ |
| 17 devices: null | 17 devices: null |
| 18 }, | 18 }, |
| 19 | 19 |
| 20 /** | 20 /** |
| 21 * Called when an instance is created. | 21 * Called when an instance is created. |
| 22 */ | 22 */ |
| 23 created: function() { | 23 created: function() { |
| 24 this.devices = []; | 24 this.devices = []; |
| 25 }, | 25 }, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 return 'device:bluetooth-disabled'; | 67 return 'device:bluetooth-disabled'; |
| 68 case 'deviceOffline': | 68 case 'deviceOffline': |
| 69 return 'device:signal-cellular-off'; | 69 return 'device:signal-cellular-off'; |
| 70 case 'invalidCredentials': | 70 case 'invalidCredentials': |
| 71 return 'notification:sync-problem'; | 71 return 'notification:sync-problem'; |
| 72 default: | 72 default: |
| 73 return 'error'; | 73 return 'error'; |
| 74 }; | 74 }; |
| 75 } | 75 } |
| 76 }); | 76 }); |
| OLD | NEW |