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

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

Issue 1066933008: bluetooth: Refactor Bluetooth and Stub out BluetoothInteraction. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-uuids-fix-casing-2
Patch Set: Created 5 years, 7 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/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/bluetooth/BluetoothDiscovery.h" 10 #include "platform/heap/Handle.h"
10 11
11 namespace blink { 12 namespace blink {
12 13
13 class Bluetooth final 14 class ScriptPromise;
14 : public BluetoothDiscovery { 15 class ScriptState;
16
17 class Bluetooth
18 : public GarbageCollected<Bluetooth>
19 , public ScriptWrappable {
15 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
16 public: 21 public:
17 static Bluetooth* create() 22 static Bluetooth* create()
18 { 23 {
19 return new Bluetooth(); 24 return new Bluetooth();
20 } 25 }
26
27 // BluetoothDiscovery interface
28 ScriptPromise requestDevice(ScriptState*);
29
30 DEFINE_INLINE_TRACE() { }
21 }; 31 };
22 32
23 } // namespace blink 33 } // namespace blink
24 34
25 #endif // Bluetooth_h 35 #endif // Bluetooth_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/bluetooth/Bluetooth.cpp » ('j') | Source/modules/bluetooth/BluetoothInteraction.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698