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

Side by Side Diff: chromeos/dbus/bluetooth_node_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_manager_client.cc ('k') | chromeos/dbus/bluetooth_node_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_NODE_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_
6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ 6 #define CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 19 matching lines...) Expand all
30 public: 30 public:
31 // Structure of properties associated with persistent device nodes. 31 // Structure of properties associated with persistent device nodes.
32 struct Properties : public BluetoothPropertySet { 32 struct Properties : public BluetoothPropertySet {
33 // The name of the device node under /dev. Read-only. 33 // The name of the device node under /dev. Read-only.
34 dbus::Property<std::string> name; 34 dbus::Property<std::string> name;
35 35
36 // Object path of the device the node binding belongs to. Read-only. 36 // Object path of the device the node binding belongs to. Read-only.
37 dbus::Property<dbus::ObjectPath> device; 37 dbus::Property<dbus::ObjectPath> device;
38 38
39 Properties(dbus::ObjectProxy* object_proxy, 39 Properties(dbus::ObjectProxy* object_proxy,
40 PropertyChangedCallback callback); 40 const PropertyChangedCallback& callback);
41 virtual ~Properties(); 41 virtual ~Properties();
42 }; 42 };
43 43
44 // Interface for observing changes from a persistent device node binding. 44 // Interface for observing changes from a persistent device node binding.
45 class Observer { 45 class Observer {
46 public: 46 public:
47 virtual ~Observer() {} 47 virtual ~Observer() {}
48 48
49 // Called when the node binding with object path |object_path| has a 49 // Called when the node binding with object path |object_path| has a
50 // change in value of the property named |property_name|. 50 // change in value of the property named |property_name|.
(...skipping 21 matching lines...) Expand all
72 protected: 72 protected:
73 BluetoothNodeClient(); 73 BluetoothNodeClient();
74 74
75 private: 75 private:
76 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient); 76 DISALLOW_COPY_AND_ASSIGN(BluetoothNodeClient);
77 }; 77 };
78 78
79 } // namespace chromeos 79 } // namespace chromeos
80 80
81 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_ 81 #endif // CHROMEOS_DBUS_BLUETOOTH_NODE_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/bluetooth_manager_client.cc ('k') | chromeos/dbus/bluetooth_node_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698