# Copyright 2020 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/components/find_in_page/FindInPageBridge.java",
"java/src/org/chromium/components/find_in_page/FindMatchRectsDetails.java",
"java/src/org/chromium/components/find_in_page/FindNotificationDetails.java",
"java/src/org/chromium/components/find_in_page/FindResultBar.java",
]
deps = [
":java_resources",
"//base:base_java",
"//build/android:build_java",
"//components/browser_ui/widget/android:java",
"//content/public/android:content_java",
"//third_party/androidx:androidx_interpolator_interpolator_java",
"//third_party/jni_zero:jni_zero_java",
"//ui/android:ui_java",
]
resources_package = "org.chromium.components.find_in_page"
}
android_resources("java_resources") {
sources = [
"java/res/values/colors.xml",
"java/res/values/dimens.xml",
]
deps = [ "//ui/android:ui_java_resources" ]
}
generate_jni("jni_headers") {
sources =
[ "java/src/org/chromium/components/find_in_page/FindInPageBridge.java" ]
}