| 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 | 
|  | 90     // Called when addEventListener is called on a characteristic. | 
|  | 91     virtual void registerCharacteristicObject( | 
|  | 92         const WebString& characteristicInstanceID, | 
|  | 93         WebBluetoothGATTCharacteristic*) = 0; | 
| 89     virtual void characteristicObjectRemoved( | 94     virtual void characteristicObjectRemoved( | 
| 90         const WebString& characteristicInstanceID, | 95         const WebString& characteristicInstanceID, | 
| 91         WebBluetoothGATTCharacteristic*) {} | 96         WebBluetoothGATTCharacteristic*) {} | 
| 92 }; | 97 }; | 
| 93 | 98 | 
| 94 } // namespace blink | 99 } // namespace blink | 
| 95 | 100 | 
| 96 #endif // WebBluetooth_h | 101 #endif // WebBluetooth_h | 
| OLD | NEW | 
|---|