| 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 * @fileoverview | 6 * @fileoverview |
| 7 * 'settings-bluetooth-page' is the settings page for managing bluetooth | 7 * 'settings-bluetooth-page' is the settings page for managing bluetooth |
| 8 * properties and devices. | 8 * properties and devices. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 Polymer({ | 32 Polymer({ |
| 33 is: 'settings-bluetooth-page', | 33 is: 'settings-bluetooth-page', |
| 34 | 34 |
| 35 behaviors: [ | 35 behaviors: [ |
| 36 I18nBehavior, | 36 I18nBehavior, |
| 37 ], | 37 ], |
| 38 | 38 |
| 39 properties: { | 39 properties: { |
| 40 /** The current active route. */ | |
| 41 currentRoute: { | |
| 42 type: Object, | |
| 43 notify: true, | |
| 44 }, | |
| 45 | |
| 46 /** Whether bluetooth is enabled. */ | 40 /** Whether bluetooth is enabled. */ |
| 47 bluetoothEnabled: { | 41 bluetoothEnabled: { |
| 48 type: Boolean, | 42 type: Boolean, |
| 49 value: false, | 43 value: false, |
| 50 observer: 'bluetoothEnabledChanged_', | 44 observer: 'bluetoothEnabledChanged_', |
| 51 }, | 45 }, |
| 52 | 46 |
| 53 /** Whether the device list is expanded. */ | 47 /** Whether the device list is expanded. */ |
| 54 deviceListExpanded: { | 48 deviceListExpanded: { |
| 55 type: Boolean, | 49 type: Boolean, |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 535 }, | 529 }, |
| 536 | 530 |
| 537 /** @private */ | 531 /** @private */ |
| 538 onDialogClosed_: function() { | 532 onDialogClosed_: function() { |
| 539 this.stopDiscovery_(); | 533 this.stopDiscovery_(); |
| 540 this.dialogId = ''; | 534 this.dialogId = ''; |
| 541 this.pairingDevice = null; | 535 this.pairingDevice = null; |
| 542 this.pairingEvent = null; | 536 this.pairingEvent = null; |
| 543 }, | 537 }, |
| 544 }); | 538 }); |
| OLD | NEW |