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

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

Issue 1182973002: Implement the Blink side of RequestDeviceOptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@pinned
Patch Set: Prepare readValue.html for a mock data change Created 5 years, 6 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 Bluetooth_h 5 #ifndef Bluetooth_h
6 #define Bluetooth_h 6 #define Bluetooth_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class BluetoothUUIDs; 14 class BluetoothUUIDs;
15 class RequestDeviceOptions;
15 class ScriptPromise; 16 class ScriptPromise;
16 class ScriptState; 17 class ScriptState;
17 18
18 class Bluetooth 19 class Bluetooth
19 : public GarbageCollected<Bluetooth> 20 : public GarbageCollected<Bluetooth>
20 , public ScriptWrappable { 21 , public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
22 public: 23 public:
23 static Bluetooth* create() 24 static Bluetooth* create()
24 { 25 {
25 return new Bluetooth(); 26 return new Bluetooth();
26 } 27 }
27 28
28 // BluetoothDiscovery interface 29 // BluetoothDiscovery interface
29 ScriptPromise requestDevice(ScriptState*); 30 ScriptPromise requestDevice(ScriptState*, const RequestDeviceOptions&);
30 31
31 DEFINE_INLINE_TRACE() { } 32 DEFINE_INLINE_TRACE() { }
32 33
33 }; 34 };
34 35
35 } // namespace blink 36 } // namespace blink
36 37
37 #endif // Bluetooth_h 38 #endif // Bluetooth_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698