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

Side by Side Diff: device/bluetooth/bluetooth_remote_gatt_characteristic_android.cc

Issue 1412963004: bluetooth: android: Implement Characteristic GetIdentifier, fix Service IDs too. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_android.h" 5 #include "device/bluetooth/bluetooth_remote_gatt_characteristic_android.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 namespace device { 9 namespace device {
10 10
11 // static 11 // static
12 scoped_ptr<BluetoothRemoteGattCharacteristicAndroid> 12 scoped_ptr<BluetoothRemoteGattCharacteristicAndroid>
13 BluetoothRemoteGattCharacteristicAndroid::Create() { 13 BluetoothRemoteGattCharacteristicAndroid::Create(
14 const std::string& instanceId) {
14 return make_scoped_ptr<BluetoothRemoteGattCharacteristicAndroid>( 15 return make_scoped_ptr<BluetoothRemoteGattCharacteristicAndroid>(
15 new BluetoothRemoteGattCharacteristicAndroid()); 16 new BluetoothRemoteGattCharacteristicAndroid(instanceId));
16 } 17 }
17 18
18 BluetoothRemoteGattCharacteristicAndroid:: 19 BluetoothRemoteGattCharacteristicAndroid::
19 ~BluetoothRemoteGattCharacteristicAndroid() {} 20 ~BluetoothRemoteGattCharacteristicAndroid() {}
20 21
21 std::string BluetoothRemoteGattCharacteristicAndroid::GetIdentifier() const { 22 std::string BluetoothRemoteGattCharacteristicAndroid::GetIdentifier() const {
22 NOTIMPLEMENTED(); 23 return instanceId_;
23 return "";
24 } 24 }
25 25
26 BluetoothUUID BluetoothRemoteGattCharacteristicAndroid::GetUUID() const { 26 BluetoothUUID BluetoothRemoteGattCharacteristicAndroid::GetUUID() const {
27 NOTIMPLEMENTED(); 27 NOTIMPLEMENTED();
28 return BluetoothUUID(); 28 return BluetoothUUID();
29 } 29 }
30 30
31 bool BluetoothRemoteGattCharacteristicAndroid::IsLocal() const { 31 bool BluetoothRemoteGattCharacteristicAndroid::IsLocal() const {
32 return false; 32 return false;
33 } 33 }
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 } 99 }
100 100
101 void BluetoothRemoteGattCharacteristicAndroid::WriteRemoteCharacteristic( 101 void BluetoothRemoteGattCharacteristicAndroid::WriteRemoteCharacteristic(
102 const std::vector<uint8>& new_value, 102 const std::vector<uint8>& new_value,
103 const base::Closure& callback, 103 const base::Closure& callback,
104 const ErrorCallback& error_callback) { 104 const ErrorCallback& error_callback) {
105 NOTIMPLEMENTED(); 105 NOTIMPLEMENTED();
106 } 106 }
107 107
108 BluetoothRemoteGattCharacteristicAndroid:: 108 BluetoothRemoteGattCharacteristicAndroid::
109 BluetoothRemoteGattCharacteristicAndroid() {} 109 BluetoothRemoteGattCharacteristicAndroid(const std::string& instanceId)
110 : instanceId_(instanceId) {}
110 111
111 } // namespace device 112 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698