Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: chromeos/dbus/bluetooth_input_client.h

Issue 10823301: bluetooth: Create stub manager, adapter and device. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address review comments Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/bluetooth_device_client.cc ('k') | chromeos/dbus/bluetooth_input_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_device_client.cc ('k') | chromeos/dbus/bluetooth_input_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698