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

Side by Side Diff: chromeos/dbus/bluetooth_manager_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_input_client.h ('k') | chromeos/dbus/bluetooth_node_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_MANAGER_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 11 matching lines...) Expand all
22 22
23 namespace chromeos { 23 namespace chromeos {
24 24
25 // BluetoothManagerClient is used to communicate with the bluetooth 25 // BluetoothManagerClient is used to communicate with the bluetooth
26 // daemon's Manager interface. 26 // daemon's Manager interface.
27 class CHROMEOS_EXPORT BluetoothManagerClient { 27 class CHROMEOS_EXPORT BluetoothManagerClient {
28 public: 28 public:
29 // Structure of properties associated with the bluetooth manager. 29 // Structure of properties associated with the bluetooth manager.
30 struct Properties : public BluetoothPropertySet { 30 struct Properties : public BluetoothPropertySet {
31 // List of object paths of local Bluetooth adapters. Read-only. 31 // List of object paths of local Bluetooth adapters. Read-only.
32 BluetoothProperty<std::vector<dbus::ObjectPath> > adapters; 32 dbus::Property<std::vector<dbus::ObjectPath> > adapters;
33 33
34 Properties(dbus::ObjectProxy* object_proxy, 34 Properties(dbus::ObjectProxy* object_proxy,
35 PropertyChangedCallback callback); 35 PropertyChangedCallback callback);
36 virtual ~Properties(); 36 virtual ~Properties();
37 }; 37 };
38 38
39 // Interface for observing changes from the bluetooth manager. 39 // Interface for observing changes from the bluetooth manager.
40 class Observer { 40 class Observer {
41 public: 41 public:
42 virtual ~Observer() {} 42 virtual ~Observer() {}
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 protected: 92 protected:
93 BluetoothManagerClient(); 93 BluetoothManagerClient();
94 94
95 private: 95 private:
96 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient); 96 DISALLOW_COPY_AND_ASSIGN(BluetoothManagerClient);
97 }; 97 };
98 98
99 } // namespace chromeos 99 } // namespace chromeos
100 100
101 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_ 101 #endif // CHROMEOS_DBUS_BLUETOOTH_MANAGER_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_input_client.h ('k') | chromeos/dbus/bluetooth_node_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698