chromium/third_party/blink/renderer/core/frame/build.gni

# 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/config.gni")

blink_core_sources_frame = [
  "ad_tracker.cc",
  "ad_tracker.h",
  "ad_script_identifier.cc",
  "ad_script_identifier.h",
  "animation_frame_timing_monitor.cc",
  "animation_frame_timing_monitor.h",
  "attribution_src_loader.cc",
  "attribution_src_loader.h",
  "bar_prop.cc",
  "bar_prop.h",
  "browser_controls.cc",
  "browser_controls.h",
  "coop_access_violation_report_body.cc",
  "coop_access_violation_report_body.h",
  "csp/content_security_policy.cc",
  "csp/content_security_policy.h",
  "csp/content_security_policy_violation_type.h",
  "csp/conversion_util.cc",
  "csp/conversion_util.h",
  "csp/csp_directive_list.cc",
  "csp/csp_directive_list.h",
  "csp/csp_source.cc",
  "csp/csp_source.h",
  "csp/csp_violation_report_body.cc",
  "csp/csp_violation_report_body.h",
  "csp/execution_context_csp_delegate.cc",
  "csp/execution_context_csp_delegate.h",
  "csp/source_list_directive.cc",
  "csp/source_list_directive.h",
  "csp/trusted_types_directive.cc",
  "csp/trusted_types_directive.h",
  "dactyloscoper.cc",
  "dactyloscoper.h",
  "font_matching_metrics.cc",
  "font_matching_metrics.h",
  "frame_content_as_text.h",
  "frame_content_as_text.cc",
  "deprecation/deprecation.cc",
  "deprecation/deprecation.h",
  "deprecation/deprecation_info.h",
  "deprecation/deprecation_report_body.cc",
  "deprecation/deprecation_report_body.h",
  "device_single_window_event_controller.cc",
  "device_single_window_event_controller.h",
  "directive.cc",
  "directive.h",
  "display_cutout_client_impl.cc",
  "display_cutout_client_impl.h",
  "document_policy_violation_report_body.cc",
  "document_policy_violation_report_body.h",
  "dom_viewport.cc",
  "dom_viewport.h",
  "dom_visual_viewport.cc",
  "dom_visual_viewport.h",
  "dom_window.cc",
  "dom_window.h",
  "embedded_content_view.cc",
  "embedded_content_view.h",
  "event_handler_registry.cc",
  "event_handler_registry.h",
  "external.h",
  "permissions_policy_violation_report_body.cc",
  "permissions_policy_violation_report_body.h",
  "find_in_page.cc",
  "find_in_page.h",
  "frame.cc",
  "frame.h",
  "frame_client.h",
  "frame_console.cc",
  "frame_console.h",
  "frame_lifecycle.cc",
  "frame_lifecycle.h",
  "frame_overlay.cc",
  "frame_overlay.h",
  "frame_owner.h",
  "frame_serializer.cc",
  "frame_serializer.h",
  "frame_serializer_delegate_impl.cc",
  "frame_serializer_delegate_impl.h",
  "frame_types.h",
  "frame_view.cc",
  "frame_view.h",
  "frame_view_auto_size_info.cc",
  "frame_view_auto_size_info.h",
  "fullscreen_controller.cc",
  "fullscreen_controller.h",
  "history.cc",
  "history.h",
  "history_util.cc",
  "history_util.h",
  "intervention.cc",
  "intervention.h",
  "intervention_report_body.cc",
  "intervention_report_body.h",
  "layout_subtree_root_list.cc",
  "layout_subtree_root_list.h",
  "local_dom_window.cc",
  "local_dom_window.h",
  "local_frame.cc",
  "local_frame.h",
  "local_frame_client.h",
  "local_frame_mojo_handler.cc",
  "local_frame_mojo_handler.h",
  "local_frame_ukm_aggregator.cc",
  "local_frame_ukm_aggregator.h",
  "local_frame_view.cc",
  "local_frame_view.h",
  "location.cc",
  "location.h",
  "location_report_body.cc",
  "location_report_body.h",
  "navigation_rate_limiter.cc",
  "navigation_rate_limiter.h",
  "navigator.cc",
  "navigator.h",
  "navigator_concurrent_hardware.cc",
  "navigator_concurrent_hardware.h",
  "navigator_device_memory.cc",
  "navigator_device_memory.h",
  "navigator_id.cc",
  "navigator_id.h",
  "navigator_language.cc",
  "navigator_language.h",
  "navigator_on_line.h",
  "navigator_ua.cc",
  "navigator_ua.h",
  "navigator_ua_data.cc",
  "navigator_ua_data.h",
  "navigator_user_activation.cc",
  "navigator_user_activation.h",
  "opened_frame_tracker.cc",
  "opened_frame_tracker.h",
  "overlay_interstitial_ad_detector.cc",
  "overlay_interstitial_ad_detector.h",
  "page_dismissal_scope.cc",
  "page_dismissal_scope.h",
  "page_scale_constraints.cc",
  "page_scale_constraints.h",
  "page_scale_constraints_set.cc",
  "page_scale_constraints_set.h",
  "pagination_state.cc",
  "pagination_state.h",
  "pausable_script_executor.cc",
  "pausable_script_executor.h",
  "performance_monitor.cc",
  "performance_monitor.h",
  "picture_in_picture_controller.cc",
  "picture_in_picture_controller.h",
  "platform_event_controller.cc",
  "platform_event_controller.h",
  "platform_event_dispatcher.cc",
  "platform_event_dispatcher.h",
  "policy_container.cc",
  "policy_container.h",
  "remote_dom_window.cc",
  "remote_dom_window.h",
  "remote_frame.cc",
  "remote_frame.h",
  "remote_frame_client.h",
  "remote_frame_client_impl.cc",
  "remote_frame_client_impl.h",
  "child_frame_compositing_helper.cc",
  "child_frame_compositing_helper.h",
  "child_frame_compositor.h",
  "remote_frame_owner.cc",
  "remote_frame_owner.h",
  "remote_frame_view.cc",
  "remote_frame_view.h",
  "report.cc",
  "report.h",
  "report_body.cc",
  "report_body.h",
  "reporting_context.cc",
  "reporting_context.h",
  "reporting_observer.cc",
  "reporting_observer.h",
  "resize_viewport_anchor.cc",
  "resize_viewport_anchor.h",
  "root_frame_viewport.cc",
  "root_frame_viewport.h",
  "rotation_viewport_anchor.cc",
  "rotation_viewport_anchor.h",
  "savable_resources.cc",
  "savable_resources.h",
  "scheduling.cc",
  "scheduling.h",
  "screen.cc",
  "screen.h",
  "screen_metrics_emulator.cc",
  "screen_metrics_emulator.h",
  "selector_directive.cc",
  "selector_directive.h",
  "settings.cc",
  "settings.h",
  "settings_delegate.cc",
  "settings_delegate.h",
  "settings_string_converter.h",
  "smart_clip.cc",
  "smart_clip.h",
  "sticky_ad_detector.cc",
  "sticky_ad_detector.h",
  "test_report_body.cc",
  "test_report_body.h",
  "use_counter_impl.cc",
  "use_counter_impl.h",
  "user_activation.cc",
  "user_activation.h",
  "viewport_data.cc",
  "viewport_data.h",
  "virtual_keyboard_overlay_changed_observer.cc",
  "virtual_keyboard_overlay_changed_observer.h",
  "visual_viewport.cc",
  "visual_viewport.h",
  "web_feature.h",
  "web_feature_forward.h",
  "web_frame_serializer_impl.cc",
  "web_frame_serializer_impl.h",
  "local_frame_client_impl.cc",
  "local_frame_client_impl.h",
  "web_frame.cc",
  "web_frame_widget_impl.cc",
  "web_frame_widget_impl.h",
  "web_local_frame_client.cc",
  "web_local_frame_impl.cc",
  "web_local_frame_impl.h",
  "web_local_frame_observer.cc",
  "web_remote_frame_impl.cc",
  "web_remote_frame_impl.h",
  "window_event_handlers.h",
  "window_properties.cc",
  "window_properties.h",
  "window_or_worker_global_scope.cc",
  "window_or_worker_global_scope.h",
]

# WindowControlsOverlay
# This uses target_os rather than current_os (which is what is_android is set
# from) for the case of generating the v8 context snapshot for android. When
# generating the snapshot for android, blink is compiled with
# current_os="linux" and target_os="android". Using target_os is necessary as
# we need to compile in the same way as would happen when current_os="android".
if (!target_os_is_android) {
  blink_core_sources_frame += [
    "window_controls_overlay_changed_delegate.cc",
    "window_controls_overlay_changed_delegate.h",
  ]
}

blink_core_tests_frame = [
  "ad_tracker_test.cc",
  "attribution_src_loader_test.cc",
  "browser_controls_test.cc",
  "child_frame_compositing_helper_test.cc",
  "csp/content_security_policy_test.cc",
  "csp/conversion_util_test.cc",
  "csp/csp_directive_list_test.cc",
  "csp/csp_source_test.cc",
  "csp/source_list_directive_test.cc",
  "csp/test_util.h",
  "csp/trusted_types_directive_test.cc",
  "deprecation/deprecation_report_body_test.cc",
  "document_loading_rendering_test.cc",
  "document_policy_violation_report_body_test.cc",
  "find_in_page_test.cc",
  "frame_content_as_text_test.cc",
  "frame_overlay_test.cc",
  "frame_serializer_test.cc",
  "frame_test.cc",
  "history_util_test.cc",
  "local_dom_window_test.cc",
  "local_frame_back_forward_cache_test.cc",
  "local_frame_client_impl_test.cc",
  "local_frame_test.cc",
  "local_frame_ukm_aggregator_test.cc",
  "local_frame_view_test.cc",
  "location_report_body_test.cc",
  "mhtml_archive_test.cc",
  "mhtml_loading_test.cc",
  "performance_monitor_test.cc",
  "policy_container_test.cc",
  "report_test.cc",
  "reporting_context_test.cc",
  "root_frame_viewport_test.cc",
  "rotation_viewport_anchor_test.cc",
  "use_counter_impl_test.cc",
  "visual_viewport_test.cc",
  "web_frame_test.cc",
  "web_frame_widget_test.cc",
  "web_local_frame_client_test.cc",
]