Chromium Code Reviews| 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', |
|
Yufeng Shen (Slow to review)
2011/10/20 22:19:26
can't apply cleanly
the , in the " MOUSE: 'mouse',
Vince Laviano
2011/10/20 22:30:36
The , needs to be there to separate the MOUSE enum
| |
| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 151 } | 153 } |
| 152 }; | 154 }; |
| 153 | 155 |
| 154 return { | 156 return { |
| 155 Constants: Constants, | 157 Constants: Constants, |
| 156 BluetoothListElement: BluetoothListElement | 158 BluetoothListElement: BluetoothListElement |
| 157 }; | 159 }; |
| 158 }); | 160 }); |
| 159 | 161 |
| 160 | 162 |
| OLD | NEW |