blob: b8beda3c028c99fbc6f28cb68489d2a5d63e8d14 [file] [log] [blame]
Avi Drissman4a8573c2022-09-09 19:35:541// Copyright 2022 The Chromium Authors
François Beaufort4eb9a11e2022-05-17 09:28:282// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
Andrew Grieve6a66fe92024-05-29 15:36:025#include "chrome/browser/usb/android/jni_headers/UsbBridge_jni.h"
Francois Pierre Doray00b861a2024-05-29 16:08:246#include "content/public/browser/web_contents.h"
Andrew Grieve6a66fe92024-05-29 15:36:027
François Beaufort4eb9a11e2022-05-17 09:28:288jboolean JNI_UsbBridge_IsWebContentsConnectedToUsbDevice(
9 JNIEnv* env,
10 const base::android::JavaParamRef<jobject>& java_web_contents) {
Matt Reynoldsed00ca7e72022-08-18 20:56:2011 return content::WebContents::FromJavaWebContents(java_web_contents)
12 ->IsConnectedToUsbDevice();
François Beaufort4eb9a11e2022-05-17 09:28:2813}