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

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

Issue 301093003: device/bluetooth: Update characteristic value D-Bus bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments. Created 6 years, 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 42
43 // DBusClient override. 43 // DBusClient override.
44 virtual void Init(dbus::Bus* bus) OVERRIDE; 44 virtual void Init(dbus::Bus* bus) OVERRIDE;
45 45
46 // BluetoothGattCharacteristicClient overrides. 46 // BluetoothGattCharacteristicClient overrides.
47 virtual void AddObserver(Observer* observer) OVERRIDE; 47 virtual void AddObserver(Observer* observer) OVERRIDE;
48 virtual void RemoveObserver(Observer* observer) OVERRIDE; 48 virtual void RemoveObserver(Observer* observer) OVERRIDE;
49 virtual std::vector<dbus::ObjectPath> GetCharacteristics() OVERRIDE; 49 virtual std::vector<dbus::ObjectPath> GetCharacteristics() OVERRIDE;
50 virtual Properties* GetProperties(const dbus::ObjectPath& object_path) 50 virtual Properties* GetProperties(const dbus::ObjectPath& object_path)
51 OVERRIDE; 51 OVERRIDE;
52 virtual void ReadValue(const dbus::ObjectPath& object_path,
53 const ValueCallback& callback,
54 const ErrorCallback& error_callback) OVERRIDE;
55 virtual void WriteValue(const dbus::ObjectPath& object_path,
56 const std::vector<uint8>& value,
57 const base::Closure& callback,
58 const ErrorCallback& error_callback) OVERRIDE;
52 59
53 // Makes the group of characteristics belonging to a particular GATT based 60 // Makes the group of characteristics belonging to a particular GATT based
54 // profile available under the GATT service with object path |service_path|. 61 // profile available under the GATT service with object path |service_path|.
55 // Characteristic paths are hierarchical to service paths. 62 // Characteristic paths are hierarchical to service paths.
56 void ExposeHeartRateCharacteristics(const dbus::ObjectPath& service_path); 63 void ExposeHeartRateCharacteristics(const dbus::ObjectPath& service_path);
57 void HideHeartRateCharacteristics(); 64 void HideHeartRateCharacteristics();
58 65
59 // Returns whether or not the heart rate characteristics are visible and 66 // Returns whether or not the heart rate characteristics are visible and
60 // performs the appropriate assertions. 67 // performs the appropriate assertions.
61 bool IsHeartRateVisible() const; 68 bool IsHeartRateVisible() const;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // invalidate its weak pointers before any other members are destroyed. 130 // invalidate its weak pointers before any other members are destroyed.
124 base::WeakPtrFactory<FakeBluetoothGattCharacteristicClient> 131 base::WeakPtrFactory<FakeBluetoothGattCharacteristicClient>
125 weak_ptr_factory_; 132 weak_ptr_factory_;
126 133
127 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicClient); 134 DISALLOW_COPY_AND_ASSIGN(FakeBluetoothGattCharacteristicClient);
128 }; 135 };
129 136
130 } // namespace chromeos 137 } // namespace chromeos
131 138
132 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_ 139 #endif // CHROMEOS_DBUS_FAKE_BLUETOOTH_GATT_CHARACTERISTIC_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698