 Chromium Code Reviews
 Chromium Code Reviews Issue 1382743002:
  bluetooth: Add characteristicvaluechanged event  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1
    
  
    Issue 1382743002:
  bluetooth: Add characteristicvaluechanged event  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-notifications-1| OLD | NEW | 
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 WebBluetooth_h | 5 #ifndef WebBluetooth_h | 
| 6 #define WebBluetooth_h | 6 #define WebBluetooth_h | 
| 7 | 7 | 
| 8 #include "public/platform/WebCallbacks.h" | 8 #include "public/platform/WebCallbacks.h" | 
| 9 #include "public/platform/WebPassOwnPtr.h" | 9 #include "public/platform/WebPassOwnPtr.h" | 
| 10 #include "public/platform/WebString.h" | 10 #include "public/platform/WebString.h" | 
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 WebBluetoothReadValueCallbacks*) { } | 79 WebBluetoothReadValueCallbacks*) { } | 
| 80 virtual void writeValue(const WebString& characteristicInstanceID, | 80 virtual void writeValue(const WebString& characteristicInstanceID, | 
| 81 const std::vector<uint8_t>& value, | 81 const std::vector<uint8_t>& value, | 
| 82 WebBluetoothWriteValueCallbacks*) { } | 82 WebBluetoothWriteValueCallbacks*) { } | 
| 83 virtual void startNotifications(const WebString& characteristicInstanceID, | 83 virtual void startNotifications(const WebString& characteristicInstanceID, | 
| 84 WebBluetoothGATTCharacteristic*, | 84 WebBluetoothGATTCharacteristic*, | 
| 85 WebBluetoothNotificationsCallbacks*) {} | 85 WebBluetoothNotificationsCallbacks*) {} | 
| 86 virtual void stopNotifications(const WebString& characteristicInstanceID, | 86 virtual void stopNotifications(const WebString& characteristicInstanceID, | 
| 87 WebBluetoothGATTCharacteristic*, | 87 WebBluetoothGATTCharacteristic*, | 
| 88 WebBluetoothNotificationsCallbacks*) {} | 88 WebBluetoothNotificationsCallbacks*) {} | 
| 89 // Called when addEventListener is called on a characteristic. | |
| 
Jeffrey Yasskin
2015/10/15 23:00:51
Add a blank line since this ends the BluetoothGATT
 
ortuno
2015/10/16 01:24:22
Done.
 | |
| 90 virtual void registerCharacteristicObject( | |
| 91 const WebString& characteristicInstanceID, | |
| 92 WebBluetoothGATTCharacteristic*) {} | |
| 89 virtual void characteristicObjectRemoved( | 93 virtual void characteristicObjectRemoved( | 
| 90 const WebString& characteristicInstanceID, | 94 const WebString& characteristicInstanceID, | 
| 91 WebBluetoothGATTCharacteristic*) {} | 95 WebBluetoothGATTCharacteristic*) {} | 
| 92 }; | 96 }; | 
| 93 | 97 | 
| 94 } // namespace blink | 98 } // namespace blink | 
| 95 | 99 | 
| 96 #endif // WebBluetooth_h | 100 #endif // WebBluetooth_h | 
| OLD | NEW |