OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 6 #define DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 29 matching lines...) Expand all Loading... |
40 // BluetoothAdapter, that class rather than this provides observer methods | 40 // BluetoothAdapter, that class rather than this provides observer methods |
41 // for devices coming and going, as well as properties being updated. | 41 // for devices coming and going, as well as properties being updated. |
42 class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { | 42 class DEVICE_BLUETOOTH_EXPORT BluetoothDevice { |
43 public: | 43 public: |
44 // Possible values that may be returned by GetVendorIDSource(), | 44 // Possible values that may be returned by GetVendorIDSource(), |
45 // indicating different organisations that allocate the identifiers returned | 45 // indicating different organisations that allocate the identifiers returned |
46 // by GetVendorID(). | 46 // by GetVendorID(). |
47 enum VendorIDSource { | 47 enum VendorIDSource { |
48 VENDOR_ID_UNKNOWN, | 48 VENDOR_ID_UNKNOWN, |
49 VENDOR_ID_BLUETOOTH, | 49 VENDOR_ID_BLUETOOTH, |
50 VENDOR_ID_USB | 50 VENDOR_ID_USB, |
| 51 VENDOR_ID_MAX_VALUE = VENDOR_ID_USB |
51 }; | 52 }; |
52 | 53 |
53 // Possible values that may be returned by GetDeviceType(), representing | 54 // Possible values that may be returned by GetDeviceType(), representing |
54 // different types of bluetooth device that we support or are aware of | 55 // different types of bluetooth device that we support or are aware of |
55 // decoded from the bluetooth class information. | 56 // decoded from the bluetooth class information. |
56 enum DeviceType { | 57 enum DeviceType { |
57 DEVICE_UNKNOWN, | 58 DEVICE_UNKNOWN, |
58 DEVICE_COMPUTER, | 59 DEVICE_COMPUTER, |
59 DEVICE_PHONE, | 60 DEVICE_PHONE, |
60 DEVICE_MODEM, | 61 DEVICE_MODEM, |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 | 442 |
442 private: | 443 private: |
443 // Returns a localized string containing the device's bluetooth address and | 444 // Returns a localized string containing the device's bluetooth address and |
444 // a device type for display when |name_| is empty. | 445 // a device type for display when |name_| is empty. |
445 base::string16 GetAddressWithLocalizedDeviceTypeName() const; | 446 base::string16 GetAddressWithLocalizedDeviceTypeName() const; |
446 }; | 447 }; |
447 | 448 |
448 } // namespace device | 449 } // namespace device |
449 | 450 |
450 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 451 #endif // DEVICE_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
OLD | NEW |