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

Side by Side Diff: Source/modules/bluetooth/BluetoothDevice.h

Issue 876623003: bluetooth: New WebBluetoothDevice attributes plumbed to BluetoothDevice. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bt-1-
Patch Set: Created 5 years, 10 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 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
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
OLDNEW
« no previous file with comments | « LayoutTests/bluetooth/idl-BluetoothDevice.html ('k') | Source/modules/bluetooth/BluetoothDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698