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 CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
6 #define CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 6 #define CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 17 matching lines...) Expand all Loading... |
28 // devices are those conforming to the Bluetooth SIG HID (Human Interface | 28 // devices are those conforming to the Bluetooth SIG HID (Human Interface |
29 // Device) Profile such as keyboards, mice, trackpads and joysticks. | 29 // Device) Profile such as keyboards, mice, trackpads and joysticks. |
30 class CHROMEOS_EXPORT BluetoothInputClient { | 30 class CHROMEOS_EXPORT BluetoothInputClient { |
31 public: | 31 public: |
32 // Structure of properties associated with bluetooth input devices. | 32 // Structure of properties associated with bluetooth input devices. |
33 struct Properties : public BluetoothPropertySet { | 33 struct Properties : public BluetoothPropertySet { |
34 // Indicates that the device is currently connected. Read-only. | 34 // Indicates that the device is currently connected. Read-only. |
35 dbus::Property<bool> connected; | 35 dbus::Property<bool> connected; |
36 | 36 |
37 Properties(dbus::ObjectProxy* object_proxy, | 37 Properties(dbus::ObjectProxy* object_proxy, |
38 PropertyChangedCallback callback); | 38 const PropertyChangedCallback& callback); |
39 virtual ~Properties(); | 39 virtual ~Properties(); |
40 }; | 40 }; |
41 | 41 |
42 // Interface for observing changes from a bluetooth input device. | 42 // Interface for observing changes from a bluetooth input device. |
43 class Observer { | 43 class Observer { |
44 public: | 44 public: |
45 virtual ~Observer() {} | 45 virtual ~Observer() {} |
46 | 46 |
47 // Called when the device with object path |object_path| has a | 47 // Called when the device with object path |object_path| has a |
48 // change in value of the input property named |property_name|. | 48 // change in value of the input property named |property_name|. |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 protected: | 104 protected: |
105 BluetoothInputClient(); | 105 BluetoothInputClient(); |
106 | 106 |
107 private: | 107 private: |
108 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); | 108 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); |
109 }; | 109 }; |
110 | 110 |
111 } // namespace chromeos | 111 } // namespace chromeos |
112 | 112 |
113 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 113 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
OLD | NEW |