summaryrefslogtreecommitdiff
path: root/chromium/components/infobars/android/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/components/infobars/android/BUILD.gn')
-rw-r--r--chromium/components/infobars/android/BUILD.gn70
1 files changed, 70 insertions, 0 deletions
diff --git a/chromium/components/infobars/android/BUILD.gn b/chromium/components/infobars/android/BUILD.gn
new file mode 100644
index 00000000000..70e8674eeba
--- /dev/null
+++ b/chromium/components/infobars/android/BUILD.gn
@@ -0,0 +1,70 @@
+# Copyright 2020 The Chromium Authors. All rights reserved.
+# 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") {
+ sources = [
+ "res/drawable-hdpi/infobar_shadow_left.9.png",
+ "res/drawable-hdpi/infobar_shadow_top.png",
+ "res/drawable-mdpi/infobar_shadow_left.9.png",
+ "res/drawable-mdpi/infobar_shadow_top.png",
+ "res/drawable-xhdpi/infobar_shadow_left.9.png",
+ "res/drawable-xhdpi/infobar_shadow_top.png",
+ "res/drawable-xxhdpi/infobar_shadow_left.9.png",
+ "res/drawable-xxhdpi/infobar_shadow_top.png",
+ "res/drawable-xxxhdpi/infobar_shadow_left.9.png",
+ "res/drawable-xxxhdpi/infobar_shadow_top.png",
+ "res/layout/infobar_control_icon_with_description.xml",
+ "res/layout/infobar_control_message.xml",
+ "res/layout/infobar_control_spinner.xml",
+ "res/layout/infobar_control_spinner_drop_down.xml",
+ "res/layout/infobar_control_spinner_view.xml",
+ "res/layout/infobar_control_toggle.xml",
+ "res/values/dimens.xml",
+ "res/values/ids.xml",
+ ]
+ custom_package = "org.chromium.components.infobars"
+ deps = [
+ "//components/browser_ui/widget/android:java_resources",
+ "//components/strings",
+ "//ui/android:ui_java_resources",
+ ]
+}
+
+android_library("java") {
+ sources = [
+ "java/src/org/chromium/components/infobars/InfoBarControlLayout.java",
+ "java/src/org/chromium/components/infobars/InfoBarInteractionHandler.java",
+ "java/src/org/chromium/components/infobars/InfoBarLayout.java",
+ "java/src/org/chromium/components/infobars/InfoBarMessageView.java",
+ ]
+ deps = [
+ ":java_resources",
+ "//base:base_java",
+ "//components/browser_ui/widget/android:java",
+ "//third_party/android_deps:androidx_appcompat_appcompat_java",
+ "//third_party/android_deps:androidx_appcompat_appcompat_resources_java",
+ "//ui/android:ui_java",
+ ]
+}
+
+android_library("javatests") {
+ testonly = true
+ sources = [
+ "java/src/org/chromium/components/infobars/InfoBarControlLayoutTest.java",
+ ]
+ deps = [
+ ":java",
+ "//base:base_java",
+ "//base:base_java_test_support",
+ "//components/browser_ui/styles/android:java_resources",
+ "//components/browser_ui/widget/android:java",
+ "//third_party/android_deps:androidx_annotation_annotation_java",
+ "//third_party/android_deps:androidx_appcompat_appcompat_java",
+ "//third_party/android_support_test_runner:rules_java",
+ "//third_party/android_support_test_runner:runner_java",
+ "//third_party/junit:junit",
+ ]
+}