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

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

Issue 2650003005: Mark Bluetooth devices connected after they are actually connected (Closed)
Patch Set: mark Bluetooth devices connected after they are actually connected Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "modules/bluetooth/BluetoothDevice.h" 10 #include "modules/bluetooth/BluetoothDevice.h"
(...skipping 20 matching lines...) Expand all
31 31
32 void dispose(); 32 void dispose();
33 33
34 // BluetoothDiscovery interface 34 // BluetoothDiscovery interface
35 ScriptPromise requestDevice(ScriptState*, 35 ScriptPromise requestDevice(ScriptState*,
36 const RequestDeviceOptions&, 36 const RequestDeviceOptions&,
37 ExceptionState&); 37 ExceptionState&);
38 38
39 mojom::blink::WebBluetoothService* service() { return m_service.get(); } 39 mojom::blink::WebBluetoothService* service() { return m_service.get(); }
40 40
41 void addDevice(const String& deviceId, BluetoothDevice*); 41 void addToConnectedDevicesMap(const String& deviceId, BluetoothDevice*);
42 42
43 void removeDevice(const String& deviceId); 43 void removeFromConnectedDevicesMap(const String& deviceId);
44 44
45 void registerCharacteristicObject(const String& characteristicInstanceId, 45 void registerCharacteristicObject(const String& characteristicInstanceId,
46 BluetoothRemoteGATTCharacteristic*); 46 BluetoothRemoteGATTCharacteristic*);
47 void characteristicObjectRemoved(const String& characteristicInstanceId); 47 void characteristicObjectRemoved(const String& characteristicInstanceId);
48 48
49 // Interface required by Garbage Collection: 49 // Interface required by Garbage Collection:
50 DECLARE_VIRTUAL_TRACE(); 50 DECLARE_VIRTUAL_TRACE();
51 51
52 private: 52 private:
53 Bluetooth(); 53 Bluetooth();
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 mojom::blink::WebBluetoothServicePtr m_service; 87 mojom::blink::WebBluetoothServicePtr m_service;
88 88
89 // Binding associated with |m_service|. 89 // Binding associated with |m_service|.
90 mojo::AssociatedBinding<mojom::blink::WebBluetoothServiceClient> 90 mojo::AssociatedBinding<mojom::blink::WebBluetoothServiceClient>
91 m_clientBinding; 91 m_clientBinding;
92 }; 92 };
93 93
94 } // namespace blink 94 } // namespace blink
95 95
96 #endif // Bluetooth_h 96 #endif // Bluetooth_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/bluetooth/Bluetooth.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698