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

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

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)
Patch Set: . Created 4 years, 3 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
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_adapter_android.h" 5 #include "device/bluetooth/bluetooth_adapter_android.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #include "base/android/jni_android.h" 9 #include "base/android/jni_android.h"
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 void BluetoothAdapterAndroid::RegisterAudioSink( 150 void BluetoothAdapterAndroid::RegisterAudioSink(
151 const BluetoothAudioSink::Options& options, 151 const BluetoothAudioSink::Options& options,
152 const AcquiredCallback& callback, 152 const AcquiredCallback& callback,
153 const BluetoothAudioSink::ErrorCallback& error_callback) { 153 const BluetoothAudioSink::ErrorCallback& error_callback) {
154 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM); 154 error_callback.Run(BluetoothAudioSink::ERROR_UNSUPPORTED_PLATFORM);
155 } 155 }
156 156
157 void BluetoothAdapterAndroid::RegisterAdvertisement( 157 void BluetoothAdapterAndroid::RegisterAdvertisement(
158 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data, 158 std::unique_ptr<BluetoothAdvertisement::Data> advertisement_data,
159 const CreateAdvertisementCallback& callback, 159 const CreateAdvertisementCallback& callback,
160 const CreateAdvertisementErrorCallback& error_callback) { 160 const AdvertisementErrorCallback& error_callback) {
161 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM); 161 error_callback.Run(BluetoothAdvertisement::ERROR_UNSUPPORTED_PLATFORM);
162 } 162 }
163 163
164 BluetoothLocalGattService* BluetoothAdapterAndroid::GetGattService( 164 BluetoothLocalGattService* BluetoothAdapterAndroid::GetGattService(
165 const std::string& identifier) const { 165 const std::string& identifier) const {
166 return nullptr; 166 return nullptr;
167 } 167 }
168 168
169 void BluetoothAdapterAndroid::OnAdapterStateChanged( 169 void BluetoothAdapterAndroid::OnAdapterStateChanged(
170 JNIEnv* env, 170 JNIEnv* env,
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // TODO(scheib): Support filters crbug.com/490401 332 // TODO(scheib): Support filters crbug.com/490401
333 NOTIMPLEMENTED(); 333 NOTIMPLEMENTED();
334 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED); 334 error_callback.Run(UMABluetoothDiscoverySessionOutcome::NOT_IMPLEMENTED);
335 } 335 }
336 336
337 void BluetoothAdapterAndroid::RemovePairingDelegateInternal( 337 void BluetoothAdapterAndroid::RemovePairingDelegateInternal(
338 device::BluetoothDevice::PairingDelegate* pairing_delegate) { 338 device::BluetoothDevice::PairingDelegate* pairing_delegate) {
339 } 339 }
340 340
341 } // namespace device 341 } // namespace device
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698