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

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

Issue 2821723002: Move classes in the device.usb Mojo namespace to device.mojom (Closed)
Patch Set: mcasas@ nits Created 3 years, 8 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-blink.h" 9 #include "device/usb/public/interfaces/device.mojom-blink.h"
10 #include "platform/heap/Heap.h" 10 #include "platform/heap/Heap.h"
(...skipping 12 matching lines...) Expand all
23 public: 23 public:
24 static USBInterface* Create(const USBConfiguration*, size_t interface_index); 24 static USBInterface* Create(const USBConfiguration*, size_t interface_index);
25 static USBInterface* Create(const USBConfiguration*, 25 static USBInterface* Create(const USBConfiguration*,
26 size_t interface_number, 26 size_t interface_number,
27 ExceptionState&); 27 ExceptionState&);
28 28
29 USBInterface(const USBDevice*, 29 USBInterface(const USBDevice*,
30 size_t configuration_index, 30 size_t configuration_index,
31 size_t interface_index); 31 size_t interface_index);
32 32
33 const device::usb::blink::InterfaceInfo& Info() const; 33 const device::mojom::blink::UsbInterfaceInfo& Info() const;
34 34
35 uint8_t interfaceNumber() const { return Info().interface_number; } 35 uint8_t interfaceNumber() const { return Info().interface_number; }
36 USBAlternateInterface* alternate() const; 36 USBAlternateInterface* alternate() const;
37 HeapVector<Member<USBAlternateInterface>> alternates() const; 37 HeapVector<Member<USBAlternateInterface>> alternates() const;
38 bool claimed() const; 38 bool claimed() const;
39 39
40 DECLARE_TRACE(); 40 DECLARE_TRACE();
41 41
42 private: 42 private:
43 Member<const USBDevice> device_; 43 Member<const USBDevice> device_;
44 const size_t configuration_index_; 44 const size_t configuration_index_;
45 const size_t interface_index_; 45 const size_t interface_index_;
46 }; 46 };
47 47
48 } // namespace blink 48 } // namespace blink
49 49
50 #endif // USBInterface_h 50 #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