| # Copyright 2018 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("//mojo/public/tools/bindings/mojom.gni") |
| import("//third_party/blink/public/public_features.gni") |
| |
| if (is_android) { |
| import("//build/config/android/config.gni") |
| } |
| |
| # This target includes all mojom interfaces which can be used from |
| # renderer/platform. In particular these mojom interfaces can't use types that |
| # are typemapped to a type in renderer/core. |
| mojom("mojom_platform") { |
| generate_java = true |
| sources = [ |
| "ad_tagging/ad_frame.mojom", |
| "agents/agent_metrics.mojom", |
| "app_banner/app_banner.mojom", |
| "appcache/appcache.mojom", |
| "appcache/appcache_info.mojom", |
| "array_buffer/array_buffer_contents.mojom", |
| "associated_interfaces/associated_interfaces.mojom", |
| "autoplay/autoplay.mojom", |
| "background_fetch/background_fetch.mojom", |
| "background_sync/background_sync.mojom", |
| "badging/badging.mojom", |
| "browser_interface_broker.mojom", |
| "cache_storage/cache_storage.mojom", |
| "choosers/color_chooser.mojom", |
| "choosers/date_time_chooser.mojom", |
| "choosers/file_chooser.mojom", |
| "choosers/popup_menu.mojom", |
| "clipboard/clipboard.mojom", |
| "clipboard/raw_clipboard.mojom", |
| "commit_result/commit_result.mojom", |
| "contacts/contacts_manager.mojom", |
| "content_index/content_index.mojom", |
| "conversions/conversions.mojom", |
| "cookie_store/cookie_store.mojom", |
| "crash/crash_memory_metrics_reporter.mojom", |
| "credentialmanager/credential_manager.mojom", |
| "devtools/console_message.mojom", |
| "devtools/devtools_agent.mojom", |
| "devtools/devtools_frontend.mojom", |
| "devtools/inspector_issue.mojom", |
| "disk_allocator.mojom", |
| "favicon/favicon_url.mojom", |
| "feature_observer/feature_observer.mojom", |
| "feature_policy/document_policy_feature.mojom", |
| "feature_policy/feature_policy.mojom", |
| "feature_policy/feature_policy_feature.mojom", |
| "feature_policy/policy_disposition.mojom", |
| "feature_policy/policy_value.mojom", |
| "fetch/fetch_api_request.mojom", |
| "fetch/fetch_api_response.mojom", |
| "file/file_utilities.mojom", |
| "filesystem/file_system.mojom", |
| "geolocation/geolocation_service.mojom", |
| "hid/hid.mojom", |
| "hyphenation/hyphenation.mojom", |
| "idle/idle_manager.mojom", |
| "image_downloader/image_downloader.mojom", |
| "input/focus_type.mojom", |
| "input/gesture_event.mojom", |
| "input/input_event.mojom", |
| "input/input_event_result.mojom", |
| "input/input_handler.mojom", |
| "input/pointer_lock_context.mojom", |
| "input/pointer_lock_result.mojom", |
| "input/scroll_direction.mojom", |
| "input/synchronous_compositor.mojom", |
| "input/touch_event.mojom", |
| "insecure_input/insecure_input_service.mojom", |
| "keyboard_lock/keyboard_lock.mojom", |
| "leak_detector/leak_detector.mojom", |
| "loader/code_cache.mojom", |
| "loader/content_security_notifier.mojom", |
| "loader/fetch_client_settings_object.mojom", |
| "loader/navigation_predictor.mojom", |
| "loader/pause_subresource_loading_handle.mojom", |
| "loader/previews_resource_loading_hints.mojom", |
| "loader/request_context_frame_type.mojom", |
| "loader/resource_load_info.mojom", |
| "loader/resource_load_info_notifier.mojom", |
| "loader/url_loader_factory_bundle.mojom", |
| "locks/lock_manager.mojom", |
| "manifest/display_mode.mojom", |
| "manifest/manifest.mojom", |
| "manifest/manifest_manager.mojom", |
| "manifest/manifest_observer.mojom", |
| "mediastream/aec_dump.mojom", |
| "mediastream/media_devices.mojom", |
| "mediastream/media_stream.mojom", |
| "mime/mime_registry.mojom", |
| "native_file_system/native_file_system_directory_handle.mojom", |
| "native_file_system/native_file_system_error.mojom", |
| "native_file_system/native_file_system_file_handle.mojom", |
| "native_file_system/native_file_system_file_writer.mojom", |
| "native_file_system/native_file_system_manager.mojom", |
| "native_file_system/native_file_system_transfer_token.mojom", |
| "native_io/native_io.mojom", |
| "notifications/notification.mojom", |
| "notifications/notification_service.mojom", |
| "oom_intervention/oom_intervention.mojom", |
| "page/display_cutout.mojom", |
| "page/drag.mojom", |
| "page/page.mojom", |
| "page/page_visibility_state.mojom", |
| "page/spatial_navigation.mojom", |
| "page/widget.mojom", |
| "payments/payment_app.mojom", |
| "peerconnection/peer_connection_tracker.mojom", |
| "permissions/permission.mojom", |
| "permissions/permission_automation.mojom", |
| "permissions/permission_status.mojom", |
| "picture_in_picture/picture_in_picture.mojom", |
| "plugins/plugin_registry.mojom", |
| "prerender/prerender.mojom", |
| "presentation/presentation.mojom", |
| "push_messaging/push_messaging.mojom", |
| "push_messaging/push_messaging_status.mojom", |
| "quota/quota_manager_host.mojom", |
| "quota/quota_types.mojom", |
| "referrer.mojom", |
| "renderer_preference_watcher.mojom", |
| "renderer_preferences.mojom", |
| "reporting/reporting.mojom", |
| "screen_enumeration/screen_enumeration.mojom", |
| "script/script_type.mojom", |
| "scroll/scroll_enums.mojom", |
| "scroll/scroll_into_view_params.mojom", |
| "scroll/scrollbar_mode.mojom", |
| "security_context/insecure_request_policy.mojom", |
| "selection_menu/selection_menu_behavior.mojom", |
| "service_worker/controller_service_worker_mode.mojom", |
| "service_worker/dispatch_fetch_event_params.mojom", |
| "service_worker/navigation_preload_state.mojom", |
| "service_worker/service_worker_client.mojom", |
| "service_worker/service_worker_container_type.mojom", |
| "service_worker/service_worker_database.mojom", |
| "service_worker/service_worker_error_type.mojom", |
| "service_worker/service_worker_event_status.mojom", |
| "service_worker/service_worker_fetch_response_callback.mojom", |
| "service_worker/service_worker_installed_scripts_manager.mojom", |
| "service_worker/service_worker_registration_options.mojom", |
| "service_worker/service_worker_state.mojom", |
| "service_worker/service_worker_stream_handle.mojom", |
| "site_engagement/site_engagement.mojom", |
| "sms/sms_receiver.mojom", |
| "speech/speech_recognition_error.mojom", |
| "speech/speech_recognition_error_code.mojom", |
| "speech/speech_recognition_grammar.mojom", |
| "speech/speech_recognition_result.mojom", |
| "speech/speech_recognizer.mojom", |
| "speech/speech_synthesis.mojom", |
| "timing/performance_mark_or_measure.mojom", |
| "timing/resource_timing.mojom", |
| "timing/worker_timing_container.mojom", |
| "ukm/ukm.mojom", |
| "user_agent/user_agent_metadata.mojom", |
| "v8_cache_options.mojom", |
| "wake_lock/wake_lock.mojom", |
| "web_launch/file_handling_expiry.mojom", |
| "web_launch/web_launch.mojom", |
| "webaudio/audio_context_manager.mojom", |
| "webdatabase/web_database.mojom", |
| "websockets/websocket_connector.mojom", |
| "webtransport/quic_transport_connector.mojom", |
| "window_features/window_features.mojom", |
| "worker/shared_worker_client.mojom", |
| "worker/shared_worker_creation_context_type.mojom", |
| "worker/shared_worker_host.mojom", |
| "worker/shared_worker_info.mojom", |
| "worker/subresource_loader_updater.mojom", |
| "worker/worker_content_settings_proxy.mojom", |
| "worker/worker_main_script_load_params.mojom", |
| "worker/worker_options.mojom", |
| ] |
| |
| if (is_android) { |
| # TODO(crbug.com/1080903): Figure out how to satisfy deps checker properly. |
| enable_bytecode_checks = false |
| } else { |
| sources += [ "serial/serial.mojom" ] |
| } |
| |
| if (is_win) { |
| sources += [ "dwrite_font_proxy/dwrite_font_proxy.mojom" ] |
| } |
| |
| if (is_mac) { |
| sources += [ "input/text_input_host.mojom" ] |
| } |
| |
| public_deps = [ |
| ":android_mojo_bindings", |
| ":authenticator_test_mojo_bindings", |
| ":mojom_mhtml_load_result", |
| ":web_feature_mojo_bindings", |
| "//cc/mojom", |
| "//components/payments/mojom", |
| "//components/schema_org/common:mojom", |
| "//components/services/filesystem/public/mojom", |
| "//mojo/public/mojom/base", |
| "//services/data_decoder/public/mojom:mojom_resource_snapshot_for_web_bundle", |
| "//services/device/public/mojom", |
| "//services/network/public/mojom", |
| "//services/network/public/mojom:data_pipe_interfaces", |
| "//services/network/public/mojom:mojom_ip_address", |
| "//services/network/public/mojom:websocket_mojom", |
| "//services/service_manager/public/mojom", |
| "//services/viz/public/mojom", |
| "//skia/public/mojom", |
| "//third_party/blink/public/mojom/dom_storage", |
| "//third_party/blink/public/mojom/frame", |
| "//third_party/blink/public/mojom/tokens", |
| "//third_party/blink/public/mojom/usb", |
| "//ui/base/cursor/mojom", |
| "//ui/base/ime/mojom", |
| "//ui/base/mojom/", |
| "//ui/display/mojom", |
| "//ui/events/mojom", |
| "//ui/gfx/geometry/mojom", |
| "//ui/gfx/mojom", |
| "//ui/gfx/range/mojom", |
| "//url/mojom:url_mojom_gurl", |
| "//url/mojom:url_mojom_origin", |
| ] |
| |
| if (is_mac) { |
| public_deps += [ |
| "//ui/base/mojom", |
| "//ui/gfx/range/mojom", |
| ] |
| } |
| |
| # iOS doesn't use and must not depend on //media |
| if (!is_ios) { |
| public_deps += [ |
| "//media/capture/mojom:video_capture", |
| "//media/mojo/mojom", |
| ] |
| } |
| |
| if (is_linux || is_chromeos) { |
| enabled_features = [ "renderer_pref_system_font_family_name" ] |
| } |
| |
| shared_cpp_typemaps = [ |
| { |
| types = [ |
| { |
| mojom = "blink.mojom.DragOperation" |
| cpp = "::blink::WebDragOperation" |
| copyable_pass_by_value = true |
| }, |
| { |
| mojom = "blink.mojom.AllowedDragOperations" |
| cpp = "::blink::WebDragOperationsMask" |
| copyable_pass_by_value = true |
| }, |
| ] |
| traits_headers = |
| [ "//third_party/blink/public/common/page/drag_mojom_traits.h" ] |
| traits_public_deps = [ "//third_party/blink/public/common:headers" ] |
| }, |
| { |
| types = [ |
| { |
| mojom = "blink.mojom.Event" |
| cpp = "::std::unique_ptr<::blink::WebCoalescedInputEvent>" |
| move_only = true |
| }, |
| ] |
| traits_headers = [ "//third_party/blink/public/common/input/web_coalesced_input_event_mojom_traits.h" ] |
| }, |
| ] |
| cpp_typemaps = [ |
| { |
| types = [ |
| { |
| mojom = "blink.mojom.ClipboardBuffer" |
| cpp = "::ui::ClipboardBuffer" |
| }, |
| ] |
| traits_headers = [ "//ui/base/mojom/clipboard_blink_mojom_traits.h" ] |
| traits_public_deps = [ "//ui/base/clipboard:clipboard_types" ] |
| }, |
| ] |
| blink_cpp_typemaps = [ |
| { |
| types = [ |
| { |
| mojom = "blink.mojom.DragData" |
| cpp = "::blink::WebDragData" |
| }, |
| ] |
| traits_headers = |
| [ "//third_party/blink/renderer/platform/mojo/drag_mojom_traits.h" ] |
| }, |
| ] |
| cpp_typemaps += shared_cpp_typemaps |
| blink_cpp_typemaps += shared_cpp_typemaps |
| |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| |
| export_class_attribute_blink = "PLATFORM_EXPORT" |
| export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| |
| # Don't scramble message IDs so they are redistributable to external tests. |
| scramble_message_ids = false |
| } |
| |
| # Kept separate from "mojom_platform" because the Java bindings are |
| # needed by Android's implementation (in chrome/android or in android_webview) |
| # for following mojom files. |
| mojom("android_mojo_bindings") { |
| generate_java = true |
| sources = [ |
| "blob/blob.mojom", |
| "blob/blob_registry.mojom", |
| "blob/blob_url_store.mojom", |
| "blob/data_element.mojom", |
| "blob/serialized_blob.mojom", |
| "digital_goods/digital_goods.mojom", |
| "document_metadata/document_metadata.mojom", |
| "font_unique_name_lookup/font_unique_name_lookup.mojom", |
| "input/input_host.mojom", |
| "input/input_messages.mojom", |
| "installation/installation.mojom", |
| "installedapp/installed_app_provider.mojom", |
| "installedapp/related_application.mojom", |
| "mediasession/media_session.mojom", |
| "payments/payment_handler_host.mojom", |
| "payments/payment_request.mojom", |
| "webauthn/authenticator.mojom", |
| "webshare/webshare.mojom", |
| ] |
| |
| if (is_android) { |
| sources += [ "remote_objects/remote_objects.mojom" ] |
| } |
| public_deps = [ |
| "//components/payments/mojom", |
| "//components/schema_org/common:mojom", |
| "//mojo/public/mojom/base", |
| "//services/media_session/public/mojom", |
| "//services/network/public/mojom", |
| "//url/mojom:url_mojom_gurl", |
| "//url/mojom:url_mojom_origin", |
| ] |
| |
| # This Android unhandled-tap feature uses another mojo source, add it in. |
| if (enable_unhandled_tap) { |
| sources += [ "unhandled_tap_notifier/unhandled_tap_notifier.mojom" ] |
| public_deps += [ "//ui/gfx/geometry/mojom" ] |
| } |
| |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| |
| export_class_attribute_blink = "PLATFORM_EXPORT" |
| export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| |
| # Don't scramble message IDs so they are redistributable to external tests. |
| scramble_message_ids = false |
| } |
| |
| # This target can include mojom interfaces which do use types that are |
| # typemapped to a type in renderer/core. This also means these interfaces are |
| # not available from renderer/platform. |
| # |
| # In future we may have a separate mojom target for the things that may have |
| # modules dependencies if it looks necessary, at that time we can put all of |
| # those high-level service worker mojom files there. |
| mojom("mojom_core") { |
| generate_java = true |
| sources = [ |
| # We can't move these frame/*.mojom files to public/mojom/frame because |
| # they depend in several .mojom files from the mojo_platform target. |
| # |
| # TODO(crbug.com/1078875): Reorganize how we assign frame/*mojom files to |
| # mojom GN targets to match better the core/platform separation in C++. |
| "frame/frame.mojom", |
| "frame/frame_owner_properties.mojom", |
| "frame/frame_policy.mojom", |
| "frame/navigation_initiator.mojom", |
| |
| # transferable_message.mojom depends the other three messaging/ mojom files. |
| "messaging/cloneable_message.mojom", |
| "messaging/message_port_descriptor.mojom", |
| "messaging/transferable_message.mojom", |
| "messaging/user_activation_snapshot.mojom", |
| |
| # Depends on transferable_message.mojom. |
| "portal/portal.mojom", |
| |
| # Note that service_worker_object.mojom and service_worker.mojom depend on |
| # transferable_message.mojom, and controller_service_worker.mojom and |
| # service_worker_registration.mojom depend on service_worker_object.mojom, |
| # so we put these service worker mojom files here rather than mojom_platform |
| # target. |
| "service_worker/controller_service_worker.mojom", |
| "service_worker/embedded_worker.mojom", |
| "service_worker/service_worker.mojom", |
| "service_worker/service_worker_container.mojom", |
| "service_worker/service_worker_object.mojom", |
| "service_worker/service_worker_provider.mojom", |
| "service_worker/service_worker_registration.mojom", |
| |
| # Similarly, shared_worker.mojom and shared_worker_connector.mojom have a |
| # dependency on message_port_descriptor.mojom, so are put here rather than |
| # in the mojom_platform target. |
| "worker/shared_worker.mojom", |
| "worker/shared_worker_connector.mojom", |
| |
| # Depends on controller_service_worker.mojom. |
| "worker/dedicated_worker_host_factory.mojom", |
| "worker/shared_worker_factory.mojom", |
| ] |
| |
| public_deps = [ |
| ":android_mojo_bindings", |
| ":mojom_platform", |
| ":web_feature_mojo_bindings", |
| "//cc/mojom", |
| "//components/payments/mojom", |
| "//mojo/public/mojom/base", |
| "//services/network/public/mojom", |
| "//services/service_manager/public/mojom", |
| "//skia/public/mojom", |
| "//ui/gfx/geometry/mojom", |
| "//url/mojom:url_mojom_gurl", |
| "//url/mojom:url_mojom_origin", |
| ] |
| |
| if (is_android) { |
| # TODO(crbug.com/1080903): Figure out how to satisfy deps checker properly. |
| enable_bytecode_checks = false |
| } |
| if (is_mac) { |
| public_deps += [ |
| "//ui/base/mojom", |
| "//ui/gfx/range/mojom", |
| ] |
| } |
| |
| overridden_deps_blink = [ |
| ":android_mojo_bindings", |
| ":mojom_platform", |
| "//services/network/public/mojom", |
| ] |
| component_deps_blink = [ "//third_party/blink/renderer/platform" ] |
| |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| |
| export_class_attribute_blink = "CORE_EXPORT" |
| export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/core/core_export.h" |
| } |
| |
| # This target can include mojom interfaces which use types that are typemapped |
| # to a type in renderer/modules. This also means these interfaces are not |
| # available from renderer/platform or renderer/core. |
| mojom("mojom_modules") { |
| sources = [ "indexeddb/indexeddb.mojom" ] |
| |
| public_deps = [ |
| ":android_mojo_bindings", |
| ":mojom_core", |
| "//mojo/public/mojom/base", |
| ] |
| |
| overridden_deps_blink = [ |
| ":android_mojo_bindings", |
| ":mojom_core", |
| ] |
| component_deps_blink = [ "//third_party/blink/renderer/core" ] |
| |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| |
| export_class_attribute_blink = "MODULES_EXPORT" |
| export_define_blink = "BLINK_MODULES_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/modules/modules_export.h" |
| } |
| |
| mojom("web_bluetooth_mojo_bindings") { |
| visibility = [ |
| "//third_party/blink/common", |
| "//third_party/blink/public/common:common", |
| "//third_party/blink/public/common:headers", |
| ] |
| |
| visibility_blink = [ |
| "//third_party/blink/common", |
| "//third_party/blink/public/common:common", |
| "//third_party/blink/public/common:headers", |
| "//third_party/blink/renderer/platform:blink_platform_public_deps", |
| ] |
| |
| sources = [ "bluetooth/web_bluetooth.mojom" ] |
| |
| public_deps = [ "//device/bluetooth/public/mojom" ] |
| |
| # The chromium variant must be linked with content and use the same export |
| # settings in component build because of the WebBluetoothDeviceId typemap |
| # inside content. |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| |
| # Similarly, the blink variant must be linked with the platform component |
| # since it uses types from it in its typemaps. |
| export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/public/platform/web_common.h" |
| } |
| |
| # The mojom_broadcastchannel_bindings is separated from the rest of mojom files |
| # to allow blink/renderer/core to depend on this. |
| mojom("mojom_broadcastchannel_bindings") { |
| visibility = [ "//content/*" ] |
| visibility_blink = [ "//third_party/blink/renderer/core/*" ] |
| sources = [ "broadcastchannel/broadcast_channel.mojom" ] |
| public_deps = [ |
| ":mojom_core", |
| "//url/mojom:url_mojom_origin", |
| ] |
| |
| overridden_deps = [ ":mojom_core" ] |
| component_deps = [ "//third_party/blink/public/common" ] |
| |
| component_output_prefix = "blink_mojom_broadcastchannel_bindings" |
| |
| # See comment above. |
| export_class_attribute = "CONTENT_EXPORT" |
| export_define = "CONTENT_IMPLEMENTATION=1" |
| export_header = "content/common/content_export.h" |
| |
| # Similarly, the blink variant must be linked with the core component |
| # since it uses types from it in its typemaps. |
| export_class_attribute_blink = "CORE_EXPORT" |
| export_define_blink = "BLINK_CORE_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/core/core_export.h" |
| } |
| |
| mojom("mojom_mhtml_load_result") { |
| generate_java = true |
| sources = [ "loader/mhtml_load_result.mojom" ] |
| |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| } |
| |
| # The web_feature_mojo_bindings is separated from the rest of the mojom files |
| # because the chromium typemap for blink mojo_bindings has private content |
| # dependencies. |
| mojom_component("web_feature_mojo_bindings") { |
| generate_java = true |
| sources = [ |
| "use_counter/css_property_id.mojom", |
| "web_feature/web_feature.mojom", |
| ] |
| |
| macro_prefix = "WEB_FEATURE_MOJO_BINDINGS_MOJOM" |
| output_prefix = "web_feature_mojo_bindings_mojom" |
| } |
| |
| # The embedded_frame_sink_mojo_bindings is separated from the rest of mojom |
| # files because its deps contain too many files in Chromium that would pollute |
| # the include paths in generated mojom-blink files for other services. |
| mojom("embedded_frame_sink_mojo_bindings") { |
| visibility = [ "//content/*" ] |
| visibility_blink = [ "//third_party/blink/renderer/platform" ] |
| sources = [ "frame_sinks/embedded_frame_sink.mojom" ] |
| deps = [ "//services/viz/public/mojom" ] |
| |
| component_output_prefix = "blink_embedded_frame_sink_mojo_bindings" |
| |
| # The chromium variant must be linked with content and use the same export |
| # settings in component build. |
| export_class_attribute = "CONTENT_EXPORT" |
| export_define = "CONTENT_IMPLEMENTATION=1" |
| export_header = "content/common/content_export.h" |
| export_class_attribute_blink = "BLINK_PLATFORM_EXPORT" |
| export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/public/platform/web_common.h" |
| } |
| |
| # This is a separate target because it needs unscrambled message IDs. |
| mojom("authenticator_test_mojo_bindings") { |
| generate_java = true |
| sources = [ "webauthn/virtual_authenticator.mojom" ] |
| |
| public_deps = [ |
| ":android_mojo_bindings", |
| "//url/mojom:url_mojom_gurl", |
| ] |
| |
| export_class_attribute = "BLINK_COMMON_EXPORT" |
| export_define = "BLINK_COMMON_IMPLEMENTATION=1" |
| export_header = "third_party/blink/public/common/common_export.h" |
| |
| export_class_attribute_blink = "PLATFORM_EXPORT" |
| export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| |
| # Don't scramble message IDs so they are redistributable to external tests. |
| scramble_message_ids = false |
| } |
| |
| mojom("memory_usage_monitor_linux_mojo_bindings") { |
| visibility = [ |
| "//content/browser:browser", |
| "//third_party/blink/renderer/controller:controller", |
| ] |
| visibility_blink = [ "//third_party/blink/renderer/controller:controller" ] |
| |
| sources = [ "memory_usage_monitor_linux.mojom" ] |
| |
| public_deps = [ "//mojo/public/mojom/base" ] |
| |
| export_class_attribute_blink = "PLATFORM_EXPORT" |
| export_define_blink = "BLINK_PLATFORM_IMPLEMENTATION=1" |
| export_header_blink = "third_party/blink/renderer/platform/platform_export.h" |
| } |