# 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")
android_library("java") {
sources = [
"java/src/org/chromium/chrome/modules/readaloud/Playback.java",
"java/src/org/chromium/chrome/modules/readaloud/PlaybackArgs.java",
"java/src/org/chromium/chrome/modules/readaloud/PlaybackListener.java",
"java/src/org/chromium/chrome/modules/readaloud/Player.java",
"java/src/org/chromium/chrome/modules/readaloud/ReadAloudPlaybackHooks.java",
"java/src/org/chromium/chrome/modules/readaloud/ReadAloudPlaybackHooksProvider.java",
"java/src/org/chromium/chrome/modules/readaloud/contentjs/Extractor.java",
"java/src/org/chromium/chrome/modules/readaloud/contentjs/Highlighter.java",
]
deps = [
"//base:base_java",
"//chrome/browser/android/httpclient/public:java",
"//chrome/browser/android/lifecycle:java",
"//chrome/browser/browser_controls/android:java",
"//chrome/browser/profiles/android:java",
"//chrome/browser/tab:java",
"//chrome/browser/ui/android/layouts:java",
"//chrome/browser/user_education:java",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/styles/android:java",
"//components/prefs/android:java",
"//content/public/android:content_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//ui/android:ui_no_recycler_view_java",
]
# Add the actual implementation where necessary so that downstream targets
# can provide their own implementations.
jar_excluded_patterns = [ "*/ReadAloudPlaybackHooksProvider*.class" ]
}
# ReadAloudPlaybackHooksProvider for public builds.
android_library("provider_public_java") {
sources = [ "java/src/org/chromium/chrome/modules/readaloud/ReadAloudPlaybackHooksProvider.java" ]
deps = [
":java",
"//chrome/browser/profiles/android:java",
]
}