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

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

Issue 2456613002: Remove BluetoothDevice.uuids attribute from WebBluetooth (Closed)
Patch Set: address more comments Created 4 years, 1 month 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 "core/dom/ContextLifecycleObserver.h" 9 #include "core/dom/ContextLifecycleObserver.h"
10 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 // WebBluetoothDevice interface: 69 // WebBluetoothDevice interface:
70 void dispatchGattServerDisconnected() override; 70 void dispatchGattServerDisconnected() override;
71 71
72 // Interface required by Garbage Collection: 72 // Interface required by Garbage Collection:
73 DECLARE_VIRTUAL_TRACE(); 73 DECLARE_VIRTUAL_TRACE();
74 74
75 // IDL exposed interface: 75 // IDL exposed interface:
76 String id() { return m_webDevice->id; } 76 String id() { return m_webDevice->id; }
77 String name() { return m_webDevice->name; } 77 String name() { return m_webDevice->name; }
78 BluetoothRemoteGATTServer* gatt() { return m_gatt; } 78 BluetoothRemoteGATTServer* gatt() { return m_gatt; }
79 Vector<String> uuids();
80 79
81 DEFINE_ATTRIBUTE_EVENT_LISTENER(gattserverdisconnected); 80 DEFINE_ATTRIBUTE_EVENT_LISTENER(gattserverdisconnected);
82 81
83 private: 82 private:
84 std::unique_ptr<WebBluetoothDeviceInit> m_webDevice; 83 std::unique_ptr<WebBluetoothDeviceInit> m_webDevice;
85 Member<BluetoothRemoteGATTServer> m_gatt; 84 Member<BluetoothRemoteGATTServer> m_gatt;
86 }; 85 };
87 86
88 } // namespace blink 87 } // namespace blink
89 88
90 #endif // BluetoothDevice_h 89 #endif // BluetoothDevice_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/UseCounter.h ('k') | third_party/WebKit/Source/modules/bluetooth/BluetoothDevice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698