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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBEndpoint.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 USBEndpoint_h 5 #ifndef USBEndpoint_h
6 #define USBEndpoint_h 6 #define USBEndpoint_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 16
17 class USBEndpoint 17 class USBEndpoint
18 : public GarbageCollected<USBEndpoint> 18 : public GarbageCollected<USBEndpoint>
19 , public ScriptWrappable { 19 , public ScriptWrappable {
20 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
21 public: 21 public:
22 static USBEndpoint* create(const USBAlternateInterface*, size_t endpointInde x); 22 static USBEndpoint* create(const USBAlternateInterface*, size_t endpointInde x);
23 static USBEndpoint* create(const USBAlternateInterface*, size_t endpointNumb er, const String& direction, ExceptionState&); 23 static USBEndpoint* create(const USBAlternateInterface*, size_t endpointNumb er, const String& direction, ExceptionState&);
24 24
25 USBEndpoint(const USBAlternateInterface*, size_t endpointIndex); 25 USBEndpoint(const USBAlternateInterface*, size_t endpointIndex);
26 26
27 const device::usb::wtf::EndpointInfo& info() const; 27 const device::usb::blink::EndpointInfo& info() const;
28 28
29 uint8_t endpointNumber() const { return info().endpoint_number; } 29 uint8_t endpointNumber() const { return info().endpoint_number; }
30 String direction() const; 30 String direction() const;
31 String type() const; 31 String type() const;
32 unsigned packetSize() const { return info().packet_size; } 32 unsigned packetSize() const { return info().packet_size; }
33 33
34 DECLARE_TRACE(); 34 DECLARE_TRACE();
35 35
36 private: 36 private:
37 Member<const USBAlternateInterface> m_alternate; 37 Member<const USBAlternateInterface> m_alternate;
38 const size_t m_endpointIndex; 38 const size_t m_endpointIndex;
39 }; 39 };
40 40
41 } // namespace blink 41 } // namespace blink
42 42
43 #endif // USBEndpoint_h 43 #endif // USBEndpoint_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/webusb/USBDevice.cpp ('k') | third_party/WebKit/Source/modules/webusb/USBEndpoint.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698