1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
# 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")
generate_jni("jni_headers") {
sources = [ "java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxBridge.java" ]
}
android_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/privacy_sandbox/AdMeasurementFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/AdPersonalizationFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/AdPersonalizationRemovedFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/FlocSettingsFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/LearnMoreFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxBottomSheetNotice.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxBridge.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxDialogConsent.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxDialogController.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxDialogLaunchContext.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxDialogNotice.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxHelpers.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxReferrer.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxSettingsFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxSettingsFragmentV3.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxSnackbarController.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/SpamFraudFragment.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/Topic.java",
"java/src/org/chromium/chrome/browser/privacy_sandbox/TopicPreference.java",
]
deps = [
":java_resources",
"//base:base_java",
"//base:jni_java",
"//build/android:build_java",
"//chrome/browser/flags:java",
"//chrome/browser/settings:java",
"//chrome/browser/ui/messages/android:java",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/settings/android:java",
"//components/browser_ui/styles/android:java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_appcompat_appcompat_resources_java",
"//third_party/androidx:androidx_browser_browser_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_core_core_java",
"//third_party/androidx:androidx_fragment_fragment_java",
"//third_party/androidx:androidx_preference_preference_java",
"//third_party/androidx:androidx_recyclerview_recyclerview_java",
"//third_party/androidx:androidx_vectordrawable_vectordrawable_java",
"//ui/android:ui_full_java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
srcjar_deps = [ ":privacy_sandbox_enums" ]
resources_package = "org.chromium.chrome.browser.privacy_sandbox"
}
android_library("javatests") {
testonly = true
sources = [
"javatests/src/org/chromium/chrome/browser/privacy_sandbox/FakePrivacySandboxBridge.java",
"javatests/src/org/chromium/chrome/browser/privacy_sandbox/FlocSettingsFragmentTest.java",
"javatests/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxBridgeTest.java",
"javatests/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxDialogTest.java",
"javatests/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxSettingsFragmentTest.java",
"javatests/src/org/chromium/chrome/browser/privacy_sandbox/PrivacySandboxSettingsFragmentV3Test.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base/test:test_support_java",
"//chrome/android:chrome_java",
"//chrome/browser/flags:java",
"//chrome/browser/settings:test_support_java",
"//chrome/test/android:chrome_java_test_support",
"//components/browser_ui/bottomsheet/android:java",
"//components/browser_ui/settings/android:java",
"//content/public/test/android:content_java_test_support",
"//third_party/android_deps:espresso_java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/hamcrest:hamcrest_core_java",
"//third_party/hamcrest:hamcrest_library_java",
"//third_party/junit:junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java_test_support",
]
}
android_resources("java_resources") {
sources = [
"java/res/drawable-night/privacy_sandbox_dialog_illustration.xml",
"java/res/drawable-night/privacy_sandbox_illustration.xml",
"java/res/drawable/privacy_sandbox_dialog_illustration.xml",
"java/res/drawable/privacy_sandbox_illustration.xml",
"java/res/layout/privacy_sandbox_consent.xml",
"java/res/layout/privacy_sandbox_consent_dropdown.xml",
"java/res/layout/privacy_sandbox_header.xml",
"java/res/layout/privacy_sandbox_notice.xml",
"java/res/layout/privacy_sandbox_notice_bottom_sheet.xml",
"java/res/values/dimens.xml",
"java/res/xml/ad_measurement_preference.xml",
"java/res/xml/ad_personalization_preference.xml",
"java/res/xml/ad_personalization_removed_preference.xml",
"java/res/xml/floc_preferences.xml",
"java/res/xml/learn_more_preference.xml",
"java/res/xml/privacy_sandbox_preferences.xml",
"java/res/xml/privacy_sandbox_preferences_v3.xml",
"java/res/xml/spam_fraud_preference.xml",
]
deps = [
"//chrome/browser/ui/android/strings:ui_strings_grd",
"//components/browser_ui/settings/android:java_resources",
"//components/browser_ui/strings/android:browser_ui_strings_grd",
"//components/browser_ui/styles/android:java_resources",
"//components/browser_ui/widget/android:java_resources",
"//third_party/android_deps:material_design_java",
]
}
java_cpp_enum("privacy_sandbox_enums") {
sources = [ "//chrome/browser/privacy_sandbox/privacy_sandbox_service.h" ]
}
|