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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBInterface.h

Issue 1902263004: Mojo: Change the blink variant from "wtf" to "blink". (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 USBInterface_h 5 #ifndef USBInterface_h
6 #define USBInterface_h 6 #define USBInterface_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "device/usb/public/interfaces/device.mojom-wtf.h" 9 #include "device/usb/public/interfaces/device.mojom-blink.h"
10 #include "platform/heap/Heap.h" 10 #include "platform/heap/Heap.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExceptionState; 14 class ExceptionState;
15 class USBAlternateInterface; 15 class USBAlternateInterface;
16 class USBConfiguration; 16 class USBConfiguration;
17 class USBDevice; 17 class USBDevice;
18 18
19 class USBInterface 19 class USBInterface
20 : public GarbageCollected<USBInterface> 20 : public GarbageCollected<USBInterface>
21 , public ScriptWrappable { 21 , public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO(); 22 DEFINE_WRAPPERTYPEINFO();
23 public: 23 public:
24 static USBInterface* create(const USBConfiguration*, size_t interfaceIndex); 24 static USBInterface* create(const USBConfiguration*, size_t interfaceIndex);
25 static USBInterface* create(const USBConfiguration*, size_t interfaceNumber, ExceptionState&); 25 static USBInterface* create(const USBConfiguration*, size_t interfaceNumber, ExceptionState&);
26 26
27 USBInterface(const USBDevice*, size_t configurationIndex, size_t interfaceIn dex); 27 USBInterface(const USBDevice*, size_t configurationIndex, size_t interfaceIn dex);
28 28
29 const device::usb::wtf::InterfaceInfo& info() const; 29 const device::usb::blink::InterfaceInfo& info() const;
30 30
31 uint8_t interfaceNumber() const { return info().interface_number; } 31 uint8_t interfaceNumber() const { return info().interface_number; }
32 USBAlternateInterface* alternate() const; 32 USBAlternateInterface* alternate() const;
33 HeapVector<Member<USBAlternateInterface>> alternates() const; 33 HeapVector<Member<USBAlternateInterface>> alternates() const;
34 bool claimed() const; 34 bool claimed() const;
35 35
36 DECLARE_TRACE(); 36 DECLARE_TRACE();
37 37
38 private: 38 private:
39 Member<const USBDevice> m_device; 39 Member<const USBDevice> m_device;
40 const size_t m_configurationIndex; 40 const size_t m_configurationIndex;
41 const size_t m_interfaceIndex; 41 const size_t m_interfaceIndex;
42 }; 42 };
43 43
44 } // namespace blink 44 } // namespace blink
45 45
46 #endif // USBInterface_h 46 #endif // USBInterface_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698