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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTServer.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 "modules/bluetooth/BluetoothRemoteGATTServer.h" 5 #include "modules/bluetooth/BluetoothRemoteGATTServer.h"
6 6
7 #include <utility>
7 #include "bindings/core/v8/CallbackPromiseAdapter.h" 8 #include "bindings/core/v8/CallbackPromiseAdapter.h"
8 #include "bindings/core/v8/ScriptPromise.h" 9 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 10 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "core/dom/DOMException.h" 11 #include "core/dom/DOMException.h"
11 #include "core/dom/ExceptionCode.h" 12 #include "core/dom/ExceptionCode.h"
12 #include "core/events/Event.h" 13 #include "core/events/Event.h"
13 #include "modules/bluetooth/Bluetooth.h" 14 #include "modules/bluetooth/Bluetooth.h"
14 #include "modules/bluetooth/BluetoothDevice.h" 15 #include "modules/bluetooth/BluetoothDevice.h"
15 #include "modules/bluetooth/BluetoothError.h" 16 #include "modules/bluetooth/BluetoothError.h"
16 #include "modules/bluetooth/BluetoothRemoteGATTService.h" 17 #include "modules/bluetooth/BluetoothRemoteGATTService.h"
17 #include "modules/bluetooth/BluetoothUUID.h" 18 #include "modules/bluetooth/BluetoothUUID.h"
18 #include <utility>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 namespace { 22 namespace {
23 23
24 const char kGATTServerNotConnected[] = 24 const char kGATTServerNotConnected[] =
25 "GATT Server is disconnected. Cannot retrieve services. (Re)connect first " 25 "GATT Server is disconnected. Cannot retrieve services. (Re)connect first "
26 "with `device.gatt.connect`."; 26 "with `device.gatt.connect`.";
27 27
28 } // namespace 28 } // namespace
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 mojom::blink::WebBluetoothService* service = m_device->bluetooth()->service(); 185 mojom::blink::WebBluetoothService* service = m_device->bluetooth()->service();
186 service->RemoteServerGetPrimaryServices( 186 service->RemoteServerGetPrimaryServices(
187 device()->id(), quantity, servicesUUID, 187 device()->id(), quantity, servicesUUID,
188 convertToBaseCallback( 188 convertToBaseCallback(
189 WTF::bind(&BluetoothRemoteGATTServer::GetPrimaryServicesCallback, 189 WTF::bind(&BluetoothRemoteGATTServer::GetPrimaryServicesCallback,
190 wrapPersistent(this), quantity, wrapPersistent(resolver)))); 190 wrapPersistent(this), quantity, wrapPersistent(resolver))));
191 return promise; 191 return promise;
192 } 192 }
193 193
194 } // namespace blink 194 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698