# Copyright 2020 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import("//third_party/blink/renderer/core/core.gni")
blink_core_sources_scroll = [
"programmatic_scroll_animator.cc",
"programmatic_scroll_animator.h",
"scroll_alignment.cc",
"scroll_alignment.h",
"scroll_animator.cc",
"scroll_animator.h",
"scroll_animator_base.cc",
"scroll_animator_base.h",
"scroll_animator_compositor_coordinator.cc",
"scroll_animator_compositor_coordinator.h",
"scroll_into_view_util.cc",
"scroll_into_view_util.h",
"scroll_snapshot_client.cc",
"scroll_snapshot_client.h",
"scroll_start_targets.cc",
"scroll_start_targets.h",
"scroll_types.h",
"scrollable_area.cc",
"scrollable_area.h",
"scrollbar.cc",
"scrollbar.h",
"mac_scrollbar_animator.h",
"scrollbar_layer_delegate.cc",
"scrollbar_layer_delegate.h",
"scrollbar_theme.cc",
"scrollbar_theme.h",
"scrollbar_theme_overlay.cc",
"scrollbar_theme_overlay.h",
"scrollbar_theme_overlay_mobile.cc",
"scrollbar_theme_overlay_mobile.h",
"scrollbar_theme_overlay_mock.h",
"smooth_scroll_sequencer.cc",
"smooth_scroll_sequencer.h",
"snap_event.cc",
"snap_event.h",
]
if (is_android) {
blink_core_sources_scroll += [ "scrollbar_theme_android.cc" ]
}
if (is_mac) {
blink_core_sources_scroll += [
"mac_scrollbar_animator_impl.h",
"mac_scrollbar_animator_impl.mm",
"scrollbar_theme_mac.cc",
"scrollbar_theme_mac.h",
"web_scrollbar_theme.mm",
]
}
if (is_ios) {
blink_core_sources_scroll += [ "scrollbar_theme_ios.cc" ]
}
if (use_aura) {
blink_core_sources_scroll += [
"scrollbar_theme_aura.cc",
"scrollbar_theme_aura.h",
"scrollbar_theme_fluent.cc",
"scrollbar_theme_fluent.h",
]
}
blink_core_tests_scroll = [
"scroll_animator_test.cc",
"scroll_test.cc",
"scrollable_area_test.cc",
"scrollbar_test_suite.h",
"scrollbar_theme_overlay_test.cc",
]
if (use_aura) {
blink_core_tests_scroll += [ "scrollbar_theme_fluent_unittest.cc" ]
}