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

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

Issue 2821723002: Move classes in the device.usb Mojo namespace to device.mojom (Closed)
Patch Set: fix usb_descriptors_fuzzer 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 USBAlternateInterface_h 5 #ifndef USBAlternateInterface_h
6 #define USBAlternateInterface_h 6 #define USBAlternateInterface_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 10 matching lines...) Expand all
21 21
22 public: 22 public:
23 static USBAlternateInterface* Create(const USBInterface*, 23 static USBAlternateInterface* Create(const USBInterface*,
24 size_t alternate_index); 24 size_t alternate_index);
25 static USBAlternateInterface* Create(const USBInterface*, 25 static USBAlternateInterface* Create(const USBInterface*,
26 size_t alternate_setting, 26 size_t alternate_setting,
27 ExceptionState&); 27 ExceptionState&);
28 28
29 USBAlternateInterface(const USBInterface*, size_t alternate_index); 29 USBAlternateInterface(const USBInterface*, size_t alternate_index);
30 30
31 const device::usb::blink::AlternateInterfaceInfo& Info() const; 31 const device::mojom::blink::UsbAlternateInterfaceInfo& Info() const;
32 32
33 uint8_t alternateSetting() const { return Info().alternate_setting; } 33 uint8_t alternateSetting() const { return Info().alternate_setting; }
34 uint8_t interfaceClass() const { return Info().class_code; } 34 uint8_t interfaceClass() const { return Info().class_code; }
35 uint8_t interfaceSubclass() const { return Info().subclass_code; } 35 uint8_t interfaceSubclass() const { return Info().subclass_code; }
36 uint8_t interfaceProtocol() const { return Info().protocol_code; } 36 uint8_t interfaceProtocol() const { return Info().protocol_code; }
37 String interfaceName() const { return Info().interface_name; } 37 String interfaceName() const { return Info().interface_name; }
38 HeapVector<Member<USBEndpoint>> endpoints() const; 38 HeapVector<Member<USBEndpoint>> endpoints() const;
39 39
40 DECLARE_TRACE(); 40 DECLARE_TRACE();
41 41
42 private: 42 private:
43 Member<const USBInterface> interface_; 43 Member<const USBInterface> interface_;
44 const size_t alternate_index_; 44 const size_t alternate_index_;
45 }; 45 };
46 46
47 } // namespace blink 47 } // namespace blink
48 48
49 #endif // USBAlternateInterface_h 49 #endif // USBAlternateInterface_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698