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

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

Issue 10698027: dbus: move logic from Property<> to PropertySet (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing overrides for clang Created 8 years, 5 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.h ('k') | chromeos/dbus/bluetooth_manager_client.h » ('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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 15 matching lines...) Expand all
26 26
27 // BluetoothInputClient is used to communicate with the Input interface 27 // BluetoothInputClient is used to communicate with the Input interface
28 // of a bluetooth device, rather than the generic device interface. Input 28 // of a bluetooth device, rather than the generic device interface. Input
29 // devices are those conforming to the Bluetooth SIG HID (Human Interface 29 // devices are those conforming to the Bluetooth SIG HID (Human Interface
30 // Device) Profile such as keyboards, mice, trackpads and joysticks. 30 // Device) Profile such as keyboards, mice, trackpads and joysticks.
31 class CHROMEOS_EXPORT BluetoothInputClient { 31 class CHROMEOS_EXPORT BluetoothInputClient {
32 public: 32 public:
33 // Structure of properties associated with bluetooth input devices. 33 // Structure of properties associated with bluetooth input devices.
34 struct Properties : public BluetoothPropertySet { 34 struct Properties : public BluetoothPropertySet {
35 // Indicates that the device is currently connected. Read-only. 35 // Indicates that the device is currently connected. Read-only.
36 BluetoothProperty<bool> connected; 36 dbus::Property<bool> connected;
37 37
38 Properties(dbus::ObjectProxy* object_proxy, 38 Properties(dbus::ObjectProxy* object_proxy,
39 PropertyChangedCallback callback); 39 PropertyChangedCallback callback);
40 virtual ~Properties(); 40 virtual ~Properties();
41 }; 41 };
42 42
43 // Interface for observing changes from a bluetooth input device. 43 // Interface for observing changes from a bluetooth input device.
44 class Observer { 44 class Observer {
45 public: 45 public:
46 virtual ~Observer() {} 46 virtual ~Observer() {}
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 protected: 105 protected:
106 BluetoothInputClient(); 106 BluetoothInputClient();
107 107
108 private: 108 private:
109 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient); 109 DISALLOW_COPY_AND_ASSIGN(BluetoothInputClient);
110 }; 110 };
111 111
112 } // namespace chromeos 112 } // namespace chromeos
113 113
114 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_ 114 #endif // CHROMEOS_DBUS_BLUETOOTH_INPUT_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_device_client.h ('k') | chromeos/dbus/bluetooth_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698