| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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.system.bluetooth', function() { | 5 cr.define('options.system.bluetooth', function() { |
| 6 /** | 6 /** |
| 7 * Bluetooth settings constants. | 7 * Bluetooth settings constants. |
| 8 */ | 8 */ |
| 9 function Constants() {} | 9 function Constants() {} |
| 10 | 10 |
| 11 /** | 11 /** |
| 12 * Enumeration of supported device types. Each device type has an | 12 * Enumeration of supported device types. Each device type has an |
| 13 * associated icon and CSS style. | 13 * associated icon and CSS style. |
| 14 * @enum {string} | 14 * @enum {string} |
| 15 */ | 15 */ |
| 16 Constants.DEVICE_TYPE = { | 16 Constants.DEVICE_TYPE = { |
| 17 COMPUTER: 'computer', |
| 17 HEADSET: 'headset', | 18 HEADSET: 'headset', |
| 18 KEYBOARD: 'keyboard', | 19 KEYBOARD: 'keyboard', |
| 19 MOUSE: 'mouse' | 20 MOUSE: 'mouse', |
| 21 PHONE: 'phone', |
| 20 }; | 22 }; |
| 21 | 23 |
| 22 /** | 24 /** |
| 23 * Enumeration of possible states for a bluetooth device. The value | 25 * Enumeration of possible states for a bluetooth device. The value |
| 24 * associated with each state maps to a localized string in the global | 26 * associated with each state maps to a localized string in the global |
| 25 * variable 'templateData'. | 27 * variable 'templateData'. |
| 26 * @enum {string} | 28 * @enum {string} |
| 27 */ | 29 */ |
| 28 Constants.DEVICE_STATUS = { | 30 Constants.DEVICE_STATUS = { |
| 29 CONNECTED: 'bluetoothDeviceConnected', | 31 CONNECTED: 'bluetoothDeviceConnected', |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 if (buttonsDiv) | 187 if (buttonsDiv) |
| 186 this.appendChild(buttonsDiv); | 188 this.appendChild(buttonsDiv); |
| 187 } | 189 } |
| 188 }; | 190 }; |
| 189 | 191 |
| 190 return { | 192 return { |
| 191 Constants: Constants, | 193 Constants: Constants, |
| 192 BluetoothListElement: BluetoothListElement | 194 BluetoothListElement: BluetoothListElement |
| 193 }; | 195 }; |
| 194 }); | 196 }); |
| OLD | NEW |