# Copyright 2022 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")
android_resources("java_resources") {
deps = [ "//ui/android:ui_java_resources" ]
sources = [
"java/res/drawable/touch_to_fill_credential_background.xml",
"java/res/drawable/touch_to_fill_credential_background_modern.xml",
"java/res/drawable/touch_to_fill_credential_background_modern_rounded_all.xml",
"java/res/drawable/touch_to_fill_credential_background_modern_rounded_down.xml",
"java/res/drawable/touch_to_fill_credential_background_modern_rounded_up.xml",
"java/res/layout/touch_to_fill_fill_button.xml",
"java/res/layout/touch_to_fill_sheet.xml",
"java/res/values/dimens.xml",
]
}
android_library("java") {
deps = [
":java_resources",
"//base:base_java",
"//chrome/browser/autofill/android:bottom_sheet_utils_java",
"//chrome/browser/tab:java",
"//chrome/browser/tabmodel:java",
"//chrome/browser/util:java",
"//components/browser_ui/bottomsheet/android:java",
"//content/public/android:content_java",
"//third_party/androidx:androidx_annotation_annotation_jvm_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_recyclerview_recyclerview_java",
"//ui/accessibility:ax_base_java",
"//ui/android:ui_java",
]
sources = [
"java/src/org/chromium/chrome/browser/touch_to_fill/common/BottomSheetFocusHelper.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/common/FillableItemCollectionInfo.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/common/ItemDividerBase.java",
"java/src/org/chromium/chrome/browser/touch_to_fill/common/TouchToFillViewBase.java",
]
resources_package = "org.chromium.chrome.browser.touch_to_fill.common"
}
robolectric_library("junit") {
testonly = true
sources = [ "java/src/org/chromium/chrome/browser/touch_to_fill/common/BottomSheetFocusHelperRoboelectricTest.java" ]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//chrome/browser/tab:java",
"//chrome/browser/tabmodel:java",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/bottomsheet/android/internal:java",
"//components/browser_ui/bottomsheet/android/test:java",
"//components/browser_ui/widget/android:java",
"//content/public/android:content_full_java",
"//content/public/test/android:content_java_test_support",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java_test_support",
"//ui/android:ui_no_recycler_view_java",
]
}