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 CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 29 matching lines...) Expand all Loading... |
40 public: | 40 public: |
41 // Possible values that may be returned by GetDeviceType(), representing | 41 // Possible values that may be returned by GetDeviceType(), representing |
42 // different types of bluetooth device that we support or are aware of | 42 // different types of bluetooth device that we support or are aware of |
43 // decoded from the bluetooth class information. | 43 // decoded from the bluetooth class information. |
44 enum DeviceType { | 44 enum DeviceType { |
45 DEVICE_UNKNOWN, | 45 DEVICE_UNKNOWN, |
46 DEVICE_COMPUTER, | 46 DEVICE_COMPUTER, |
47 DEVICE_PHONE, | 47 DEVICE_PHONE, |
48 DEVICE_MODEM, | 48 DEVICE_MODEM, |
49 DEVICE_PERIPHERAL, | 49 DEVICE_PERIPHERAL, |
| 50 DEVICE_JOYSTICK, |
| 51 DEVICE_GAMEPAD, |
50 DEVICE_KEYBOARD, | 52 DEVICE_KEYBOARD, |
51 DEVICE_MOUSE, | 53 DEVICE_MOUSE, |
52 DEVICE_TABLET, | 54 DEVICE_TABLET, |
53 DEVICE_KEYBOARD_MOUSE_COMBO | 55 DEVICE_KEYBOARD_MOUSE_COMBO |
54 }; | 56 }; |
55 | 57 |
56 // Interface for observing changes from bluetooth devices. | 58 // Interface for observing changes from bluetooth devices. |
57 class Observer { | 59 class Observer { |
58 public: | 60 public: |
59 virtual ~Observer() {} | 61 virtual ~Observer() {} |
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 PinCodeCallback pincode_callback_; | 529 PinCodeCallback pincode_callback_; |
528 PasskeyCallback passkey_callback_; | 530 PasskeyCallback passkey_callback_; |
529 ConfirmationCallback confirmation_callback_; | 531 ConfirmationCallback confirmation_callback_; |
530 | 532 |
531 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); | 533 DISALLOW_COPY_AND_ASSIGN(BluetoothDevice); |
532 }; | 534 }; |
533 | 535 |
534 } // namespace chromeos | 536 } // namespace chromeos |
535 | 537 |
536 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ | 538 #endif // CHROME_BROWSER_CHROMEOS_BLUETOOTH_BLUETOOTH_DEVICE_H_ |
OLD | NEW |