OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 cr.define('options', function() { | 5 cr.define('options', function() { |
6 /** @const */ var OptionsPage = options.OptionsPage; | 6 /** @const */ var OptionsPage = options.OptionsPage; |
7 | 7 |
8 /** | 8 /** |
9 * Encapsulated handling of the BrowserOptions calls from | 9 * Encapsulated handling of the BrowserOptions calls from |
10 * BluetoothOptionsHandler that is registered by the webUI, | 10 * BluetoothOptionsHandler that is registered by the webUI, |
(...skipping 23 matching lines...) Expand all Loading... |
34 | 34 |
35 BrowserOptions.setBluetoothState = function() { | 35 BrowserOptions.setBluetoothState = function() { |
36 }; | 36 }; |
37 | 37 |
38 /** | 38 /** |
39 * Handles addBluetoothDevice call, display the Bluetooth pairing overlay | 39 * Handles addBluetoothDevice call, display the Bluetooth pairing overlay |
40 * for the pairing device. | 40 * for the pairing device. |
41 * @param {{name: string, | 41 * @param {{name: string, |
42 * address: string, | 42 * address: string, |
43 * paired: boolean, | 43 * paired: boolean, |
44 * bonded: boolean, | |
45 * pairing: string | undefined | 44 * pairing: string | undefined |
46 * pincode: string | undefined | 45 * pincode: string | undefined |
47 * passkey: number | undefined | 46 * passkey: number | undefined |
48 * connected: boolean}} device | 47 * connected: boolean}} device |
49 */ | 48 */ |
50 BrowserOptions.addBluetoothDevice = function(device) { | 49 BrowserOptions.addBluetoothDevice = function(device) { |
51 // One device can be in the process of pairing. If found, display | 50 // One device can be in the process of pairing. If found, display |
52 // the Bluetooth pairing overlay. | 51 // the Bluetooth pairing overlay. |
53 if (device.pairing) | 52 if (device.pairing) |
54 BluetoothPairing.showDialog(device); | 53 BluetoothPairing.showDialog(device); |
55 }; | 54 }; |
56 | 55 |
57 BrowserOptions.removeBluetoothDevice = function(address) { | 56 BrowserOptions.removeBluetoothDevice = function(address) { |
58 }; | 57 }; |
59 | 58 |
60 // Export | 59 // Export |
61 return { | 60 return { |
62 BrowserOptions: BrowserOptions | 61 BrowserOptions: BrowserOptions |
63 }; | 62 }; |
64 }); | 63 }); |
OLD | NEW |