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

Side by Side Diff: third_party/WebKit/Source/modules/webusb/USBConfiguration.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 USBConfiguration_h 5 #ifndef USBConfiguration_h
6 #define USBConfiguration_h 6 #define USBConfiguration_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/Handle.h" 10 #include "platform/heap/Handle.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ExceptionState; 14 class ExceptionState;
15 class USBDevice; 15 class USBDevice;
16 class USBInterface; 16 class USBInterface;
17 17
18 class USBConfiguration 18 class USBConfiguration
19 : public GarbageCollected<USBConfiguration> 19 : public GarbageCollected<USBConfiguration>
20 , public ScriptWrappable { 20 , public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO(); 21 DEFINE_WRAPPERTYPEINFO();
22 public: 22 public:
23 static USBConfiguration* create(const USBDevice*, size_t configurationIndex) ; 23 static USBConfiguration* create(const USBDevice*, size_t configurationIndex) ;
24 static USBConfiguration* create(const USBDevice*, size_t configurationValue, ExceptionState&); 24 static USBConfiguration* create(const USBDevice*, size_t configurationValue, ExceptionState&);
25 25
26 USBConfiguration(const USBDevice*, size_t configurationIndex); 26 USBConfiguration(const USBDevice*, size_t configurationIndex);
27 27
28 const USBDevice* device() const; 28 const USBDevice* device() const;
29 size_t index() const; 29 size_t index() const;
30 const device::usb::wtf::ConfigurationInfo& info() const; 30 const device::usb::blink::ConfigurationInfo& info() const;
31 31
32 uint8_t configurationValue() const { return info().configuration_value; } 32 uint8_t configurationValue() const { return info().configuration_value; }
33 String configurationName() const { return info().configuration_name; } 33 String configurationName() const { return info().configuration_name; }
34 HeapVector<Member<USBInterface>> interfaces() const; 34 HeapVector<Member<USBInterface>> interfaces() 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 }; 41 };
42 42
43 } // namespace blink 43 } // namespace blink
44 44
45 #endif // USBConfiguration_h 45 #endif // USBConfiguration_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698