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

Unified Diff: third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h

Issue 1403723004: bluetooth: Implement BluetoothCharacteristicProperties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-query-cache
Patch Set: Address scheib's comments Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h
diff --git a/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h b/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h
index 44c3d3a1b805ac878d48fc7ab7e528e3fa69e432..9a5a883d0767be466bd282fa12820d321325883f 100644
--- a/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h
+++ b/third_party/WebKit/Source/modules/bluetooth/BluetoothGATTCharacteristic.h
@@ -18,6 +18,7 @@
namespace blink {
+class BluetoothCharacteristicProperties;
class ExecutionContext;
class ScriptPromise;
class ScriptPromiseResolver;
@@ -70,6 +71,8 @@ public:
// IDL exposed interface:
String uuid() { return m_webCharacteristic->uuid; }
+
+ BluetoothCharacteristicProperties* properties() { return m_properties; }
PassRefPtr<DOMArrayBuffer> value() const { return m_value; }
ScriptPromise readValue(ScriptState*);
ScriptPromise writeValue(ScriptState*, const DOMArrayPiece&);
@@ -81,6 +84,7 @@ public:
private:
OwnPtr<WebBluetoothGATTCharacteristicInit> m_webCharacteristic;
bool m_stopped;
+ Member<BluetoothCharacteristicProperties> m_properties;
RefPtr<DOMArrayBuffer> m_value;
};

Powered by Google App Engine
This is Rietveld 408576698