| Index: third_party/WebKit/Source/modules/webusb/USBInterface.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webusb/USBInterface.cpp b/third_party/WebKit/Source/modules/webusb/USBInterface.cpp
|
| index 17b14c50249c896a6b9f09d8ea0f24d920bf8d2d..7b952e6693687854da9a6df4ed1ed35f4bc203dc 100644
|
| --- a/third_party/WebKit/Source/modules/webusb/USBInterface.cpp
|
| +++ b/third_party/WebKit/Source/modules/webusb/USBInterface.cpp
|
| @@ -41,6 +41,13 @@ const WebUSBDeviceInfo::Interface& USBInterface::info() const
|
| return m_device->info().configurations[m_configurationIndex].interfaces[m_interfaceIndex];
|
| }
|
|
|
| +USBAlternateInterface* USBInterface::alternate() const
|
| +{
|
| + if (m_device->isInterfaceClaimed(m_configurationIndex, m_interfaceIndex))
|
| + return USBAlternateInterface::create(this, m_device->selectedAlternateInterface(m_interfaceIndex));
|
| + return nullptr;
|
| +}
|
| +
|
| HeapVector<Member<USBAlternateInterface>> USBInterface::alternates() const
|
| {
|
| HeapVector<Member<USBAlternateInterface>> alternates;
|
|
|