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

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

Issue 2680783002: bluetooth: show better error messages for services, characteristics and descriptors (Closed)
Patch Set: Rebased on master. 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BluetoothRemoteGATTDescriptor_h 5 #ifndef BluetoothRemoteGATTDescriptor_h
6 #define BluetoothRemoteGATTDescriptor_h 6 #define BluetoothRemoteGATTDescriptor_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/dom/DOMArrayPiece.h" 9 #include "core/dom/DOMArrayPiece.h"
10 #include "core/dom/DOMDataView.h" 10 #include "core/dom/DOMDataView.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 void ReadValueCallback(ScriptPromiseResolver*, 62 void ReadValueCallback(ScriptPromiseResolver*,
63 mojom::blink::WebBluetoothResult, 63 mojom::blink::WebBluetoothResult,
64 const Optional<Vector<uint8_t>>&); 64 const Optional<Vector<uint8_t>>&);
65 65
66 void WriteValueCallback(ScriptPromiseResolver*, 66 void WriteValueCallback(ScriptPromiseResolver*,
67 const Vector<uint8_t>&, 67 const Vector<uint8_t>&,
68 mojom::blink::WebBluetoothResult); 68 mojom::blink::WebBluetoothResult);
69 69
70 DOMException* createInvalidDescriptorError();
71
70 mojom::blink::WebBluetoothRemoteGATTDescriptorPtr m_descriptor; 72 mojom::blink::WebBluetoothRemoteGATTDescriptorPtr m_descriptor;
71 Member<BluetoothRemoteGATTCharacteristic> m_characteristic; 73 Member<BluetoothRemoteGATTCharacteristic> m_characteristic;
72 Member<DOMDataView> m_value; 74 Member<DOMDataView> m_value;
73 }; 75 };
74 76
75 } // namespace blink 77 } // namespace blink
76 78
77 #endif // BluetoothRemoteGATTDescriptor_h 79 #endif // BluetoothRemoteGATTDescriptor_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698