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

Unified Diff: device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java

Issue 1857033002: Include USB device version in chrome.usb.Device fields. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Extract fields on Android as well. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java
diff --git a/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java b/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java
index 92e4e1481cf4340241fe441012a429b2bc49af5e..2918ab675167761a7c122da2d6c04c44e26e37a7 100644
--- a/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java
+++ b/device/usb/android/java/src/org/chromium/device/usb/ChromeUsbDevice.java
@@ -37,6 +37,21 @@ final class ChromeUsbDevice {
}
@CalledByNative
+ private int getDeviceClass() {
+ return mDevice.getDeviceClass();
+ }
+
+ @CalledByNative
+ private int getDeviceSubclass() {
+ return mDevice.getDeviceSubclass();
+ }
+
+ @CalledByNative
+ private int getDeviceProtocol() {
+ return mDevice.getDeviceProtocol();
+ }
+
+ @CalledByNative
private int getVendorId() {
return mDevice.getVendorId();
}

Powered by Google App Engine
This is Rietveld 408576698