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

Side by Side Diff: device/usb/android/usb_jni_registrar.cc

Issue 1561283003: Revert of Implement basic USB device enumeration on Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « device/usb/android/usb_jni_registrar.h ('k') | device/usb/mock_usb_device.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "device/usb/android/usb_jni_registrar.h"
6
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "device/usb/usb_configuration_android.h"
10 #include "device/usb/usb_device_android.h"
11 #include "device/usb/usb_endpoint_android.h"
12 #include "device/usb/usb_interface_android.h"
13 #include "device/usb/usb_service_android.h"
14
15 namespace device {
16 namespace android {
17 namespace {
18
19 const base::android::RegistrationMethod kRegisteredMethods[] = {
20 {"UsbConfigurationAndroid", device::UsbConfigurationAndroid::RegisterJNI},
21 {"UsbDeviceAndroid", device::UsbDeviceAndroid::RegisterJNI},
22 {"UsbEndpointAndroid", device::UsbEndpointAndroid::RegisterJNI},
23 {"UsbInterfaceAndroid", device::UsbInterfaceAndroid::RegisterJNI},
24 {"UsbServiceAndroid", device::UsbServiceAndroid::RegisterJNI},
25 };
26
27 } // namespace
28
29 bool RegisterUsbJni(JNIEnv* env) {
30 return RegisterNativeMethods(env, kRegisteredMethods,
31 arraysize(kRegisteredMethods));
32 }
33
34 } // namespace android
35 } // namespace device
OLDNEW
« no previous file with comments | « device/usb/android/usb_jni_registrar.h ('k') | device/usb/mock_usb_device.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698