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_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/observer_list.h" | 12 #include "base/observer_list.h" |
13 #include "base/values.h" | 13 #include "base/values.h" |
14 #include "chrome/browser/chromeos/dbus/bluetooth_property.h" | 14 #include "chromeos/chromeos_export.h" |
15 #include "chrome/browser/chromeos/dbus/dbus_client_implementation_type.h" | 15 #include "chromeos/dbus/bluetooth_property.h" |
| 16 #include "chromeos/dbus/dbus_client_implementation_type.h" |
16 #include "dbus/object_path.h" | 17 #include "dbus/object_path.h" |
17 | 18 |
18 namespace dbus { | 19 namespace dbus { |
19 class Bus; | 20 class Bus; |
20 } // namespace dbus | 21 } // namespace dbus |
21 | 22 |
22 namespace chromeos { | 23 namespace chromeos { |
23 | 24 |
24 class BluetoothAdapterClient; | 25 class BluetoothAdapterClient; |
25 | 26 |
26 // BluetoothInputClient is used to communicate with the Input interface | 27 // BluetoothInputClient is used to communicate with the Input interface |
27 // of a bluetooth device, rather than the generic device interface. Input | 28 // of a bluetooth device, rather than the generic device interface. Input |
28 // devices are those conforming to the Bluetooth SIG HID (Human Interface | 29 // devices are those conforming to the Bluetooth SIG HID (Human Interface |
29 // Device) Profile such as keyboards, mice, trackpads and joysticks. | 30 // Device) Profile such as keyboards, mice, trackpads and joysticks. |
30 class BluetoothInputClient { | 31 class CHROMEOS_EXPORT BluetoothInputClient { |
31 public: | 32 public: |
32 // Structure of properties associated with bluetooth input devices. | 33 // Structure of properties associated with bluetooth input devices. |
33 struct Properties : public BluetoothPropertySet { | 34 struct Properties : public BluetoothPropertySet { |
34 // Indicates that the device is currently connected. Read-only. | 35 // Indicates that the device is currently connected. Read-only. |
35 BluetoothProperty<bool> connected; | 36 BluetoothProperty<bool> connected; |
36 | 37 |
37 Properties(dbus::ObjectProxy* object_proxy, | 38 Properties(dbus::ObjectProxy* object_proxy, |
38 PropertyChangedCallback callback); | 39 PropertyChangedCallback callback); |
39 virtual ~Properties(); | 40 virtual ~Properties(); |
40 }; | 41 }; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 | 86 |
86 protected: | 87 protected: |
87 BluetoothInputClient(); | 88 BluetoothInputClient(); |
88 | 89 |
89 private: | 90 private: |
90 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); | 91 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace chromeos | 94 } // namespace chromeos |
94 | 95 |
95 #endif // CHROME_BROWSER_CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 96 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
OLD | NEW |