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

Side by Side Diff: third_party/WebKit/public/platform/modules/bluetooth/WebBluetoothGATTCharacteristic.h

Issue 1382743002: bluetooth: Add characteristicvaluechanged event (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1
Patch Set: Address tkent'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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 WebBluetoothGATTCharacteristic_h 5 #ifndef WebBluetoothGATTCharacteristic_h
6 #define WebBluetoothGATTCharacteristic_h 6 #define WebBluetoothGATTCharacteristic_h
7 7
8 #include "public/platform/WebVector.h"
9
8 namespace blink { 10 namespace blink {
9 11
10 // An object through which the embedder can trigger events on a Document-bound 12 // An object through which the embedder can trigger events on a Document-bound
11 // Web Bluetooth GATT Characteristic object. 13 // Web Bluetooth GATT Characteristic object.
12 class WebBluetoothGATTCharacteristic { 14 class WebBluetoothGATTCharacteristic {
13 public: 15 public:
16 // Used to notify blink that the characteristic's value changed.
17 virtual void dispatchCharacteristicValueChanged(const WebVector<uint8_t>&) = 0;
14 }; 18 };
15 19
16 } // namespace blink 20 } // namespace blink
17 21
18 #endif // WebBluetoothGATTCharacteristicDelegate_h 22 #endif // WebBluetoothGATTCharacteristicDelegate_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/platform/modules/bluetooth/WebBluetooth.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698