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

Side by Side Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothRemoteGATTService.h

Issue 1861013005: bluetooth: Move GetCharacteristic(s) over to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-separate-tests-read-value
Patch Set: Merge Created 4 years, 8 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 #ifndef BluetoothRemoteGATTService_h 5 #ifndef BluetoothRemoteGATTService_h
6 #define BluetoothRemoteGATTService_h 6 #define BluetoothRemoteGATTService_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "bindings/modules/v8/UnionTypesModules.h" 9 #include "bindings/modules/v8/UnionTypesModules.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
(...skipping 27 matching lines...) Expand all
38 using WebType = OwnPtr<WebBluetoothRemoteGATTService>; 38 using WebType = OwnPtr<WebBluetoothRemoteGATTService>;
39 static BluetoothRemoteGATTService* take(ScriptPromiseResolver*, PassOwnPtr<W ebBluetoothRemoteGATTService>); 39 static BluetoothRemoteGATTService* take(ScriptPromiseResolver*, PassOwnPtr<W ebBluetoothRemoteGATTService>);
40 40
41 // Interface required by garbage collection. 41 // Interface required by garbage collection.
42 DEFINE_INLINE_TRACE() { } 42 DEFINE_INLINE_TRACE() { }
43 43
44 // IDL exposed interface: 44 // IDL exposed interface:
45 String uuid() { return m_webService->uuid; } 45 String uuid() { return m_webService->uuid; }
46 bool isPrimary() { return m_webService->isPrimary; } 46 bool isPrimary() { return m_webService->isPrimary; }
47 ScriptPromise getCharacteristic(ScriptState*, const StringOrUnsignedLong& ch aracteristic, ExceptionState&); 47 ScriptPromise getCharacteristic(ScriptState*, const StringOrUnsignedLong& ch aracteristic, ExceptionState&);
48 ScriptPromise getCharacteristics(ScriptState*, const StringOrUnsignedLong& c haracteristic, ExceptionState&);
48 ScriptPromise getCharacteristics(ScriptState*, ExceptionState&); 49 ScriptPromise getCharacteristics(ScriptState*, ExceptionState&);
49 ScriptPromise getCharacteristics(ScriptState*, const StringOrUnsignedLong& c haracteristic, ExceptionState&);
50 50
51 private: 51 private:
52 ScriptPromise getCharacteristicsImpl(ScriptState*, String characteristicUUID ); 52 ScriptPromise getCharacteristicsImpl(ScriptState*, bool singleCharacteristic , String characteristicUUID = String());
53 53
54 OwnPtr<WebBluetoothRemoteGATTService> m_webService; 54 OwnPtr<WebBluetoothRemoteGATTService> m_webService;
55 }; 55 };
56 56
57 } // namespace blink 57 } // namespace blink
58 58
59 #endif // BluetoothRemoteGATTService_h 59 #endif // BluetoothRemoteGATTService_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698