Commit df3ecfde authored by brettw@chromium.org's avatar brettw@chromium.org

Start work on GN build for content/common

Add a skeleton build file for content/common that lists the basic deps, and processes the sources. This can keep track of the deps that have been converted and allows easy testing of the .gypi reading.

Changes content_common.gypi to separate out the public and private sources. The .gypi combines them both into the 'sources' so current users of this file should not be affected. This allows the GN build to declare the public API.

Enhance the gypi-to-gn script to strip conditions and collapse variables to allow the content .gypis to be read in.

Adds some simple BUILD.gn files for dependencies of content/common

Fix typo in accessibility.gyp that I discovered when writing the GN build.

R=jam@chromium.org

Review URL: https://codereview.chromium.org/287233002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271767 0039d316-1c4b-4281-b951-d872f2087c98
parent 6e48a97d
......@@ -26,6 +26,7 @@ group("root") {
"//components/os_crypt",
"//components/startup_metric_utils",
"//components/resources:components_resources",
"//components/tracing",
"//components/translate:translate_core_browser",
"//components/translate:translate_core_common",
"//components/url_matcher",
......@@ -59,6 +60,7 @@ group("root") {
"//third_party/zlib",
"//third_party:jpeg",
"//tools/gn",
"//ui/accessibility",
"//ui/base:ui_base",
"//ui/events",
"//ui/gfx",
......@@ -84,11 +86,13 @@ group("root") {
#"//third_party/WebKit/Source/platform",
"//third_party/WebKit/Source/wtf", # TODO(brettw) re-enable for Android.
"//tools/gn",
# This UI stuff is blocked on Skia.
"//ui/accessibility",
"//ui/base:ui_base",
"//ui/events",
"//ui/gfx",
"//ui/surface", # TODO(brettw): Skia does not build on Android yet.
# Re-enable this when skia is fixed.
"//ui/surface",
]
}
}
......@@ -7,9 +7,12 @@
It is assumed that the file contains a toplevel dictionary, and this script
will return that dictionary as a GN "scope" (see example below). This script
does not know anything about GYP and it will not expand variables or execute
conditions (it will check for the presence of a "conditions" value in the
dictionary and will abort if it is present). It also does not support nested
dictionaries.
conditions.
It will strip conditions blocks.
A variables block at the top level will be flattened so that the variables
appear in the root dictionary. This way they can be returned to the GN code.
Say your_file.gypi looked like this:
{
......@@ -81,8 +84,17 @@ def LoadPythonDictionary(path):
raise Exception("Unexpected error while reading %s: %s" % (path, str(e)))
assert isinstance(file_data, dict), "%s does not eval to a dictionary" % path
assert 'conditions' not in file_data, \
"The file %s has conditions in it, these aren't supported." % path
# Strip any conditions.
if 'conditions' in file_data:
del file_data['conditions']
if 'target_conditions' in file_data:
del file_data['target_conditions']
# Flatten any varaiables to the top level.
if 'variables' in file_data:
file_data.update(file_data['variables'])
del file_data['variables']
# If the contents of the root is a dictionary with exactly one kee
# "variables", promote the contents of that to the top level. Some .gypi
......
# Copyright 2014 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.
source_set("tracing") {
sources = [
"child_trace_message_filter.cc",
"child_trace_message_filter.h",
"tracing_messages.cc",
"tracing_messages.h",
]
deps = [
"//base",
"//ipc",
]
}
# Copyright 2014 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.
# TODO(brettw) this file is a work in progress, it is not currently hooked up
# to the build, but currently represents the state of content/common's deps.
import("//content/common/common.gni")
source_set("common") {
# Only targets in the content tree can depend directly on this target.
visibility = [ "//content/*" ]
sources = rebase_path(content_common_gypi_values.private_common_sources,
".", "//content")
forward_dependent_configs_from = [
# TODO(GYP) convert these dependencies.
#'../third_party/WebKit/public/blink_headers.gyp:blink_headers',
]
deps = [
"//base",
"//components/tracing",
"//gpu/command_buffer/common",
"//net",
"//skia",
"//third_party/icu",
"//ui/accessibility",
"//ui/base:ui_base",
"//ui/gfx",
"//ui/gfx/geometry",
"//url",
# TODO(GYP) convert these dependencies.
#'../third_party/WebKit/public/blink_headers.gyp:blink_headers',
#'../third_party/libjingle/libjingle.gyp:libjingle',
#'../ui/shell_dialogs/shell_dialogs.gyp:shell_dialogs',
]
}
# Copyright 2014 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.
# This file defines the content common gypi values. This file is read once and
# cached, which is a performance optimization that allows us to share the
# results of parsing the .gypi file between the public and private BUILD.gn
# files. It also saves us from duplicating this exec_script call.
content_common_gypi_values = exec_script(
"//build/gypi_to_gn.py",
[ rebase_path("../content_common.gypi") ],
"scope",
[ "../content_common.gypi" ])
......@@ -29,431 +29,439 @@
# headers resolve correctly.
'../third_party/WebKit/public/blink_headers.gyp:blink_headers',
],
'variables': {
'public_common_sources': [
'public/common/assert_matching_enums.cc',
'public/common/bindings_policy.h',
'public/common/child_process_host.h',
'public/common/child_process_host_delegate.cc',
'public/common/child_process_host_delegate.h',
'public/common/child_process_sandbox_support_linux.h',
'public/common/color_suggestion.cc',
'public/common/color_suggestion.h',
'public/common/common_param_traits.cc',
'public/common/common_param_traits.h',
'public/common/common_param_traits_macros.h',
'public/common/console_message_level.h',
'public/common/content_client.cc',
'public/common/content_client.h',
'public/common/content_constants.cc',
'public/common/content_constants.h',
'public/common/content_descriptors.h',
'public/common/content_ipc_logging.h',
'public/common/content_paths.h',
'public/common/content_switches.cc',
'public/common/content_switches.h',
'public/common/context_menu_params.cc',
'public/common/context_menu_params.h',
'public/common/drop_data.cc',
'public/common/drop_data.h',
'public/common/eme_codec.h',
'public/common/favicon_url.cc',
'public/common/favicon_url.h',
'public/common/file_chooser_params.cc',
'public/common/file_chooser_params.h',
'public/common/frame_navigate_params.cc',
'public/common/frame_navigate_params.h',
'public/common/geoposition.cc',
'public/common/geoposition.h',
'public/common/gpu_memory_stats.cc',
'public/common/gpu_memory_stats.h',
'public/common/injection_test_mac.h',
'public/common/injection_test_win.h',
'public/common/javascript_message_type.h',
'public/common/main_function_params.h',
'public/common/media_stream_request.cc',
'public/common/media_stream_request.h',
'public/common/menu_item.cc',
'public/common/menu_item.h',
'public/common/page_state.cc',
'public/common/page_state.h',
'public/common/page_transition_types.cc',
'public/common/page_transition_types.h',
'public/common/page_transition_types_list.h',
'public/common/page_type.h',
'public/common/page_zoom.h',
'public/common/pepper_plugin_info.cc',
'public/common/pepper_plugin_info.h',
'public/common/process_type.h',
'public/common/referrer.h',
'public/common/renderer_preferences.cc',
'public/common/renderer_preferences.h',
'public/common/resource_response.h',
'public/common/result_codes.h',
'public/common/result_codes_list.h',
'public/common/sandbox_init.h',
'public/common/sandbox_linux.h',
'public/common/sandbox_type_mac.h',
'public/common/sandboxed_process_launcher_delegate.cc',
'public/common/sandboxed_process_launcher_delegate.h',
'public/common/security_style.h',
'public/common/show_desktop_notification_params.cc',
'public/common/show_desktop_notification_params.h',
'public/common/signed_certificate_timestamp_id_and_status.cc',
'public/common/signed_certificate_timestamp_id_and_status.h',
'public/common/speech_recognition_error.h',
'public/common/speech_recognition_grammar.h',
'public/common/speech_recognition_result.cc',
'public/common/speech_recognition_result.h',
'public/common/ssl_status.cc',
'public/common/ssl_status.h',
'public/common/stop_find_action.h',
'public/common/storage_quota_params.h',
'public/common/three_d_api_types.h',
'public/common/top_controls_state.h',
'public/common/top_controls_state_list.h',
'public/common/url_constants.cc',
'public/common/url_constants.h',
'public/common/url_fetcher.h',
'public/common/url_utils.cc',
'public/common/url_utils.h',
'public/common/user_agent.h',
'public/common/webplugininfo.cc',
'public/common/webplugininfo.h',
'public/common/window_container_type.cc',
'public/common/window_container_type.h',
'public/common/zygote_fork_delegate_linux.h',
],
'private_common_sources': [
'common/accessibility_messages.h',
'common/all_messages.h',
'common/android/address_parser.cc',
'common/android/address_parser.h',
'common/android/address_parser_internal.cc',
'common/android/address_parser_internal.h',
'common/android/common_jni_registrar.cc',
'common/android/common_jni_registrar.h',
'common/android/gin_java_bridge_value.cc',
'common/android/gin_java_bridge_value.h',
'common/android/hash_set.cc',
'common/android/hash_set.h',
'common/android/surface_texture_lookup.cc',
'common/android/surface_texture_lookup.h',
'common/android/surface_texture_peer.cc',
'common/android/surface_texture_peer.h',
'common/appcache_messages.h',
'common/battery_status_messages.h',
'common/browser_plugin/browser_plugin_constants.cc',
'common/browser_plugin/browser_plugin_constants.h',
'common/browser_plugin/browser_plugin_messages.h',
'common/cc_messages.cc',
'common/cc_messages.h',
'common/child_process_host_impl.cc',
'common/child_process_host_impl.h',
'common/child_process_messages.h',
'common/child_process_sandbox_support_impl_linux.cc',
'common/child_process_sandbox_support_impl_linux.h',
'common/child_process_sandbox_support_impl_shm_linux.cc',
'common/clipboard_format.h',
'common/clipboard_messages.h',
'common/content_constants_internal.cc',
'common/content_constants_internal.h',
'common/content_export.h',
'common/content_ipc_logging.cc',
'common/content_message_generator.cc',
'common/content_message_generator.h',
'common/content_param_traits.cc',
'common/content_param_traits.h',
'common/content_param_traits_macros.h',
'common/content_paths.cc',
'common/content_switches_internal.cc',
'common/content_switches_internal.h',
'common/cookie_data.cc',
'common/cookie_data.h',
'common/cursors/webcursor.cc',
'common/cursors/webcursor.h',
'common/cursors/webcursor_android.cc',
'common/cursors/webcursor_aura.cc',
'common/cursors/webcursor_aurawin.cc',
'common/cursors/webcursor_aurax11.cc',
'common/cursors/webcursor_mac.mm',
'common/cursors/webcursor_ozone.cc',
'common/database_messages.h',
'common/date_time_suggestion.h',
'common/desktop_notification_messages.h',
'common/device_sensors/device_motion_hardware_buffer.h',
'common/device_sensors/device_motion_messages.h',
'common/device_sensors/device_orientation_hardware_buffer.h',
'common/device_sensors/device_orientation_messages.h',
'common/devtools_messages.h',
'common/dom_storage/dom_storage_map.cc',
'common/dom_storage/dom_storage_map.h',
'common/dom_storage/dom_storage_messages.h',
'common/drag_event_source_info.h',
'common/drag_messages.h',
'common/drag_traits.h',
'common/edit_command.h',
'common/file_utilities_messages.h',
'common/fileapi/file_system_messages.h',
'common/fileapi/webblob_messages.h',
'common/font_cache_dispatcher_win.cc',
'common/font_cache_dispatcher_win.h',
'common/font_config_ipc_linux.cc',
'common/font_config_ipc_linux.h',
'common/font_list.cc',
'common/font_list.h',
'common/font_list_android.cc',
'common/font_list_mac.mm',
'common/font_list_ozone.cc',
'common/font_list_pango.cc',
'common/font_list_win.cc',
'common/frame_message_enums.h',
'common/frame_messages.h',
'common/frame_param.cc',
'common/frame_param.h',
'common/frame_param_macros.h',
'common/gamepad_hardware_buffer.h',
'common/gamepad_messages.h',
'common/gamepad_param_traits.cc',
'common/gamepad_param_traits.h',
'common/gamepad_user_gesture.cc',
'common/gamepad_user_gesture.h',
'common/geolocation_messages.h',
'common/gin_java_bridge_messages.h',
'common/gpu/client/command_buffer_proxy_impl.cc',
'common/gpu/client/command_buffer_proxy_impl.h',
'common/gpu/client/context_provider_command_buffer.cc',
'common/gpu/client/context_provider_command_buffer.h',
'common/gpu/client/gl_helper.cc',
'common/gpu/client/gl_helper.h',
'common/gpu/client/gl_helper_readback_support.cc',
'common/gpu/client/gl_helper_readback_support.h',
'common/gpu/client/gl_helper_scaling.cc',
'common/gpu/client/gl_helper_scaling.h',
'common/gpu/client/gpu_channel_host.cc',
'common/gpu/client/gpu_channel_host.h',
'common/gpu/client/gpu_memory_buffer_impl.cc',
'common/gpu/client/gpu_memory_buffer_impl.h',
'common/gpu/client/gpu_memory_buffer_impl_android.cc',
'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
'common/gpu/client/gpu_memory_buffer_impl_mac.cc',
'common/gpu/client/gpu_memory_buffer_impl_shm.cc',
'common/gpu/client/gpu_memory_buffer_impl_shm.h',
'common/gpu/client/gpu_memory_buffer_impl_win.cc',
'common/gpu/client/gpu_video_decode_accelerator_host.cc',
'common/gpu/client/gpu_video_decode_accelerator_host.h',
'common/gpu/client/gpu_video_encode_accelerator_host.cc',
'common/gpu/client/gpu_video_encode_accelerator_host.h',
'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
'common/gpu/devtools_gpu_agent.cc',
'common/gpu/devtools_gpu_agent.h',
'common/gpu/devtools_gpu_instrumentation.cc',
'common/gpu/devtools_gpu_instrumentation.h',
'common/gpu/gpu_channel.cc',
'common/gpu/gpu_channel.h',
'common/gpu/gpu_channel_manager.cc',
'common/gpu/gpu_channel_manager.h',
'common/gpu/gpu_command_buffer_stub.cc',
'common/gpu/gpu_command_buffer_stub.h',
'common/gpu/gpu_config.h',
'common/gpu/gpu_memory_manager.cc',
'common/gpu/gpu_memory_manager.h',
'common/gpu/gpu_memory_manager_client.cc',
'common/gpu/gpu_memory_manager_client.h',
'common/gpu/gpu_memory_tracking.cc',
'common/gpu/gpu_memory_tracking.h',
'common/gpu/gpu_memory_uma_stats.h',
'common/gpu/gpu_messages.h',
'common/gpu/gpu_process_launch_causes.h',
'common/gpu/gpu_surface_lookup.cc',
'common/gpu/gpu_surface_lookup.h',
'common/gpu/gpu_watchdog.h',
'common/gpu/image_transport_surface.cc',
'common/gpu/image_transport_surface.h',
'common/gpu/image_transport_surface_android.cc',
'common/gpu/image_transport_surface_linux.cc',
'common/gpu/image_transport_surface_mac.cc',
'common/gpu/image_transport_surface_win.cc',
'common/gpu/media/gpu_video_decode_accelerator.cc',
'common/gpu/media/gpu_video_decode_accelerator.h',
'common/gpu/media/gpu_video_encode_accelerator.cc',
'common/gpu/media/gpu_video_encode_accelerator.h',
'common/gpu/media/video_decode_accelerator_impl.cc',
'common/gpu/media/video_decode_accelerator_impl.h',
'common/gpu/stream_texture_android.cc',
'common/gpu/stream_texture_android.h',
'common/gpu/sync_point_manager.cc',
'common/gpu/sync_point_manager.h',
'common/gpu/texture_image_transport_surface.cc',
'common/gpu/texture_image_transport_surface.h',
'common/handle_enumerator_win.cc',
'common/handle_enumerator_win.h',
'common/host_shared_bitmap_manager.cc',
'common/host_shared_bitmap_manager.h',
'common/image_messages.h',
'common/indexed_db/indexed_db_constants.h',
'common/indexed_db/indexed_db_key.cc',
'common/indexed_db/indexed_db_key.h',
'common/indexed_db/indexed_db_key_path.cc',
'common/indexed_db/indexed_db_key_path.h',
'common/indexed_db/indexed_db_key_range.cc',
'common/indexed_db/indexed_db_key_range.h',
'common/indexed_db/indexed_db_messages.h',
'common/indexed_db/indexed_db_param_traits.cc',
'common/indexed_db/indexed_db_param_traits.h',
'common/input/did_overscroll_params.h',
'common/input/gesture_event_stream_validator.cc',
'common/input/gesture_event_stream_validator.h',
'common/input/input_event.cc',
'common/input/input_event.h',
'common/input/input_event_stream_validator.cc',
'common/input/input_event_stream_validator.h',
'common/input/input_param_traits.cc',
'common/input/input_param_traits.h',
'common/input/scoped_web_input_event.cc',
'common/input/scoped_web_input_event.h',
'common/input/synthetic_gesture_packet.cc',
'common/input/synthetic_gesture_packet.h',
'common/input/synthetic_gesture_params.cc',
'common/input/synthetic_gesture_params.h',
'common/input/synthetic_pinch_gesture_params.cc',
'common/input/synthetic_pinch_gesture_params.h',
'common/input/synthetic_smooth_scroll_gesture_params.cc',
'common/input/synthetic_smooth_scroll_gesture_params.h',
'common/input/synthetic_tap_gesture_params.cc',
'common/input/synthetic_tap_gesture_params.h',
'common/input/synthetic_web_input_event_builders.cc',
'common/input/synthetic_web_input_event_builders.h',
'common/input/web_input_event_traits.cc',
'common/input/web_input_event_traits.h',
'common/input/web_touch_event_traits.cc',
'common/input/web_touch_event_traits.h',
'common/input_messages.h',
'common/inter_process_time_ticks_converter.cc',
'common/inter_process_time_ticks_converter.h',
'common/java_bridge_messages.h',
'common/mac/attributed_string_coder.h',
'common/mac/attributed_string_coder.mm',
'common/mac/font_descriptor.h',
'common/mac/font_descriptor.mm',
'common/mac/font_loader.h',
'common/mac/font_loader.mm',
'common/media/audio_messages.h',
'common/media/cdm_messages.h',
'common/media/cdm_messages_enums.h',
'common/media/media_param_traits.cc',
'common/media/media_param_traits.h',
'common/media/media_player_messages_android.h',
'common/media/media_player_messages_enums_android.h',
'common/media/media_stream_messages.h',
'common/media/media_stream_options.cc',
'common/media/media_stream_options.h',
'common/media/media_stream_track_metrics_host_messages.h',
'common/media/midi_messages.h',
'common/media/video_capture.h',
'common/media/video_capture_messages.h',
'common/media/webrtc_identity_messages.h',
'common/memory_benchmark_messages.h',
'common/message_port_messages.h',
'common/message_router.cc',
'common/message_router.h',
'common/mime_registry_messages.h',
'common/mojo/mojo_messages.h',
'common/mojo/mojo_service_names.cc',
'common/mojo/mojo_service_names.h',
'common/navigation_gesture.h',
'common/net/url_fetcher.cc',
'common/net/url_request_user_data.cc',
'common/net/url_request_user_data.h',
'common/one_writer_seqlock.cc',
'common/one_writer_seqlock.h',
'common/p2p_messages.h',
'common/page_state_serialization.cc',
'common/page_state_serialization.h',
'common/page_zoom.cc',
'common/pepper_messages.h',
'common/pepper_plugin_list.cc',
'common/pepper_plugin_list.h',
'common/pepper_renderer_instance_data.cc',
'common/pepper_renderer_instance_data.h',
'common/plugin_carbon_interpose_constants_mac.cc',
'common/plugin_carbon_interpose_constants_mac.h',
'common/plugin_constants_win.cc',
'common/plugin_constants_win.h',
'common/plugin_list.cc',
'common/plugin_list.h',
'common/plugin_list_mac.mm',
'common/plugin_list_posix.cc',
'common/plugin_list_win.cc',
'common/plugin_process_messages.h',
'common/power_monitor_messages.h',
'common/process_type.cc',
'common/push_messaging_messages.h',
'common/quota_messages.h',
'common/resource_messages.cc',
'common/resource_messages.h',
'common/resource_request_body.cc',
'common/resource_request_body.h',
'common/sandbox_init_mac.cc',
'common/sandbox_init_mac.h',
'common/sandbox_init_win.cc',
'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
'common/sandbox_linux/bpf_gpu_policy_linux.cc',
'common/sandbox_linux/bpf_gpu_policy_linux.h',
'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
'common/sandbox_linux/bpf_ppapi_policy_linux.h',
'common/sandbox_linux/bpf_renderer_policy_linux.cc',
'common/sandbox_linux/bpf_renderer_policy_linux.h',
'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
'common/sandbox_linux/sandbox_init_linux.cc',
'common/sandbox_linux/sandbox_linux.cc',
'common/sandbox_linux/sandbox_linux.h',
'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
'common/sandbox_mac.h',
'common/sandbox_mac.mm',
'common/sandbox_util.cc',
'common/sandbox_util.h',
'common/sandbox_win.cc',
'common/sandbox_win.h',
'common/savable_url_schemes.cc',
'common/savable_url_schemes.h',
'common/screen_orientation_messages.h',
'common/service_worker/embedded_worker_messages.h',
'common/service_worker/service_worker_messages.h',
'common/service_worker/service_worker_status_code.cc',
'common/service_worker/service_worker_status_code.h',
'common/service_worker/service_worker_types.cc',
'common/service_worker/service_worker_types.h',
'common/set_process_title.cc',
'common/set_process_title.h',
'common/set_process_title_linux.cc',
'common/set_process_title_linux.h',
'common/socket_stream.h',
'common/socket_stream_handle_data.h',
'common/socket_stream_messages.h',
'common/speech_recognition_messages.h',
'common/ssl_status_serialization.cc',
'common/ssl_status_serialization.h',
'common/swapped_out_messages.cc',
'common/swapped_out_messages.h',
'common/text_input_client_messages.h',
'common/url_schemes.cc',
'common/url_schemes.h',
'common/user_agent.cc',
'common/user_agent_ios.mm',
'common/utility_messages.h',
'common/view_message_enums.h',
'common/view_messages.h',
'common/webplugin_geometry.cc',
'common/webplugin_geometry.h',
'common/websocket.cc',
'common/websocket.h',
'common/websocket_messages.h',
'common/worker_messages.h',
'common/zygote_commands_linux.h',
],
},
'sources': [
'public/common/assert_matching_enums.cc',
'public/common/bindings_policy.h',
'public/common/child_process_host.h',
'public/common/child_process_host_delegate.cc',
'public/common/child_process_host_delegate.h',
'public/common/child_process_sandbox_support_linux.h',
'public/common/color_suggestion.cc',
'public/common/color_suggestion.h',
'public/common/common_param_traits.cc',
'public/common/common_param_traits.h',
'public/common/common_param_traits_macros.h',
'public/common/console_message_level.h',
'public/common/content_client.cc',
'public/common/content_client.h',
'public/common/content_constants.cc',
'public/common/content_constants.h',
'public/common/content_descriptors.h',
'public/common/content_ipc_logging.h',
'public/common/content_paths.h',
'public/common/content_switches.cc',
'public/common/content_switches.h',
'public/common/context_menu_params.cc',
'public/common/context_menu_params.h',
'public/common/drop_data.cc',
'public/common/drop_data.h',
'public/common/eme_codec.h',
'public/common/favicon_url.cc',
'public/common/favicon_url.h',
'public/common/file_chooser_params.cc',
'public/common/file_chooser_params.h',
'public/common/frame_navigate_params.cc',
'public/common/frame_navigate_params.h',
'public/common/geoposition.cc',
'public/common/geoposition.h',
'public/common/gpu_memory_stats.cc',
'public/common/gpu_memory_stats.h',
'public/common/injection_test_mac.h',
'public/common/injection_test_win.h',
'public/common/javascript_message_type.h',
'public/common/main_function_params.h',
'public/common/media_stream_request.cc',
'public/common/media_stream_request.h',
'public/common/menu_item.cc',
'public/common/menu_item.h',
'public/common/page_state.cc',
'public/common/page_state.h',
'public/common/page_transition_types.cc',
'public/common/page_transition_types.h',
'public/common/page_transition_types_list.h',
'public/common/page_type.h',
'public/common/page_zoom.h',
'public/common/pepper_plugin_info.cc',
'public/common/pepper_plugin_info.h',
'public/common/process_type.h',
'public/common/referrer.h',
'public/common/renderer_preferences.cc',
'public/common/renderer_preferences.h',
'public/common/resource_response.h',
'public/common/result_codes.h',
'public/common/result_codes_list.h',
'public/common/sandbox_init.h',
'public/common/sandbox_linux.h',
'public/common/sandbox_type_mac.h',
'public/common/sandboxed_process_launcher_delegate.cc',
'public/common/sandboxed_process_launcher_delegate.h',
'public/common/security_style.h',
'public/common/show_desktop_notification_params.cc',
'public/common/show_desktop_notification_params.h',
'public/common/signed_certificate_timestamp_id_and_status.cc',
'public/common/signed_certificate_timestamp_id_and_status.h',
'public/common/speech_recognition_error.h',
'public/common/speech_recognition_grammar.h',
'public/common/speech_recognition_result.cc',
'public/common/speech_recognition_result.h',
'public/common/ssl_status.cc',
'public/common/ssl_status.h',
'public/common/stop_find_action.h',
'public/common/storage_quota_params.h',
'public/common/three_d_api_types.h',
'public/common/top_controls_state.h',
'public/common/top_controls_state_list.h',
'public/common/url_constants.cc',
'public/common/url_constants.h',
'public/common/url_fetcher.h',
'public/common/url_utils.cc',
'public/common/url_utils.h',
'public/common/user_agent.h',
'public/common/webplugininfo.cc',
'public/common/webplugininfo.h',
'public/common/window_container_type.cc',
'public/common/window_container_type.h',
'public/common/zygote_fork_delegate_linux.h',
'common/accessibility_messages.h',
'common/all_messages.h',
'common/android/address_parser.cc',
'common/android/address_parser.h',
'common/android/address_parser_internal.cc',
'common/android/address_parser_internal.h',
'common/android/common_jni_registrar.cc',
'common/android/common_jni_registrar.h',
'common/android/gin_java_bridge_value.cc',
'common/android/gin_java_bridge_value.h',
'common/android/hash_set.cc',
'common/android/hash_set.h',
'common/android/surface_texture_lookup.cc',
'common/android/surface_texture_lookup.h',
'common/android/surface_texture_peer.cc',
'common/android/surface_texture_peer.h',
'common/appcache_messages.h',
'common/battery_status_messages.h',
'common/browser_plugin/browser_plugin_constants.cc',
'common/browser_plugin/browser_plugin_constants.h',
'common/browser_plugin/browser_plugin_messages.h',
'common/cc_messages.cc',
'common/cc_messages.h',
'common/child_process_host_impl.cc',
'common/child_process_host_impl.h',
'common/child_process_messages.h',
'common/child_process_sandbox_support_impl_linux.cc',
'common/child_process_sandbox_support_impl_linux.h',
'common/child_process_sandbox_support_impl_shm_linux.cc',
'common/clipboard_format.h',
'common/clipboard_messages.h',
'common/content_constants_internal.cc',
'common/content_constants_internal.h',
'common/content_export.h',
'common/content_ipc_logging.cc',
'common/content_message_generator.cc',
'common/content_message_generator.h',
'common/content_param_traits.cc',
'common/content_param_traits.h',
'common/content_param_traits_macros.h',
'common/content_paths.cc',
'common/content_switches_internal.cc',
'common/content_switches_internal.h',
'common/cookie_data.cc',
'common/cookie_data.h',
'common/cursors/webcursor.cc',
'common/cursors/webcursor.h',
'common/cursors/webcursor_android.cc',
'common/cursors/webcursor_aura.cc',
'common/cursors/webcursor_aurawin.cc',
'common/cursors/webcursor_aurax11.cc',
'common/cursors/webcursor_mac.mm',
'common/cursors/webcursor_ozone.cc',
'common/database_messages.h',
'common/date_time_suggestion.h',
'common/desktop_notification_messages.h',
'common/device_sensors/device_motion_hardware_buffer.h',
'common/device_sensors/device_motion_messages.h',
'common/device_sensors/device_orientation_hardware_buffer.h',
'common/device_sensors/device_orientation_messages.h',
'common/devtools_messages.h',
'common/dom_storage/dom_storage_map.cc',
'common/dom_storage/dom_storage_map.h',
'common/dom_storage/dom_storage_messages.h',
'common/drag_event_source_info.h',
'common/drag_messages.h',
'common/drag_traits.h',
'common/edit_command.h',
'common/file_utilities_messages.h',
'common/fileapi/file_system_messages.h',
'common/fileapi/webblob_messages.h',
'common/font_cache_dispatcher_win.cc',
'common/font_cache_dispatcher_win.h',
'common/font_config_ipc_linux.cc',
'common/font_config_ipc_linux.h',
'common/font_list.cc',
'common/font_list.h',
'common/font_list_android.cc',
'common/font_list_mac.mm',
'common/font_list_ozone.cc',
'common/font_list_pango.cc',
'common/font_list_win.cc',
'common/frame_message_enums.h',
'common/frame_messages.h',
'common/frame_param.cc',
'common/frame_param.h',
'common/frame_param_macros.h',
'common/gamepad_hardware_buffer.h',
'common/gamepad_messages.h',
'common/gamepad_param_traits.cc',
'common/gamepad_param_traits.h',
'common/gamepad_user_gesture.cc',
'common/gamepad_user_gesture.h',
'common/geolocation_messages.h',
'common/gin_java_bridge_messages.h',
'common/gpu/client/command_buffer_proxy_impl.cc',
'common/gpu/client/command_buffer_proxy_impl.h',
'common/gpu/client/context_provider_command_buffer.cc',
'common/gpu/client/context_provider_command_buffer.h',
'common/gpu/client/gl_helper.cc',
'common/gpu/client/gl_helper.h',
'common/gpu/client/gl_helper_readback_support.cc',
'common/gpu/client/gl_helper_readback_support.h',
'common/gpu/client/gl_helper_scaling.cc',
'common/gpu/client/gl_helper_scaling.h',
'common/gpu/client/gpu_channel_host.cc',
'common/gpu/client/gpu_channel_host.h',
'common/gpu/client/gpu_memory_buffer_impl.cc',
'common/gpu/client/gpu_memory_buffer_impl.h',
'common/gpu/client/gpu_memory_buffer_impl_android.cc',
'common/gpu/client/gpu_memory_buffer_impl_linux.cc',
'common/gpu/client/gpu_memory_buffer_impl_mac.cc',
'common/gpu/client/gpu_memory_buffer_impl_shm.cc',
'common/gpu/client/gpu_memory_buffer_impl_shm.h',
'common/gpu/client/gpu_memory_buffer_impl_win.cc',
'common/gpu/client/gpu_video_decode_accelerator_host.cc',
'common/gpu/client/gpu_video_decode_accelerator_host.h',
'common/gpu/client/gpu_video_encode_accelerator_host.cc',
'common/gpu/client/gpu_video_encode_accelerator_host.h',
'common/gpu/client/webgraphicscontext3d_command_buffer_impl.cc',
'common/gpu/client/webgraphicscontext3d_command_buffer_impl.h',
'common/gpu/devtools_gpu_agent.cc',
'common/gpu/devtools_gpu_agent.h',
'common/gpu/devtools_gpu_instrumentation.cc',
'common/gpu/devtools_gpu_instrumentation.h',
'common/gpu/gpu_channel.cc',
'common/gpu/gpu_channel.h',
'common/gpu/gpu_channel_manager.cc',
'common/gpu/gpu_channel_manager.h',
'common/gpu/gpu_command_buffer_stub.cc',
'common/gpu/gpu_command_buffer_stub.h',
'common/gpu/gpu_config.h',
'common/gpu/gpu_memory_manager.cc',
'common/gpu/gpu_memory_manager.h',
'common/gpu/gpu_memory_manager_client.cc',
'common/gpu/gpu_memory_manager_client.h',
'common/gpu/gpu_memory_tracking.cc',
'common/gpu/gpu_memory_tracking.h',
'common/gpu/gpu_memory_uma_stats.h',
'common/gpu/gpu_messages.h',
'common/gpu/gpu_process_launch_causes.h',
'common/gpu/gpu_surface_lookup.cc',
'common/gpu/gpu_surface_lookup.h',
'common/gpu/gpu_watchdog.h',
'common/gpu/image_transport_surface.cc',
'common/gpu/image_transport_surface.h',
'common/gpu/image_transport_surface_android.cc',
'common/gpu/image_transport_surface_linux.cc',
'common/gpu/image_transport_surface_mac.cc',
'common/gpu/image_transport_surface_win.cc',
'common/gpu/media/gpu_video_decode_accelerator.cc',
'common/gpu/media/gpu_video_decode_accelerator.h',
'common/gpu/media/gpu_video_encode_accelerator.cc',
'common/gpu/media/gpu_video_encode_accelerator.h',
'common/gpu/media/video_decode_accelerator_impl.cc',
'common/gpu/media/video_decode_accelerator_impl.h',
'common/gpu/stream_texture_android.cc',
'common/gpu/stream_texture_android.h',
'common/gpu/sync_point_manager.cc',
'common/gpu/sync_point_manager.h',
'common/gpu/texture_image_transport_surface.cc',
'common/gpu/texture_image_transport_surface.h',
'common/handle_enumerator_win.cc',
'common/handle_enumerator_win.h',
'common/host_shared_bitmap_manager.cc',
'common/host_shared_bitmap_manager.h',
'common/image_messages.h',
'common/indexed_db/indexed_db_constants.h',
'common/indexed_db/indexed_db_key.cc',
'common/indexed_db/indexed_db_key.h',
'common/indexed_db/indexed_db_key_path.cc',
'common/indexed_db/indexed_db_key_path.h',
'common/indexed_db/indexed_db_key_range.cc',
'common/indexed_db/indexed_db_key_range.h',
'common/indexed_db/indexed_db_messages.h',
'common/indexed_db/indexed_db_param_traits.cc',
'common/indexed_db/indexed_db_param_traits.h',
'common/input/did_overscroll_params.h',
'common/input/gesture_event_stream_validator.cc',
'common/input/gesture_event_stream_validator.h',
'common/input/input_event.cc',
'common/input/input_event.h',
'common/input/input_event_stream_validator.cc',
'common/input/input_event_stream_validator.h',
'common/input/input_param_traits.cc',
'common/input/input_param_traits.h',
'common/input/scoped_web_input_event.cc',
'common/input/scoped_web_input_event.h',
'common/input/synthetic_gesture_packet.cc',
'common/input/synthetic_gesture_packet.h',
'common/input/synthetic_gesture_params.cc',
'common/input/synthetic_gesture_params.h',
'common/input/synthetic_pinch_gesture_params.cc',
'common/input/synthetic_pinch_gesture_params.h',
'common/input/synthetic_smooth_scroll_gesture_params.cc',
'common/input/synthetic_smooth_scroll_gesture_params.h',
'common/input/synthetic_tap_gesture_params.cc',
'common/input/synthetic_tap_gesture_params.h',
'common/input/synthetic_web_input_event_builders.cc',
'common/input/synthetic_web_input_event_builders.h',
'common/input/web_input_event_traits.cc',
'common/input/web_input_event_traits.h',
'common/input/web_touch_event_traits.cc',
'common/input/web_touch_event_traits.h',
'common/input_messages.h',
'common/inter_process_time_ticks_converter.cc',
'common/inter_process_time_ticks_converter.h',
'common/java_bridge_messages.h',
'common/mac/attributed_string_coder.h',
'common/mac/attributed_string_coder.mm',
'common/mac/font_descriptor.h',
'common/mac/font_descriptor.mm',
'common/mac/font_loader.h',
'common/mac/font_loader.mm',
'common/media/audio_messages.h',
'common/media/cdm_messages.h',
'common/media/cdm_messages_enums.h',
'common/media/media_param_traits.cc',
'common/media/media_param_traits.h',
'common/media/media_player_messages_android.h',
'common/media/media_player_messages_enums_android.h',
'common/media/media_stream_messages.h',
'common/media/media_stream_options.cc',
'common/media/media_stream_options.h',
'common/media/media_stream_track_metrics_host_messages.h',
'common/media/midi_messages.h',
'common/media/video_capture.h',
'common/media/video_capture_messages.h',
'common/media/webrtc_identity_messages.h',
'common/memory_benchmark_messages.h',
'common/message_port_messages.h',
'common/message_router.cc',
'common/message_router.h',
'common/mime_registry_messages.h',
'common/mojo/mojo_messages.h',
'common/mojo/mojo_service_names.cc',
'common/mojo/mojo_service_names.h',
'common/navigation_gesture.h',
'common/net/url_fetcher.cc',
'common/net/url_request_user_data.cc',
'common/net/url_request_user_data.h',
'common/one_writer_seqlock.cc',
'common/one_writer_seqlock.h',
'common/p2p_messages.h',
'common/page_state_serialization.cc',
'common/page_state_serialization.h',
'common/page_zoom.cc',
'common/pepper_messages.h',
'common/pepper_plugin_list.cc',
'common/pepper_plugin_list.h',
'common/pepper_renderer_instance_data.cc',
'common/pepper_renderer_instance_data.h',
'common/plugin_carbon_interpose_constants_mac.cc',
'common/plugin_carbon_interpose_constants_mac.h',
'common/plugin_constants_win.cc',
'common/plugin_constants_win.h',
'common/plugin_list.cc',
'common/plugin_list.h',
'common/plugin_list_mac.mm',
'common/plugin_list_posix.cc',
'common/plugin_list_win.cc',
'common/plugin_process_messages.h',
'common/power_monitor_messages.h',
'common/process_type.cc',
'common/push_messaging_messages.h',
'common/quota_messages.h',
'common/resource_messages.cc',
'common/resource_messages.h',
'common/resource_request_body.cc',
'common/resource_request_body.h',
'common/sandbox_init_mac.cc',
'common/sandbox_init_mac.h',
'common/sandbox_init_win.cc',
'common/sandbox_linux/android/sandbox_bpf_base_policy_android.cc',
'common/sandbox_linux/android/sandbox_bpf_base_policy_android.h',
'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.cc',
'common/sandbox_linux/bpf_cros_arm_gpu_policy_linux.h',
'common/sandbox_linux/bpf_gpu_policy_linux.cc',
'common/sandbox_linux/bpf_gpu_policy_linux.h',
'common/sandbox_linux/bpf_ppapi_policy_linux.cc',
'common/sandbox_linux/bpf_ppapi_policy_linux.h',
'common/sandbox_linux/bpf_renderer_policy_linux.cc',
'common/sandbox_linux/bpf_renderer_policy_linux.h',
'common/sandbox_linux/sandbox_bpf_base_policy_linux.cc',
'common/sandbox_linux/sandbox_bpf_base_policy_linux.h',
'common/sandbox_linux/sandbox_init_linux.cc',
'common/sandbox_linux/sandbox_linux.cc',
'common/sandbox_linux/sandbox_linux.h',
'common/sandbox_linux/sandbox_seccomp_bpf_linux.cc',
'common/sandbox_linux/sandbox_seccomp_bpf_linux.h',
'common/sandbox_mac.h',
'common/sandbox_mac.mm',
'common/sandbox_util.cc',
'common/sandbox_util.h',
'common/sandbox_win.cc',
'common/sandbox_win.h',
'common/savable_url_schemes.cc',
'common/savable_url_schemes.h',
'common/screen_orientation_messages.h',
'common/service_worker/embedded_worker_messages.h',
'common/service_worker/service_worker_messages.h',
'common/service_worker/service_worker_status_code.cc',
'common/service_worker/service_worker_status_code.h',
'common/service_worker/service_worker_types.cc',
'common/service_worker/service_worker_types.h',
'common/set_process_title.cc',
'common/set_process_title.h',
'common/set_process_title_linux.cc',
'common/set_process_title_linux.h',
'common/socket_stream.h',
'common/socket_stream_handle_data.h',
'common/socket_stream_messages.h',
'common/speech_recognition_messages.h',
'common/ssl_status_serialization.cc',
'common/ssl_status_serialization.h',
'common/swapped_out_messages.cc',
'common/swapped_out_messages.h',
'common/text_input_client_messages.h',
'common/url_schemes.cc',
'common/url_schemes.h',
'common/user_agent.cc',
'common/user_agent_ios.mm',
'common/utility_messages.h',
'common/view_message_enums.h',
'common/view_messages.h',
'common/webplugin_geometry.cc',
'common/webplugin_geometry.h',
'common/websocket.cc',
'common/websocket.h',
'common/websocket_messages.h',
'common/worker_messages.h',
'common/zygote_commands_linux.h',
'<@(public_common_sources)',
'<@(private_common_sources)',
],
'target_conditions': [
['OS=="android" and <(use_seccomp_bpf)==1', {
......
# Copyright 2014 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("//content/common/common.gni")
source_set("common") {
sources = rebase_path(content_common_gypi_values.public_common_sources,
".", "//content")
deps = [
"//content/common",
]
}
......@@ -693,7 +693,7 @@ const char kPublic_Help[] =
" visibility list, the include will be rejected.\n"
"\n"
" GN only knows about files declared in the \"sources\" and \"public\"\n"
" sections of targets. If a file is included that is now known to the\n"
" sections of targets. If a file is included that is not known to the\n"
" build, it will be allowed.\n"
"\n"
"Examples:\n"
......
# Copyright 2014 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("//extensions/generated_extensions_api.gni")
component("accessibility") {
sources = [
"ax_node.cc",
"ax_node.h",
"ax_node_data.cc",
"ax_node_data.h",
"ax_serializable_tree.cc",
"ax_serializable_tree.h",
"ax_text_utils.cc",
"ax_text_utils.h",
"ax_tree.cc",
"ax_tree.h",
"ax_tree_serializer.cc",
"ax_tree_serializer.h",
"ax_tree_source.h",
"ax_tree_update.cc",
"ax_tree_update.h",
"ax_view_state.cc",
"ax_view_state.h",
]
defines = [ "ACCESSIBILITY_IMPLEMENTATION" ]
forward_dependent_configs_from = [ ":ax_gen" ]
deps = [
":ax_gen",
"//base",
"//ui/gfx",
"//ui/gfx/geometry",
]
}
test("accessibility_unittests") {
sources = [
"ax_generated_tree_unittest.cc",
"ax_tree_serializer_unittest.cc",
"ax_tree_unittest.cc",
]
deps = [
":accessibility",
"//base",
"//base/test:run_all_unittests",
"//testing/gtest",
"//ui/gfx",
"//ui/gfx/geometry",
]
}
generated_extensions_api("ax_gen") {
sources = [ "ax_enums.idl" ]
root_namespace = ""
impl_dir = "."
}
......@@ -42,7 +42,7 @@
'ax_tree_update.cc',
'ax_tree_update.h',
'ax_view_state.cc',
'ax_view_state.cc',
'ax_view_state.h',
]
},
{
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment