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
|
# 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_library("java") {
sources = [
"java/src/org/chromium/chrome/browser/layouts/CompositorModelChangeProcessor.java",
"java/src/org/chromium/chrome/browser/layouts/EventFilter.java",
"java/src/org/chromium/chrome/browser/layouts/FilterLayoutStateObserver.java",
"java/src/org/chromium/chrome/browser/layouts/LayoutManager.java",
"java/src/org/chromium/chrome/browser/layouts/LayoutManagerProvider.java",
"java/src/org/chromium/chrome/browser/layouts/LayoutStateProvider.java",
"java/src/org/chromium/chrome/browser/layouts/LayoutType.java",
"java/src/org/chromium/chrome/browser/layouts/SceneOverlay.java",
"java/src/org/chromium/chrome/browser/layouts/animation/CompositorAnimationHandler.java",
"java/src/org/chromium/chrome/browser/layouts/animation/CompositorAnimator.java",
"java/src/org/chromium/chrome/browser/layouts/components/VirtualView.java",
"java/src/org/chromium/chrome/browser/layouts/scene_layer/SceneLayer.java",
"java/src/org/chromium/chrome/browser/layouts/scene_layer/SceneOverlayLayer.java",
]
annotation_processor_deps = [ "//base/android/jni_generator:jni_processor" ]
deps = [
"third_party/float_property:java",
"//base:base_java",
"//base:jni_java",
"//build/android:build_java",
"//components/browser_ui/widget/android:java",
"//third_party/androidx:androidx_annotation_annotation_java",
"//ui/android:ui_java",
]
}
source_set("android") {
sources = [
"scene_layer.cc",
"scene_layer.h",
]
deps = [
":layouts_jni_headers",
"//cc",
"//skia",
]
}
generate_jni("layouts_jni_headers") {
sources = [
"java/src/org/chromium/chrome/browser/layouts/scene_layer/SceneLayer.java",
]
}
java_library("junit") {
# Skip platform checks since Robolectric depends on requires_android targets.
bypass_platform_checks = true
testonly = true
sources = [
"java/src/org/chromium/chrome/browser/layouts/CompositorModelChangeProcessorUnitTest.java",
"java/src/org/chromium/chrome/browser/layouts/FilterLayoutStateObserverTest.java",
"java/src/org/chromium/chrome/browser/layouts/animation/CompositorAnimationHandlerTest.java",
"java/src/org/chromium/chrome/browser/layouts/animation/CompositorAnimatorTest.java",
]
deps = [
":java",
"//base:base_java",
"//base:base_java_test_support",
"//base:base_junit_test_support",
"//third_party/android_deps:robolectric_all_java",
"//third_party/android_support_test_runner:runner_java",
"//third_party/androidx:androidx_test_runner_java",
"//third_party/junit",
"//third_party/mockito:mockito_java",
"//ui/android:ui_java",
]
}
|