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

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

Issue 1775953004: bluetooth: Move writeValue to mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@my-origin
Patch Set: Moar cleanup Created 4 years, 9 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 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"
11 #include "public/platform/WebVector.h" 11 #include "public/platform/WebVector.h"
12 #include "public/platform/modules/bluetooth/WebBluetoothError.h" 12 #include "public/platform/modules/bluetooth/WebBluetoothError.h"
13 #include "public/platform/modules/bluetooth/web_bluetooth.mojom.h"
13 14
14 namespace blink { 15 namespace blink {
15 16
16 class WebBluetoothRemoteGATTCharacteristic; 17 class WebBluetoothRemoteGATTCharacteristic;
17 18
18 struct WebBluetoothDevice; 19 struct WebBluetoothDevice;
19 struct WebBluetoothRemoteGATTCharacteristicInit; 20 struct WebBluetoothRemoteGATTCharacteristicInit;
20 struct WebBluetoothRemoteGATTService; 21 struct WebBluetoothRemoteGATTService;
21 struct WebRequestDeviceOptions; 22 struct WebRequestDeviceOptions;
22 23
(...skipping 10 matching lines...) Expand all
33 using WebBluetoothGetCharacteristicCallbacks = WebCallbacks<WebPassOwnPtr<WebBlu etoothRemoteGATTCharacteristicInit>, const WebBluetoothError&>; 34 using WebBluetoothGetCharacteristicCallbacks = WebCallbacks<WebPassOwnPtr<WebBlu etoothRemoteGATTCharacteristicInit>, const WebBluetoothError&>;
34 35
35 // Success and failure callbacks for getCharacteristics. 36 // Success and failure callbacks for getCharacteristics.
36 using WebBluetoothGetCharacteristicsCallbacks = 37 using WebBluetoothGetCharacteristicsCallbacks =
37 WebCallbacks<WebPassOwnPtr<WebVector<WebBluetoothRemoteGATTCharacteristicIni t*>>, const WebBluetoothError&>; 38 WebCallbacks<WebPassOwnPtr<WebVector<WebBluetoothRemoteGATTCharacteristicIni t*>>, const WebBluetoothError&>;
38 39
39 // Success and failure callbacks for readValue. 40 // Success and failure callbacks for readValue.
40 using WebBluetoothReadValueCallbacks = WebCallbacks<const WebVector<uint8_t>&, c onst WebBluetoothError&>; 41 using WebBluetoothReadValueCallbacks = WebCallbacks<const WebVector<uint8_t>&, c onst WebBluetoothError&>;
41 42
42 // Success and failure callbacks for writeValue. 43 // Success and failure callbacks for writeValue.
43 using WebBluetoothWriteValueCallbacks = WebCallbacks<const WebVector<uint8_t>&, const WebBluetoothError&>; 44 using WebBluetoothWriteValueCallbacks = WebCallbacks<const WebVector<uint8_t>&, const mojom::WebBluetoothError&>;
44 45
45 // Success and failure callbacks for characteristic.startNotifications and 46 // Success and failure callbacks for characteristic.startNotifications and
46 // characteristic.stopNotifications. 47 // characteristic.stopNotifications.
47 using WebBluetoothNotificationsCallbacks = WebCallbacks<void, const WebBluetooth Error&>; 48 using WebBluetoothNotificationsCallbacks = WebCallbacks<void, const WebBluetooth Error&>;
48 49
49 class WebBluetooth { 50 class WebBluetooth {
50 public: 51 public:
51 virtual ~WebBluetooth() { } 52 virtual ~WebBluetooth() { }
52 53
53 // Bluetooth Methods: 54 // Bluetooth Methods:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const WebString& characteristicInstanceID, 96 const WebString& characteristicInstanceID,
96 WebBluetoothRemoteGATTCharacteristic*) = 0; 97 WebBluetoothRemoteGATTCharacteristic*) = 0;
97 virtual void characteristicObjectRemoved( 98 virtual void characteristicObjectRemoved(
98 const WebString& characteristicInstanceID, 99 const WebString& characteristicInstanceID,
99 WebBluetoothRemoteGATTCharacteristic*) {} 100 WebBluetoothRemoteGATTCharacteristic*) {}
100 }; 101 };
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif // WebBluetooth_h 105 #endif // WebBluetooth_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698