| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 | 88 |
| 89 /** | 89 /** |
| 90 * Current Pairing event. | 90 * Current Pairing event. |
| 91 * @type {?chrome.bluetoothPrivate.PairingEvent|undefined} | 91 * @type {?chrome.bluetoothPrivate.PairingEvent|undefined} |
| 92 */ | 92 */ |
| 93 pairingEvent: Object, | 93 pairingEvent: Object, |
| 94 | 94 |
| 95 /** The translated error message to show when a connect error occurs. */ | 95 /** The translated error message to show when a connect error occurs. */ |
| 96 errorMessage: String, | 96 errorMessage: String, |
| 97 | 97 |
| 98 /** Preferences state. */ |
| 99 prefs: { |
| 100 type: Object, |
| 101 notify: true, |
| 102 }, |
| 103 |
| 98 /** | 104 /** |
| 99 * Interface for bluetooth calls. May be overriden by tests. | 105 * Interface for bluetooth calls. May be overriden by tests. |
| 100 * @type {Bluetooth} | 106 * @type {Bluetooth} |
| 101 */ | 107 */ |
| 102 bluetooth: { | 108 bluetooth: { |
| 103 type: Object, | 109 type: Object, |
| 104 value: chrome.bluetooth, | 110 value: chrome.bluetooth, |
| 105 }, | 111 }, |
| 106 | 112 |
| 107 /** | 113 /** |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 onDialogClosed_: function() { | 538 onDialogClosed_: function() { |
| 533 this.stopDiscovery_(); | 539 this.stopDiscovery_(); |
| 534 this.dialogId = ''; | 540 this.dialogId = ''; |
| 535 this.pairingDevice = null; | 541 this.pairingDevice = null; |
| 536 this.pairingEvent = null; | 542 this.pairingEvent = null; |
| 537 }, | 543 }, |
| 538 | 544 |
| 539 /** @private */ | 545 /** @private */ |
| 540 onDialogOpened_: function() { this.startDiscovery_(); }, | 546 onDialogOpened_: function() { this.startDiscovery_(); }, |
| 541 }); | 547 }); |
| OLD | NEW |