| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #include <vector> | 9 #include <vector> |
| 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 "chromeos/chromeos_export.h" | 13 #include "chromeos/chromeos_export.h" |
| 14 #include "chromeos/dbus/dbus_client.h" | 14 #include "chromeos/dbus/dbus_client.h" |
| 15 #include "chromeos/dbus/dbus_client_implementation_type.h" | |
| 16 #include "dbus/object_path.h" | 15 #include "dbus/object_path.h" |
| 17 #include "dbus/property.h" | 16 #include "dbus/property.h" |
| 18 | 17 |
| 19 namespace chromeos { | 18 namespace chromeos { |
| 20 | 19 |
| 21 // BluetoothInputClient is used to communicate with objects representing | 20 // BluetoothInputClient is used to communicate with objects representing |
| 22 // Bluetooth Input (HID) devices. | 21 // Bluetooth Input (HID) devices. |
| 23 class CHROMEOS_EXPORT BluetoothInputClient : public DBusClient { | 22 class CHROMEOS_EXPORT BluetoothInputClient : public DBusClient { |
| 24 public: | 23 public: |
| 25 // Structure of properties associated with bluetooth input devices. | 24 // Structure of properties associated with bluetooth input devices. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 // devices. Check the |object_path| parameter of observer methods to | 60 // devices. Check the |object_path| parameter of observer methods to |
| 62 // determine which device is issuing the event. | 61 // determine which device is issuing the event. |
| 63 virtual void AddObserver(Observer* observer) = 0; | 62 virtual void AddObserver(Observer* observer) = 0; |
| 64 virtual void RemoveObserver(Observer* observer) = 0; | 63 virtual void RemoveObserver(Observer* observer) = 0; |
| 65 | 64 |
| 66 // Obtain the properties for the device with object path |object_path|, | 65 // Obtain the properties for the device with object path |object_path|, |
| 67 // any values should be copied if needed. | 66 // any values should be copied if needed. |
| 68 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0; | 67 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) = 0; |
| 69 | 68 |
| 70 // Creates the instance. | 69 // Creates the instance. |
| 71 static BluetoothInputClient* Create(DBusClientImplementationType type); | 70 static BluetoothInputClient* Create(); |
| 72 | 71 |
| 73 protected: | 72 protected: |
| 74 BluetoothInputClient(); | 73 BluetoothInputClient(); |
| 75 | 74 |
| 76 private: | 75 private: |
| 77 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); | 76 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); |
| 78 }; | 77 }; |
| 79 | 78 |
| 80 } // namespace chromeos | 79 } // namespace chromeos |
| 81 | 80 |
| 82 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ | 81 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ |
| OLD | NEW |