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 BluetoothDevice_h | 5 #ifndef BluetoothDevice_h |
6 #define BluetoothDevice_h | 6 #define BluetoothDevice_h |
7 | 7 |
8 #include "bindings/core/v8/ScriptWrappable.h" | 8 #include "bindings/core/v8/ScriptWrappable.h" |
9 #include "platform/heap/Heap.h" | 9 #include "platform/heap/Heap.h" |
10 #include "public/platform/WebBluetoothDevice.h" | 10 #include "public/platform/WebBluetoothDevice.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Interface required by CallbackPromiseAdapter: | 32 // Interface required by CallbackPromiseAdapter: |
33 typedef WebBluetoothDevice WebType; | 33 typedef WebBluetoothDevice WebType; |
34 static BluetoothDevice* take(ScriptPromiseResolver*, WebBluetoothDevice*); | 34 static BluetoothDevice* take(ScriptPromiseResolver*, WebBluetoothDevice*); |
35 static void dispose(WebBluetoothDevice*); | 35 static void dispose(WebBluetoothDevice*); |
36 | 36 |
37 // Interface required by Garbage Collection: | 37 // Interface required by Garbage Collection: |
38 void trace(Visitor*) { } | 38 void trace(Visitor*) { } |
39 | 39 |
40 // IDL exposed interface: | 40 // IDL exposed interface: |
41 String instanceID() { return m_webDevice.instanceID; } | 41 String instanceID() { return m_webDevice.instanceID; } |
| 42 String name() { return m_webDevice.name; } |
| 43 unsigned deviceClass(bool& isNull); |
| 44 String vendorIDSource(); |
| 45 unsigned vendorID(bool& isNull); |
| 46 unsigned productID(bool& isNull); |
| 47 unsigned productVersion(bool& isNull); |
| 48 bool paired(bool& isNull); |
| 49 bool connected(bool& isNull); |
| 50 Vector<String> uuids(bool& isNull); |
42 | 51 |
43 private: | 52 private: |
44 WebBluetoothDevice m_webDevice; | 53 WebBluetoothDevice m_webDevice; |
45 }; | 54 }; |
46 | 55 |
47 } // namespace blink | 56 } // namespace blink |
48 | 57 |
49 #endif // BluetoothDevice_h | 58 #endif // BluetoothDevice_h |
OLD | NEW |