# Copyright 2023 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//build/config/android/rules.gni")
import("//third_party/jni_zero/jni_zero.gni")
android_library("java") {
srcjar_deps = [ ":jni_headers" ]
sources = [
"java/src/org/chromium/chrome/browser/gesturenav/NativePageBitmapCapturer.java",
"java/src/org/chromium/chrome/browser/gesturenav/TabOnBackGestureHandler.java",
]
deps = [
"//base:base_java",
"//chrome/browser/flags:java",
"//chrome/browser/tab:java",
"//chrome/browser/ui/android/native_page:java",
"//content/public/android:content_full_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_no_recycler_view_java",
"//url:url_java",
]
resources_package = "org.chromium.chrome.browser.gesturenav"
}
android_library("javatests") {
testonly = true
resources_package = "org.chromium.chrome.browser.gesturenav"
sources = [ "java/src/org/chromium/chrome/browser/gesturenav/NativePageBitmapCapturerTest.java" ]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//chrome/android:chrome_java",
"//chrome/browser/flags:java",
"//chrome/browser/tab:java",
"//chrome/test/android:chrome_java_integration_test_support",
"//components/embedder_support/android:util_java",
"//content/public/test/android:content_java_test_support",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit:junit",
]
}
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/chrome/browser/gesturenav/TabOnBackGestureHandler.java" ]
}