// third_party/blink/public/mojom/webpreferences/web_preferences.mojom.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "third_party/blink/public/mojom/webpreferences/web_preferences.mojom.h"
#include <stdint.h>
#include <utility>
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "third_party/blink/public/mojom/webpreferences/web_preferences.mojom-params-data.h"
#include "third_party/blink/public/mojom/webpreferences/web_preferences.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/webpreferences/web_preferences.mojom-import-headers.h"
#include "third_party/blink/public/mojom/webpreferences/web_preferences.mojom-test-utils.h"


namespace blink::mojom {
WebPreferences::WebPreferences()
    : standard_font_family_map(),
      fixed_font_family_map(),
      serif_font_family_map(),
      sans_serif_font_family_map(),
      cursive_font_family_map(),
      fantasy_font_family_map(),
      math_font_family_map(),
      default_font_size(),
      default_fixed_font_size(),
      minimum_font_size(),
      minimum_logical_font_size(),
      default_encoding(),
      context_menu_on_mouse_up(),
      javascript_enabled(),
      web_security_enabled(),
      loads_images_automatically(),
      images_enabled(),
      plugins_enabled(),
      dom_paste_enabled(),
      shrinks_standalone_images_to_fit(),
      text_areas_are_resizable(),
      allow_scripts_to_close_windows(),
      allow_unrestricted_window_focus(),
      remote_fonts_enabled(),
      javascript_can_access_clipboard(),
      dns_prefetching_enabled(),
      data_saver_enabled(),
      battery_saver_enabled(),
      preloading_disabled(),
      local_storage_enabled(),
      tabs_to_links(),
      disable_ipc_flooding_protection(),
      hyperlink_auditing_enabled(),
      allow_universal_access_from_file_urls(),
      allow_file_access_from_file_urls(),
      webgl1_enabled(),
      webgl2_enabled(),
      privileged_webgl_extensions_enabled(),
      webgl_errors_to_console_enabled(),
      hide_scrollbars(),
      prefers_default_scrollbar_styles(),
      accelerated_2d_canvas_enabled(),
      canvas_2d_layers_enabled(),
      antialiased_2d_canvas_disabled(),
      antialiased_clips_2d_canvas_enabled(),
      accelerated_filters_enabled(),
      deferred_filters_enabled(),
      container_culling_enabled(),
      allow_running_insecure_content(),
      disable_reading_from_canvas(),
      strict_mixed_content_checking(),
      allow_geolocation_on_insecure_origins(),
      strictly_block_blockable_mixed_content(),
      block_mixed_plugin_content(),
      highlight_ads(),
      password_echo_enabled_physical(),
      password_echo_enabled_touch(),
      should_clear_document_background(),
      enable_scroll_animator(),
      prefers_reduced_motion(),
      prefers_reduced_transparency(),
      inverted_colors(),
      touch_event_feature_detection_enabled(),
      pointer_events_max_touch_points(),
      available_pointer_types(),
      primary_pointer_type(),
      output_device_update_ability_type(),
      available_hover_types(),
      primary_hover_type(),
      dont_send_key_events_to_javascript(),
      barrel_button_for_drag_enabled(),
      sync_xhr_in_documents_enabled(),
      target_blank_implies_no_opener_enabled_will_be_removed(),
      ignore_permission_for_device_changed_event(),
      number_of_cpu_cores(),
      editing_behavior(),
      supports_multiple_windows(),
      viewport_enabled(),
      viewport_meta_enabled(),
      auto_zoom_focused_editable_to_legible_scale(),
      shrinks_viewport_contents_to_fit(),
      viewport_style(),
      smooth_scroll_for_find_enabled(),
      main_frame_resizes_are_orientation_changes(),
      initialize_at_minimum_page_scale(),
      smart_insert_delete_enabled(),
      spatial_navigation_enabled(),
      v8_cache_options(),
      record_whole_document(),
      stylus_handwriting_enabled(),
      cookie_enabled(),
      accelerated_video_decode_enabled(),
      animation_policy(),
      user_gesture_required_for_presentation(),
      text_tracks_enabled(),
      text_track_background_color(),
      text_track_text_color(),
      text_track_text_size(),
      text_track_text_shadow(),
      text_track_font_family(),
      text_track_font_style(),
      text_track_font_variant(),
      text_track_window_color(),
      text_track_window_radius(),
      text_track_margin_percentage(),
      immersive_mode_enabled(),
      immersive_video_playback_enabled(),
      double_tap_to_zoom_enabled(),
      fullscreen_supported(),
      text_size_adjust_enabled(),
      web_app_scope(),
      is_initial_profile(),
      font_scale_factor(),
      font_weight_adjustment(),
      text_size_contrast_factor(),
      force_enable_zoom(),
      default_video_poster_url(),
      support_deprecated_target_density_dpi(),
      wide_viewport_quirk(),
      use_wide_viewport(),
      force_zero_layout_height(),
      viewport_meta_merge_content_quirk(),
      viewport_meta_non_user_scalable_quirk(),
      viewport_meta_zero_values_quirk(),
      clobber_user_agent_initial_scale_quirk(),
      ignore_main_frame_overflow_hidden_quirk(),
      report_screen_size_in_physical_pixels_quirk(),
      reuse_global_for_unowned_main_frame(),
      spellcheck_enabled_by_default(),
      video_fullscreen_orientation_lock_enabled(),
      video_rotate_to_fullscreen_enabled(),
      embedded_media_experience_enabled(),
      css_hex_alpha_color_enabled(),
      scroll_top_left_interop_enabled(),
      disable_accelerated_small_canvases(),
      long_press_link_select_text(),
      scale_all_fonts_if_no_meta_text_scale_tag(),
      disable_webauthn(),
      force_dark_mode_enabled(),
      default_minimum_page_scale_factor(),
      default_maximum_page_scale_factor(),
      hide_download_ui(),
      presentation_receiver(),
      media_controls_enabled(),
      do_not_update_selection_on_mutating_selection_range(),
      autoplay_policy(),
      require_transient_activation_for_get_display_media(),
      require_transient_activation_for_show_file_or_directory_picker(),
      in_forced_colors(),
      is_forced_colors_disabled(),
      root_scrollbar_theme_color(),
      preferred_root_scrollbar_color_scheme(),
      preferred_color_scheme(),
      preferred_contrast(),
      low_priority_iframes_threshold(),
      picture_in_picture_enabled(),
      translate_service_available(),
      network_quality_estimator_web_holdback(),
      lazy_load_enabled(),
      allow_mixed_content_upgrades(),
      always_show_focus(),
      touch_drag_drop_enabled(),
      touch_dragend_context_menu(false),
      webxr_immersive_ar_allowed(),
      renderer_wide_named_frame_lookup(),
      strict_mime_type_check_for_worker_scripts_enabled(true),
      modal_context_menu(true),
      dynamic_safe_area_insets_enabled(false),
      payment_request_enabled(false),
      ai_ot_apis_enabled(false),
      should_screenshot_on_mainframe_same_doc_navigation(true),
      is_indigo_onboarding(false) {}

WebPreferences::WebPreferences(
    const base::flat_map<std::string, ::std::u16string>& standard_font_family_map_in,
    const base::flat_map<std::string, ::std::u16string>& fixed_font_family_map_in,
    const base::flat_map<std::string, ::std::u16string>& serif_font_family_map_in,
    const base::flat_map<std::string, ::std::u16string>& sans_serif_font_family_map_in,
    const base::flat_map<std::string, ::std::u16string>& cursive_font_family_map_in,
    const base::flat_map<std::string, ::std::u16string>& fantasy_font_family_map_in,
    const base::flat_map<std::string, ::std::u16string>& math_font_family_map_in,
    int32_t default_font_size_in,
    int32_t default_fixed_font_size_in,
    int32_t minimum_font_size_in,
    int32_t minimum_logical_font_size_in,
    const std::string& default_encoding_in,
    bool context_menu_on_mouse_up_in,
    bool javascript_enabled_in,
    bool web_security_enabled_in,
    bool loads_images_automatically_in,
    bool images_enabled_in,
    bool plugins_enabled_in,
    bool dom_paste_enabled_in,
    bool shrinks_standalone_images_to_fit_in,
    bool text_areas_are_resizable_in,
    bool allow_scripts_to_close_windows_in,
    bool allow_unrestricted_window_focus_in,
    bool remote_fonts_enabled_in,
    bool javascript_can_access_clipboard_in,
    bool dns_prefetching_enabled_in,
    bool data_saver_enabled_in,
    bool battery_saver_enabled_in,
    bool preloading_disabled_in,
    bool local_storage_enabled_in,
    bool tabs_to_links_in,
    bool disable_ipc_flooding_protection_in,
    bool hyperlink_auditing_enabled_in,
    bool allow_universal_access_from_file_urls_in,
    bool allow_file_access_from_file_urls_in,
    bool webgl1_enabled_in,
    bool webgl2_enabled_in,
    bool privileged_webgl_extensions_enabled_in,
    bool webgl_errors_to_console_enabled_in,
    bool hide_scrollbars_in,
    bool prefers_default_scrollbar_styles_in,
    bool accelerated_2d_canvas_enabled_in,
    bool canvas_2d_layers_enabled_in,
    bool antialiased_2d_canvas_disabled_in,
    bool antialiased_clips_2d_canvas_enabled_in,
    bool accelerated_filters_enabled_in,
    bool deferred_filters_enabled_in,
    bool container_culling_enabled_in,
    bool allow_running_insecure_content_in,
    bool disable_reading_from_canvas_in,
    bool strict_mixed_content_checking_in,
    bool allow_geolocation_on_insecure_origins_in,
    bool strictly_block_blockable_mixed_content_in,
    bool block_mixed_plugin_content_in,
    bool highlight_ads_in,
    bool password_echo_enabled_physical_in,
    bool password_echo_enabled_touch_in,
    bool should_clear_document_background_in,
    bool enable_scroll_animator_in,
    bool prefers_reduced_motion_in,
    bool prefers_reduced_transparency_in,
    bool inverted_colors_in,
    bool touch_event_feature_detection_enabled_in,
    int32_t pointer_events_max_touch_points_in,
    int32_t available_pointer_types_in,
    PointerType primary_pointer_type_in,
    OutputDeviceUpdateAbilityType output_device_update_ability_type_in,
    int32_t available_hover_types_in,
    HoverType primary_hover_type_in,
    bool dont_send_key_events_to_javascript_in,
    bool barrel_button_for_drag_enabled_in,
    bool sync_xhr_in_documents_enabled_in,
    bool target_blank_implies_no_opener_enabled_will_be_removed_in,
    bool ignore_permission_for_device_changed_event_in,
    int32_t number_of_cpu_cores_in,
    EditingBehavior editing_behavior_in,
    bool supports_multiple_windows_in,
    bool viewport_enabled_in,
    bool viewport_meta_enabled_in,
    bool auto_zoom_focused_editable_to_legible_scale_in,
    bool shrinks_viewport_contents_to_fit_in,
    ViewportStyle viewport_style_in,
    bool smooth_scroll_for_find_enabled_in,
    bool main_frame_resizes_are_orientation_changes_in,
    bool initialize_at_minimum_page_scale_in,
    bool smart_insert_delete_enabled_in,
    bool spatial_navigation_enabled_in,
    ::blink::mojom::V8CacheOptions v8_cache_options_in,
    bool record_whole_document_in,
    bool stylus_handwriting_enabled_in,
    bool cookie_enabled_in,
    bool accelerated_video_decode_enabled_in,
    ImageAnimationPolicy animation_policy_in,
    bool user_gesture_required_for_presentation_in,
    bool text_tracks_enabled_in,
    const std::string& text_track_background_color_in,
    const std::string& text_track_text_color_in,
    const std::string& text_track_text_size_in,
    const std::string& text_track_text_shadow_in,
    const std::string& text_track_font_family_in,
    const std::string& text_track_font_style_in,
    const std::string& text_track_font_variant_in,
    const std::string& text_track_window_color_in,
    const std::string& text_track_window_radius_in,
    float text_track_margin_percentage_in,
    bool immersive_mode_enabled_in,
    bool immersive_video_playback_enabled_in,
    bool double_tap_to_zoom_enabled_in,
    bool fullscreen_supported_in,
    bool text_size_adjust_enabled_in,
    const ::GURL& web_app_scope_in,
    bool is_initial_profile_in,
    float font_scale_factor_in,
    int32_t font_weight_adjustment_in,
    int32_t text_size_contrast_factor_in,
    bool force_enable_zoom_in,
    const ::GURL& default_video_poster_url_in,
    bool support_deprecated_target_density_dpi_in,
    bool wide_viewport_quirk_in,
    bool use_wide_viewport_in,
    bool force_zero_layout_height_in,
    bool viewport_meta_merge_content_quirk_in,
    bool viewport_meta_non_user_scalable_quirk_in,
    bool viewport_meta_zero_values_quirk_in,
    bool clobber_user_agent_initial_scale_quirk_in,
    bool ignore_main_frame_overflow_hidden_quirk_in,
    bool report_screen_size_in_physical_pixels_quirk_in,
    bool reuse_global_for_unowned_main_frame_in,
    bool spellcheck_enabled_by_default_in,
    bool video_fullscreen_orientation_lock_enabled_in,
    bool video_rotate_to_fullscreen_enabled_in,
    bool embedded_media_experience_enabled_in,
    bool css_hex_alpha_color_enabled_in,
    bool scroll_top_left_interop_enabled_in,
    bool disable_accelerated_small_canvases_in,
    bool long_press_link_select_text_in,
    bool scale_all_fonts_if_no_meta_text_scale_tag_in,
    bool disable_webauthn_in,
    bool force_dark_mode_enabled_in,
    float default_minimum_page_scale_factor_in,
    float default_maximum_page_scale_factor_in,
    bool hide_download_ui_in,
    bool presentation_receiver_in,
    bool media_controls_enabled_in,
    bool do_not_update_selection_on_mutating_selection_range_in,
    AutoplayPolicy autoplay_policy_in,
    bool require_transient_activation_for_get_display_media_in,
    bool require_transient_activation_for_show_file_or_directory_picker_in,
    bool in_forced_colors_in,
    bool is_forced_colors_disabled_in,
    std::optional<::SkColor> root_scrollbar_theme_color_in,
    ::blink::mojom::PreferredColorScheme preferred_root_scrollbar_color_scheme_in,
    ::blink::mojom::PreferredColorScheme preferred_color_scheme_in,
    ::blink::mojom::PreferredContrast preferred_contrast_in,
    EffectiveConnectionType low_priority_iframes_threshold_in,
    bool picture_in_picture_enabled_in,
    bool translate_service_available_in,
    EffectiveConnectionType network_quality_estimator_web_holdback_in,
    bool lazy_load_enabled_in,
    bool allow_mixed_content_upgrades_in,
    bool always_show_focus_in,
    bool touch_drag_drop_enabled_in,
    bool touch_dragend_context_menu_in,
    bool webxr_immersive_ar_allowed_in,
    bool renderer_wide_named_frame_lookup_in,
    bool strict_mime_type_check_for_worker_scripts_enabled_in,
    bool modal_context_menu_in,
    bool dynamic_safe_area_insets_enabled_in,
    bool payment_request_enabled_in,
    bool ai_ot_apis_enabled_in,
    bool should_screenshot_on_mainframe_same_doc_navigation_in,
    bool is_indigo_onboarding_in)
    : standard_font_family_map(std::move(standard_font_family_map_in)),
      fixed_font_family_map(std::move(fixed_font_family_map_in)),
      serif_font_family_map(std::move(serif_font_family_map_in)),
      sans_serif_font_family_map(std::move(sans_serif_font_family_map_in)),
      cursive_font_family_map(std::move(cursive_font_family_map_in)),
      fantasy_font_family_map(std::move(fantasy_font_family_map_in)),
      math_font_family_map(std::move(math_font_family_map_in)),
      default_font_size(std::move(default_font_size_in)),
      default_fixed_font_size(std::move(default_fixed_font_size_in)),
      minimum_font_size(std::move(minimum_font_size_in)),
      minimum_logical_font_size(std::move(minimum_logical_font_size_in)),
      default_encoding(std::move(default_encoding_in)),
      context_menu_on_mouse_up(std::move(context_menu_on_mouse_up_in)),
      javascript_enabled(std::move(javascript_enabled_in)),
      web_security_enabled(std::move(web_security_enabled_in)),
      loads_images_automatically(std::move(loads_images_automatically_in)),
      images_enabled(std::move(images_enabled_in)),
      plugins_enabled(std::move(plugins_enabled_in)),
      dom_paste_enabled(std::move(dom_paste_enabled_in)),
      shrinks_standalone_images_to_fit(std::move(shrinks_standalone_images_to_fit_in)),
      text_areas_are_resizable(std::move(text_areas_are_resizable_in)),
      allow_scripts_to_close_windows(std::move(allow_scripts_to_close_windows_in)),
      allow_unrestricted_window_focus(std::move(allow_unrestricted_window_focus_in)),
      remote_fonts_enabled(std::move(remote_fonts_enabled_in)),
      javascript_can_access_clipboard(std::move(javascript_can_access_clipboard_in)),
      dns_prefetching_enabled(std::move(dns_prefetching_enabled_in)),
      data_saver_enabled(std::move(data_saver_enabled_in)),
      battery_saver_enabled(std::move(battery_saver_enabled_in)),
      preloading_disabled(std::move(preloading_disabled_in)),
      local_storage_enabled(std::move(local_storage_enabled_in)),
      tabs_to_links(std::move(tabs_to_links_in)),
      disable_ipc_flooding_protection(std::move(disable_ipc_flooding_protection_in)),
      hyperlink_auditing_enabled(std::move(hyperlink_auditing_enabled_in)),
      allow_universal_access_from_file_urls(std::move(allow_universal_access_from_file_urls_in)),
      allow_file_access_from_file_urls(std::move(allow_file_access_from_file_urls_in)),
      webgl1_enabled(std::move(webgl1_enabled_in)),
      webgl2_enabled(std::move(webgl2_enabled_in)),
      privileged_webgl_extensions_enabled(std::move(privileged_webgl_extensions_enabled_in)),
      webgl_errors_to_console_enabled(std::move(webgl_errors_to_console_enabled_in)),
      hide_scrollbars(std::move(hide_scrollbars_in)),
      prefers_default_scrollbar_styles(std::move(prefers_default_scrollbar_styles_in)),
      accelerated_2d_canvas_enabled(std::move(accelerated_2d_canvas_enabled_in)),
      canvas_2d_layers_enabled(std::move(canvas_2d_layers_enabled_in)),
      antialiased_2d_canvas_disabled(std::move(antialiased_2d_canvas_disabled_in)),
      antialiased_clips_2d_canvas_enabled(std::move(antialiased_clips_2d_canvas_enabled_in)),
      accelerated_filters_enabled(std::move(accelerated_filters_enabled_in)),
      deferred_filters_enabled(std::move(deferred_filters_enabled_in)),
      container_culling_enabled(std::move(container_culling_enabled_in)),
      allow_running_insecure_content(std::move(allow_running_insecure_content_in)),
      disable_reading_from_canvas(std::move(disable_reading_from_canvas_in)),
      strict_mixed_content_checking(std::move(strict_mixed_content_checking_in)),
      allow_geolocation_on_insecure_origins(std::move(allow_geolocation_on_insecure_origins_in)),
      strictly_block_blockable_mixed_content(std::move(strictly_block_blockable_mixed_content_in)),
      block_mixed_plugin_content(std::move(block_mixed_plugin_content_in)),
      highlight_ads(std::move(highlight_ads_in)),
      password_echo_enabled_physical(std::move(password_echo_enabled_physical_in)),
      password_echo_enabled_touch(std::move(password_echo_enabled_touch_in)),
      should_clear_document_background(std::move(should_clear_document_background_in)),
      enable_scroll_animator(std::move(enable_scroll_animator_in)),
      prefers_reduced_motion(std::move(prefers_reduced_motion_in)),
      prefers_reduced_transparency(std::move(prefers_reduced_transparency_in)),
      inverted_colors(std::move(inverted_colors_in)),
      touch_event_feature_detection_enabled(std::move(touch_event_feature_detection_enabled_in)),
      pointer_events_max_touch_points(std::move(pointer_events_max_touch_points_in)),
      available_pointer_types(std::move(available_pointer_types_in)),
      primary_pointer_type(std::move(primary_pointer_type_in)),
      output_device_update_ability_type(std::move(output_device_update_ability_type_in)),
      available_hover_types(std::move(available_hover_types_in)),
      primary_hover_type(std::move(primary_hover_type_in)),
      dont_send_key_events_to_javascript(std::move(dont_send_key_events_to_javascript_in)),
      barrel_button_for_drag_enabled(std::move(barrel_button_for_drag_enabled_in)),
      sync_xhr_in_documents_enabled(std::move(sync_xhr_in_documents_enabled_in)),
      target_blank_implies_no_opener_enabled_will_be_removed(std::move(target_blank_implies_no_opener_enabled_will_be_removed_in)),
      ignore_permission_for_device_changed_event(std::move(ignore_permission_for_device_changed_event_in)),
      number_of_cpu_cores(std::move(number_of_cpu_cores_in)),
      editing_behavior(std::move(editing_behavior_in)),
      supports_multiple_windows(std::move(supports_multiple_windows_in)),
      viewport_enabled(std::move(viewport_enabled_in)),
      viewport_meta_enabled(std::move(viewport_meta_enabled_in)),
      auto_zoom_focused_editable_to_legible_scale(std::move(auto_zoom_focused_editable_to_legible_scale_in)),
      shrinks_viewport_contents_to_fit(std::move(shrinks_viewport_contents_to_fit_in)),
      viewport_style(std::move(viewport_style_in)),
      smooth_scroll_for_find_enabled(std::move(smooth_scroll_for_find_enabled_in)),
      main_frame_resizes_are_orientation_changes(std::move(main_frame_resizes_are_orientation_changes_in)),
      initialize_at_minimum_page_scale(std::move(initialize_at_minimum_page_scale_in)),
      smart_insert_delete_enabled(std::move(smart_insert_delete_enabled_in)),
      spatial_navigation_enabled(std::move(spatial_navigation_enabled_in)),
      v8_cache_options(std::move(v8_cache_options_in)),
      record_whole_document(std::move(record_whole_document_in)),
      stylus_handwriting_enabled(std::move(stylus_handwriting_enabled_in)),
      cookie_enabled(std::move(cookie_enabled_in)),
      accelerated_video_decode_enabled(std::move(accelerated_video_decode_enabled_in)),
      animation_policy(std::move(animation_policy_in)),
      user_gesture_required_for_presentation(std::move(user_gesture_required_for_presentation_in)),
      text_tracks_enabled(std::move(text_tracks_enabled_in)),
      text_track_background_color(std::move(text_track_background_color_in)),
      text_track_text_color(std::move(text_track_text_color_in)),
      text_track_text_size(std::move(text_track_text_size_in)),
      text_track_text_shadow(std::move(text_track_text_shadow_in)),
      text_track_font_family(std::move(text_track_font_family_in)),
      text_track_font_style(std::move(text_track_font_style_in)),
      text_track_font_variant(std::move(text_track_font_variant_in)),
      text_track_window_color(std::move(text_track_window_color_in)),
      text_track_window_radius(std::move(text_track_window_radius_in)),
      text_track_margin_percentage(std::move(text_track_margin_percentage_in)),
      immersive_mode_enabled(std::move(immersive_mode_enabled_in)),
      immersive_video_playback_enabled(std::move(immersive_video_playback_enabled_in)),
      double_tap_to_zoom_enabled(std::move(double_tap_to_zoom_enabled_in)),
      fullscreen_supported(std::move(fullscreen_supported_in)),
      text_size_adjust_enabled(std::move(text_size_adjust_enabled_in)),
      web_app_scope(std::move(web_app_scope_in)),
      is_initial_profile(std::move(is_initial_profile_in)),
      font_scale_factor(std::move(font_scale_factor_in)),
      font_weight_adjustment(std::move(font_weight_adjustment_in)),
      text_size_contrast_factor(std::move(text_size_contrast_factor_in)),
      force_enable_zoom(std::move(force_enable_zoom_in)),
      default_video_poster_url(std::move(default_video_poster_url_in)),
      support_deprecated_target_density_dpi(std::move(support_deprecated_target_density_dpi_in)),
      wide_viewport_quirk(std::move(wide_viewport_quirk_in)),
      use_wide_viewport(std::move(use_wide_viewport_in)),
      force_zero_layout_height(std::move(force_zero_layout_height_in)),
      viewport_meta_merge_content_quirk(std::move(viewport_meta_merge_content_quirk_in)),
      viewport_meta_non_user_scalable_quirk(std::move(viewport_meta_non_user_scalable_quirk_in)),
      viewport_meta_zero_values_quirk(std::move(viewport_meta_zero_values_quirk_in)),
      clobber_user_agent_initial_scale_quirk(std::move(clobber_user_agent_initial_scale_quirk_in)),
      ignore_main_frame_overflow_hidden_quirk(std::move(ignore_main_frame_overflow_hidden_quirk_in)),
      report_screen_size_in_physical_pixels_quirk(std::move(report_screen_size_in_physical_pixels_quirk_in)),
      reuse_global_for_unowned_main_frame(std::move(reuse_global_for_unowned_main_frame_in)),
      spellcheck_enabled_by_default(std::move(spellcheck_enabled_by_default_in)),
      video_fullscreen_orientation_lock_enabled(std::move(video_fullscreen_orientation_lock_enabled_in)),
      video_rotate_to_fullscreen_enabled(std::move(video_rotate_to_fullscreen_enabled_in)),
      embedded_media_experience_enabled(std::move(embedded_media_experience_enabled_in)),
      css_hex_alpha_color_enabled(std::move(css_hex_alpha_color_enabled_in)),
      scroll_top_left_interop_enabled(std::move(scroll_top_left_interop_enabled_in)),
      disable_accelerated_small_canvases(std::move(disable_accelerated_small_canvases_in)),
      long_press_link_select_text(std::move(long_press_link_select_text_in)),
      scale_all_fonts_if_no_meta_text_scale_tag(std::move(scale_all_fonts_if_no_meta_text_scale_tag_in)),
      disable_webauthn(std::move(disable_webauthn_in)),
      force_dark_mode_enabled(std::move(force_dark_mode_enabled_in)),
      default_minimum_page_scale_factor(std::move(default_minimum_page_scale_factor_in)),
      default_maximum_page_scale_factor(std::move(default_maximum_page_scale_factor_in)),
      hide_download_ui(std::move(hide_download_ui_in)),
      presentation_receiver(std::move(presentation_receiver_in)),
      media_controls_enabled(std::move(media_controls_enabled_in)),
      do_not_update_selection_on_mutating_selection_range(std::move(do_not_update_selection_on_mutating_selection_range_in)),
      autoplay_policy(std::move(autoplay_policy_in)),
      require_transient_activation_for_get_display_media(std::move(require_transient_activation_for_get_display_media_in)),
      require_transient_activation_for_show_file_or_directory_picker(std::move(require_transient_activation_for_show_file_or_directory_picker_in)),
      in_forced_colors(std::move(in_forced_colors_in)),
      is_forced_colors_disabled(std::move(is_forced_colors_disabled_in)),
      root_scrollbar_theme_color(std::move(root_scrollbar_theme_color_in)),
      preferred_root_scrollbar_color_scheme(std::move(preferred_root_scrollbar_color_scheme_in)),
      preferred_color_scheme(std::move(preferred_color_scheme_in)),
      preferred_contrast(std::move(preferred_contrast_in)),
      low_priority_iframes_threshold(std::move(low_priority_iframes_threshold_in)),
      picture_in_picture_enabled(std::move(picture_in_picture_enabled_in)),
      translate_service_available(std::move(translate_service_available_in)),
      network_quality_estimator_web_holdback(std::move(network_quality_estimator_web_holdback_in)),
      lazy_load_enabled(std::move(lazy_load_enabled_in)),
      allow_mixed_content_upgrades(std::move(allow_mixed_content_upgrades_in)),
      always_show_focus(std::move(always_show_focus_in)),
      touch_drag_drop_enabled(std::move(touch_drag_drop_enabled_in)),
      touch_dragend_context_menu(std::move(touch_dragend_context_menu_in)),
      webxr_immersive_ar_allowed(std::move(webxr_immersive_ar_allowed_in)),
      renderer_wide_named_frame_lookup(std::move(renderer_wide_named_frame_lookup_in)),
      strict_mime_type_check_for_worker_scripts_enabled(std::move(strict_mime_type_check_for_worker_scripts_enabled_in)),
      modal_context_menu(std::move(modal_context_menu_in)),
      dynamic_safe_area_insets_enabled(std::move(dynamic_safe_area_insets_enabled_in)),
      payment_request_enabled(std::move(payment_request_enabled_in)),
      ai_ot_apis_enabled(std::move(ai_ot_apis_enabled_in)),
      should_screenshot_on_mainframe_same_doc_navigation(std::move(should_screenshot_on_mainframe_same_doc_navigation_in)),
      is_indigo_onboarding(std::move(is_indigo_onboarding_in)) {}

WebPreferences::~WebPreferences() = default;

void WebPreferences::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {
  [[maybe_unused]] auto dict = std::move(traced_context).WriteDictionary();
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "standard_font_family_map"), this->standard_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "fixed_font_family_map"), this->fixed_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "serif_font_family_map"), this->serif_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "sans_serif_font_family_map"), this->sans_serif_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "cursive_font_family_map"), this->cursive_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "fantasy_font_family_map"), this->fantasy_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "math_font_family_map"), this->math_font_family_map,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const base::flat_map<std::string, ::std::u16string>&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "default_font_size"), this->default_font_size,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "default_fixed_font_size"), this->default_fixed_font_size,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "minimum_font_size"), this->minimum_font_size,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "minimum_logical_font_size"), this->minimum_logical_font_size,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "default_encoding"), this->default_encoding,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "context_menu_on_mouse_up"), this->context_menu_on_mouse_up,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "javascript_enabled"), this->javascript_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "web_security_enabled"), this->web_security_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "loads_images_automatically"), this->loads_images_automatically,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "images_enabled"), this->images_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "plugins_enabled"), this->plugins_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "dom_paste_enabled"), this->dom_paste_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "shrinks_standalone_images_to_fit"), this->shrinks_standalone_images_to_fit,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_areas_are_resizable"), this->text_areas_are_resizable,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_scripts_to_close_windows"), this->allow_scripts_to_close_windows,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_unrestricted_window_focus"), this->allow_unrestricted_window_focus,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "remote_fonts_enabled"), this->remote_fonts_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "javascript_can_access_clipboard"), this->javascript_can_access_clipboard,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "dns_prefetching_enabled"), this->dns_prefetching_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "data_saver_enabled"), this->data_saver_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "battery_saver_enabled"), this->battery_saver_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "preloading_disabled"), this->preloading_disabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "local_storage_enabled"), this->local_storage_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "tabs_to_links"), this->tabs_to_links,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "disable_ipc_flooding_protection"), this->disable_ipc_flooding_protection,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "hyperlink_auditing_enabled"), this->hyperlink_auditing_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_universal_access_from_file_urls"), this->allow_universal_access_from_file_urls,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_file_access_from_file_urls"), this->allow_file_access_from_file_urls,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "webgl1_enabled"), this->webgl1_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "webgl2_enabled"), this->webgl2_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "privileged_webgl_extensions_enabled"), this->privileged_webgl_extensions_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "webgl_errors_to_console_enabled"), this->webgl_errors_to_console_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "hide_scrollbars"), this->hide_scrollbars,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "prefers_default_scrollbar_styles"), this->prefers_default_scrollbar_styles,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "accelerated_2d_canvas_enabled"), this->accelerated_2d_canvas_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "canvas_2d_layers_enabled"), this->canvas_2d_layers_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "antialiased_2d_canvas_disabled"), this->antialiased_2d_canvas_disabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "antialiased_clips_2d_canvas_enabled"), this->antialiased_clips_2d_canvas_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "accelerated_filters_enabled"), this->accelerated_filters_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "deferred_filters_enabled"), this->deferred_filters_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "container_culling_enabled"), this->container_culling_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_running_insecure_content"), this->allow_running_insecure_content,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "disable_reading_from_canvas"), this->disable_reading_from_canvas,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "strict_mixed_content_checking"), this->strict_mixed_content_checking,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_geolocation_on_insecure_origins"), this->allow_geolocation_on_insecure_origins,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "strictly_block_blockable_mixed_content"), this->strictly_block_blockable_mixed_content,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "block_mixed_plugin_content"), this->block_mixed_plugin_content,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "highlight_ads"), this->highlight_ads,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "password_echo_enabled_physical"), this->password_echo_enabled_physical,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "password_echo_enabled_touch"), this->password_echo_enabled_touch,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "should_clear_document_background"), this->should_clear_document_background,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "enable_scroll_animator"), this->enable_scroll_animator,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "prefers_reduced_motion"), this->prefers_reduced_motion,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "prefers_reduced_transparency"), this->prefers_reduced_transparency,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "inverted_colors"), this->inverted_colors,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "touch_event_feature_detection_enabled"), this->touch_event_feature_detection_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "pointer_events_max_touch_points"), this->pointer_events_max_touch_points,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "available_pointer_types"), this->available_pointer_types,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "primary_pointer_type"), this->primary_pointer_type,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type PointerType>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "output_device_update_ability_type"), this->output_device_update_ability_type,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type OutputDeviceUpdateAbilityType>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "available_hover_types"), this->available_hover_types,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "primary_hover_type"), this->primary_hover_type,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type HoverType>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "dont_send_key_events_to_javascript"), this->dont_send_key_events_to_javascript,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "barrel_button_for_drag_enabled"), this->barrel_button_for_drag_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "sync_xhr_in_documents_enabled"), this->sync_xhr_in_documents_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "target_blank_implies_no_opener_enabled_will_be_removed"), this->target_blank_implies_no_opener_enabled_will_be_removed,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "ignore_permission_for_device_changed_event"), this->ignore_permission_for_device_changed_event,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "number_of_cpu_cores"), this->number_of_cpu_cores,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "editing_behavior"), this->editing_behavior,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type EditingBehavior>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "supports_multiple_windows"), this->supports_multiple_windows,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "viewport_enabled"), this->viewport_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "viewport_meta_enabled"), this->viewport_meta_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "auto_zoom_focused_editable_to_legible_scale"), this->auto_zoom_focused_editable_to_legible_scale,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "shrinks_viewport_contents_to_fit"), this->shrinks_viewport_contents_to_fit,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "viewport_style"), this->viewport_style,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type ViewportStyle>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "smooth_scroll_for_find_enabled"), this->smooth_scroll_for_find_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "main_frame_resizes_are_orientation_changes"), this->main_frame_resizes_are_orientation_changes,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "initialize_at_minimum_page_scale"), this->initialize_at_minimum_page_scale,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "smart_insert_delete_enabled"), this->smart_insert_delete_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "spatial_navigation_enabled"), this->spatial_navigation_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "v8_cache_options"), this->v8_cache_options,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type ::blink::mojom::V8CacheOptions>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "record_whole_document"), this->record_whole_document,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "stylus_handwriting_enabled"), this->stylus_handwriting_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "cookie_enabled"), this->cookie_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "accelerated_video_decode_enabled"), this->accelerated_video_decode_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "animation_policy"), this->animation_policy,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type ImageAnimationPolicy>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "user_gesture_required_for_presentation"), this->user_gesture_required_for_presentation,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_tracks_enabled"), this->text_tracks_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_background_color"), this->text_track_background_color,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_text_color"), this->text_track_text_color,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_text_size"), this->text_track_text_size,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_text_shadow"), this->text_track_text_shadow,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_font_family"), this->text_track_font_family,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_font_style"), this->text_track_font_style,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_font_variant"), this->text_track_font_variant,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_window_color"), this->text_track_window_color,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_window_radius"), this->text_track_window_radius,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const std::string&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_track_margin_percentage"), this->text_track_margin_percentage,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type float>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "immersive_mode_enabled"), this->immersive_mode_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "immersive_video_playback_enabled"), this->immersive_video_playback_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "double_tap_to_zoom_enabled"), this->double_tap_to_zoom_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "fullscreen_supported"), this->fullscreen_supported,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_size_adjust_enabled"), this->text_size_adjust_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "web_app_scope"), this->web_app_scope,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const ::GURL&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "is_initial_profile"), this->is_initial_profile,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "font_scale_factor"), this->font_scale_factor,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type float>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "font_weight_adjustment"), this->font_weight_adjustment,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "text_size_contrast_factor"), this->text_size_contrast_factor,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type int32_t>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "force_enable_zoom"), this->force_enable_zoom,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "default_video_poster_url"), this->default_video_poster_url,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type const ::GURL&>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "support_deprecated_target_density_dpi"), this->support_deprecated_target_density_dpi,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "wide_viewport_quirk"), this->wide_viewport_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "use_wide_viewport"), this->use_wide_viewport,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "force_zero_layout_height"), this->force_zero_layout_height,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "viewport_meta_merge_content_quirk"), this->viewport_meta_merge_content_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "viewport_meta_non_user_scalable_quirk"), this->viewport_meta_non_user_scalable_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "viewport_meta_zero_values_quirk"), this->viewport_meta_zero_values_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "clobber_user_agent_initial_scale_quirk"), this->clobber_user_agent_initial_scale_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "ignore_main_frame_overflow_hidden_quirk"), this->ignore_main_frame_overflow_hidden_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "report_screen_size_in_physical_pixels_quirk"), this->report_screen_size_in_physical_pixels_quirk,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "reuse_global_for_unowned_main_frame"), this->reuse_global_for_unowned_main_frame,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "spellcheck_enabled_by_default"), this->spellcheck_enabled_by_default,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "video_fullscreen_orientation_lock_enabled"), this->video_fullscreen_orientation_lock_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "video_rotate_to_fullscreen_enabled"), this->video_rotate_to_fullscreen_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "embedded_media_experience_enabled"), this->embedded_media_experience_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "css_hex_alpha_color_enabled"), this->css_hex_alpha_color_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "scroll_top_left_interop_enabled"), this->scroll_top_left_interop_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "disable_accelerated_small_canvases"), this->disable_accelerated_small_canvases,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "long_press_link_select_text"), this->long_press_link_select_text,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "scale_all_fonts_if_no_meta_text_scale_tag"), this->scale_all_fonts_if_no_meta_text_scale_tag,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "disable_webauthn"), this->disable_webauthn,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "force_dark_mode_enabled"), this->force_dark_mode_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "default_minimum_page_scale_factor"), this->default_minimum_page_scale_factor,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type float>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "default_maximum_page_scale_factor"), this->default_maximum_page_scale_factor,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type float>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "hide_download_ui"), this->hide_download_ui,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "presentation_receiver"), this->presentation_receiver,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "media_controls_enabled"), this->media_controls_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "do_not_update_selection_on_mutating_selection_range"), this->do_not_update_selection_on_mutating_selection_range,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "autoplay_policy"), this->autoplay_policy,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type AutoplayPolicy>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "require_transient_activation_for_get_display_media"), this->require_transient_activation_for_get_display_media,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "require_transient_activation_for_show_file_or_directory_picker"), this->require_transient_activation_for_show_file_or_directory_picker,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "in_forced_colors"), this->in_forced_colors,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "is_forced_colors_disabled"), this->is_forced_colors_disabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "root_scrollbar_theme_color"), this->root_scrollbar_theme_color,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type std::optional<::SkColor>>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "preferred_root_scrollbar_color_scheme"), this->preferred_root_scrollbar_color_scheme,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type ::blink::mojom::PreferredColorScheme>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "preferred_color_scheme"), this->preferred_color_scheme,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type ::blink::mojom::PreferredColorScheme>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "preferred_contrast"), this->preferred_contrast,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type ::blink::mojom::PreferredContrast>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "low_priority_iframes_threshold"), this->low_priority_iframes_threshold,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type EffectiveConnectionType>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "picture_in_picture_enabled"), this->picture_in_picture_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "translate_service_available"), this->translate_service_available,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "network_quality_estimator_web_holdback"), this->network_quality_estimator_web_holdback,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type EffectiveConnectionType>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "lazy_load_enabled"), this->lazy_load_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "allow_mixed_content_upgrades"), this->allow_mixed_content_upgrades,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "always_show_focus"), this->always_show_focus,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "touch_drag_drop_enabled"), this->touch_drag_drop_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "touch_dragend_context_menu"), this->touch_dragend_context_menu,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "webxr_immersive_ar_allowed"), this->webxr_immersive_ar_allowed,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "renderer_wide_named_frame_lookup"), this->renderer_wide_named_frame_lookup,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "strict_mime_type_check_for_worker_scripts_enabled"), this->strict_mime_type_check_for_worker_scripts_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "modal_context_menu"), this->modal_context_menu,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "dynamic_safe_area_insets_enabled"), this->dynamic_safe_area_insets_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "payment_request_enabled"), this->payment_request_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "ai_ot_apis_enabled"), this->ai_ot_apis_enabled,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "should_screenshot_on_mainframe_same_doc_navigation"), this->should_screenshot_on_mainframe_same_doc_navigation,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
  perfetto::WriteIntoTracedValueWithFallback(
    dict.AddItem(
      "is_indigo_onboarding"), this->is_indigo_onboarding,
#if BUILDFLAG(MOJO_TRACE_ENABLED)
      "<value of type bool>"
#else
      "<value>"
#endif  // BUILDFLAG(MOJO_TRACE_ENABLED)
    );
}

bool WebPreferences::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {
  return Data_::Validate(data, validation_context);
}


}  // blink::mojom


namespace mojo {


// static
bool StructTraits<::blink::mojom::WebPreferences::DataView, ::blink::mojom::WebPreferencesPtr>::Read(
    ::blink::mojom::WebPreferences::DataView input,
    ::blink::mojom::WebPreferencesPtr* output) {
  bool success = true;
  ::blink::mojom::WebPreferencesPtr result(::blink::mojom::WebPreferences::New());
  
      if (success && !input.ReadStandardFontFamilyMap(&result->standard_font_family_map))
        success = false;
      if (success && !input.ReadFixedFontFamilyMap(&result->fixed_font_family_map))
        success = false;
      if (success && !input.ReadSerifFontFamilyMap(&result->serif_font_family_map))
        success = false;
      if (success && !input.ReadSansSerifFontFamilyMap(&result->sans_serif_font_family_map))
        success = false;
      if (success && !input.ReadCursiveFontFamilyMap(&result->cursive_font_family_map))
        success = false;
      if (success && !input.ReadFantasyFontFamilyMap(&result->fantasy_font_family_map))
        success = false;
      if (success && !input.ReadMathFontFamilyMap(&result->math_font_family_map))
        success = false;
      if (success)
        result->default_font_size = input.default_font_size();
      if (success)
        result->default_fixed_font_size = input.default_fixed_font_size();
      if (success)
        result->minimum_font_size = input.minimum_font_size();
      if (success)
        result->minimum_logical_font_size = input.minimum_logical_font_size();
      if (success && !input.ReadDefaultEncoding(&result->default_encoding))
        success = false;
      if (success)
        result->context_menu_on_mouse_up = input.context_menu_on_mouse_up();
      if (success)
        result->javascript_enabled = input.javascript_enabled();
      if (success)
        result->web_security_enabled = input.web_security_enabled();
      if (success)
        result->loads_images_automatically = input.loads_images_automatically();
      if (success)
        result->images_enabled = input.images_enabled();
      if (success)
        result->plugins_enabled = input.plugins_enabled();
      if (success)
        result->dom_paste_enabled = input.dom_paste_enabled();
      if (success)
        result->shrinks_standalone_images_to_fit = input.shrinks_standalone_images_to_fit();
      if (success)
        result->text_areas_are_resizable = input.text_areas_are_resizable();
      if (success)
        result->allow_scripts_to_close_windows = input.allow_scripts_to_close_windows();
      if (success)
        result->allow_unrestricted_window_focus = input.allow_unrestricted_window_focus();
      if (success)
        result->remote_fonts_enabled = input.remote_fonts_enabled();
      if (success)
        result->javascript_can_access_clipboard = input.javascript_can_access_clipboard();
      if (success)
        result->dns_prefetching_enabled = input.dns_prefetching_enabled();
      if (success)
        result->data_saver_enabled = input.data_saver_enabled();
      if (success)
        result->battery_saver_enabled = input.battery_saver_enabled();
      if (success)
        result->preloading_disabled = input.preloading_disabled();
      if (success)
        result->local_storage_enabled = input.local_storage_enabled();
      if (success)
        result->tabs_to_links = input.tabs_to_links();
      if (success)
        result->disable_ipc_flooding_protection = input.disable_ipc_flooding_protection();
      if (success)
        result->hyperlink_auditing_enabled = input.hyperlink_auditing_enabled();
      if (success)
        result->allow_universal_access_from_file_urls = input.allow_universal_access_from_file_urls();
      if (success)
        result->allow_file_access_from_file_urls = input.allow_file_access_from_file_urls();
      if (success)
        result->webgl1_enabled = input.webgl1_enabled();
      if (success)
        result->webgl2_enabled = input.webgl2_enabled();
      if (success)
        result->privileged_webgl_extensions_enabled = input.privileged_webgl_extensions_enabled();
      if (success)
        result->webgl_errors_to_console_enabled = input.webgl_errors_to_console_enabled();
      if (success)
        result->hide_scrollbars = input.hide_scrollbars();
      if (success)
        result->prefers_default_scrollbar_styles = input.prefers_default_scrollbar_styles();
      if (success)
        result->accelerated_2d_canvas_enabled = input.accelerated_2d_canvas_enabled();
      if (success)
        result->canvas_2d_layers_enabled = input.canvas_2d_layers_enabled();
      if (success)
        result->antialiased_2d_canvas_disabled = input.antialiased_2d_canvas_disabled();
      if (success)
        result->antialiased_clips_2d_canvas_enabled = input.antialiased_clips_2d_canvas_enabled();
      if (success)
        result->accelerated_filters_enabled = input.accelerated_filters_enabled();
      if (success)
        result->deferred_filters_enabled = input.deferred_filters_enabled();
      if (success)
        result->container_culling_enabled = input.container_culling_enabled();
      if (success)
        result->allow_running_insecure_content = input.allow_running_insecure_content();
      if (success)
        result->disable_reading_from_canvas = input.disable_reading_from_canvas();
      if (success)
        result->strict_mixed_content_checking = input.strict_mixed_content_checking();
      if (success)
        result->allow_geolocation_on_insecure_origins = input.allow_geolocation_on_insecure_origins();
      if (success)
        result->strictly_block_blockable_mixed_content = input.strictly_block_blockable_mixed_content();
      if (success)
        result->block_mixed_plugin_content = input.block_mixed_plugin_content();
      if (success)
        result->highlight_ads = input.highlight_ads();
      if (success)
        result->password_echo_enabled_physical = input.password_echo_enabled_physical();
      if (success)
        result->password_echo_enabled_touch = input.password_echo_enabled_touch();
      if (success)
        result->should_clear_document_background = input.should_clear_document_background();
      if (success)
        result->enable_scroll_animator = input.enable_scroll_animator();
      if (success)
        result->prefers_reduced_motion = input.prefers_reduced_motion();
      if (success)
        result->prefers_reduced_transparency = input.prefers_reduced_transparency();
      if (success)
        result->inverted_colors = input.inverted_colors();
      if (success)
        result->touch_event_feature_detection_enabled = input.touch_event_feature_detection_enabled();
      if (success)
        result->pointer_events_max_touch_points = input.pointer_events_max_touch_points();
      if (success)
        result->available_pointer_types = input.available_pointer_types();
      if (success && !input.ReadPrimaryPointerType(&result->primary_pointer_type))
        success = false;
      if (success && !input.ReadOutputDeviceUpdateAbilityType(&result->output_device_update_ability_type))
        success = false;
      if (success)
        result->available_hover_types = input.available_hover_types();
      if (success && !input.ReadPrimaryHoverType(&result->primary_hover_type))
        success = false;
      if (success)
        result->dont_send_key_events_to_javascript = input.dont_send_key_events_to_javascript();
      if (success)
        result->barrel_button_for_drag_enabled = input.barrel_button_for_drag_enabled();
      if (success)
        result->sync_xhr_in_documents_enabled = input.sync_xhr_in_documents_enabled();
      if (success)
        result->target_blank_implies_no_opener_enabled_will_be_removed = input.target_blank_implies_no_opener_enabled_will_be_removed();
      if (success)
        result->ignore_permission_for_device_changed_event = input.ignore_permission_for_device_changed_event();
      if (success)
        result->number_of_cpu_cores = input.number_of_cpu_cores();
      if (success && !input.ReadEditingBehavior(&result->editing_behavior))
        success = false;
      if (success)
        result->supports_multiple_windows = input.supports_multiple_windows();
      if (success)
        result->viewport_enabled = input.viewport_enabled();
      if (success)
        result->viewport_meta_enabled = input.viewport_meta_enabled();
      if (success)
        result->auto_zoom_focused_editable_to_legible_scale = input.auto_zoom_focused_editable_to_legible_scale();
      if (success)
        result->shrinks_viewport_contents_to_fit = input.shrinks_viewport_contents_to_fit();
      if (success && !input.ReadViewportStyle(&result->viewport_style))
        success = false;
      if (success)
        result->smooth_scroll_for_find_enabled = input.smooth_scroll_for_find_enabled();
      if (success)
        result->main_frame_resizes_are_orientation_changes = input.main_frame_resizes_are_orientation_changes();
      if (success)
        result->initialize_at_minimum_page_scale = input.initialize_at_minimum_page_scale();
      if (success)
        result->smart_insert_delete_enabled = input.smart_insert_delete_enabled();
      if (success)
        result->spatial_navigation_enabled = input.spatial_navigation_enabled();
      if (success && !input.ReadV8CacheOptions(&result->v8_cache_options))
        success = false;
      if (success)
        result->record_whole_document = input.record_whole_document();
      if (success)
        result->stylus_handwriting_enabled = input.stylus_handwriting_enabled();
      if (success)
        result->cookie_enabled = input.cookie_enabled();
      if (success)
        result->accelerated_video_decode_enabled = input.accelerated_video_decode_enabled();
      if (success && !input.ReadAnimationPolicy(&result->animation_policy))
        success = false;
      if (success)
        result->user_gesture_required_for_presentation = input.user_gesture_required_for_presentation();
      if (success)
        result->text_tracks_enabled = input.text_tracks_enabled();
      if (success && !input.ReadTextTrackBackgroundColor(&result->text_track_background_color))
        success = false;
      if (success && !input.ReadTextTrackTextColor(&result->text_track_text_color))
        success = false;
      if (success && !input.ReadTextTrackTextSize(&result->text_track_text_size))
        success = false;
      if (success && !input.ReadTextTrackTextShadow(&result->text_track_text_shadow))
        success = false;
      if (success && !input.ReadTextTrackFontFamily(&result->text_track_font_family))
        success = false;
      if (success && !input.ReadTextTrackFontStyle(&result->text_track_font_style))
        success = false;
      if (success && !input.ReadTextTrackFontVariant(&result->text_track_font_variant))
        success = false;
      if (success && !input.ReadTextTrackWindowColor(&result->text_track_window_color))
        success = false;
      if (success && !input.ReadTextTrackWindowRadius(&result->text_track_window_radius))
        success = false;
      if (success)
        result->text_track_margin_percentage = input.text_track_margin_percentage();
      if (success)
        result->immersive_mode_enabled = input.immersive_mode_enabled();
      if (success)
        result->immersive_video_playback_enabled = input.immersive_video_playback_enabled();
      if (success)
        result->double_tap_to_zoom_enabled = input.double_tap_to_zoom_enabled();
      if (success)
        result->fullscreen_supported = input.fullscreen_supported();
      if (success)
        result->text_size_adjust_enabled = input.text_size_adjust_enabled();
      if (success && !input.ReadWebAppScope(&result->web_app_scope))
        success = false;
      if (success)
        result->is_initial_profile = input.is_initial_profile();
      if (success)
        result->font_scale_factor = input.font_scale_factor();
      if (success)
        result->font_weight_adjustment = input.font_weight_adjustment();
      if (success)
        result->text_size_contrast_factor = input.text_size_contrast_factor();
      if (success)
        result->force_enable_zoom = input.force_enable_zoom();
      if (success && !input.ReadDefaultVideoPosterUrl(&result->default_video_poster_url))
        success = false;
      if (success)
        result->support_deprecated_target_density_dpi = input.support_deprecated_target_density_dpi();
      if (success)
        result->wide_viewport_quirk = input.wide_viewport_quirk();
      if (success)
        result->use_wide_viewport = input.use_wide_viewport();
      if (success)
        result->force_zero_layout_height = input.force_zero_layout_height();
      if (success)
        result->viewport_meta_merge_content_quirk = input.viewport_meta_merge_content_quirk();
      if (success)
        result->viewport_meta_non_user_scalable_quirk = input.viewport_meta_non_user_scalable_quirk();
      if (success)
        result->viewport_meta_zero_values_quirk = input.viewport_meta_zero_values_quirk();
      if (success)
        result->clobber_user_agent_initial_scale_quirk = input.clobber_user_agent_initial_scale_quirk();
      if (success)
        result->ignore_main_frame_overflow_hidden_quirk = input.ignore_main_frame_overflow_hidden_quirk();
      if (success)
        result->report_screen_size_in_physical_pixels_quirk = input.report_screen_size_in_physical_pixels_quirk();
      if (success)
        result->reuse_global_for_unowned_main_frame = input.reuse_global_for_unowned_main_frame();
      if (success)
        result->spellcheck_enabled_by_default = input.spellcheck_enabled_by_default();
      if (success)
        result->video_fullscreen_orientation_lock_enabled = input.video_fullscreen_orientation_lock_enabled();
      if (success)
        result->video_rotate_to_fullscreen_enabled = input.video_rotate_to_fullscreen_enabled();
      if (success)
        result->embedded_media_experience_enabled = input.embedded_media_experience_enabled();
      if (success)
        result->css_hex_alpha_color_enabled = input.css_hex_alpha_color_enabled();
      if (success)
        result->scroll_top_left_interop_enabled = input.scroll_top_left_interop_enabled();
      if (success)
        result->disable_accelerated_small_canvases = input.disable_accelerated_small_canvases();
      if (success)
        result->long_press_link_select_text = input.long_press_link_select_text();
      if (success)
        result->scale_all_fonts_if_no_meta_text_scale_tag = input.scale_all_fonts_if_no_meta_text_scale_tag();
      if (success)
        result->disable_webauthn = input.disable_webauthn();
      if (success)
        result->force_dark_mode_enabled = input.force_dark_mode_enabled();
      if (success)
        result->default_minimum_page_scale_factor = input.default_minimum_page_scale_factor();
      if (success)
        result->default_maximum_page_scale_factor = input.default_maximum_page_scale_factor();
      if (success)
        result->hide_download_ui = input.hide_download_ui();
      if (success)
        result->presentation_receiver = input.presentation_receiver();
      if (success)
        result->media_controls_enabled = input.media_controls_enabled();
      if (success)
        result->do_not_update_selection_on_mutating_selection_range = input.do_not_update_selection_on_mutating_selection_range();
      if (success && !input.ReadAutoplayPolicy(&result->autoplay_policy))
        success = false;
      if (success)
        result->require_transient_activation_for_get_display_media = input.require_transient_activation_for_get_display_media();
      if (success)
        result->require_transient_activation_for_show_file_or_directory_picker = input.require_transient_activation_for_show_file_or_directory_picker();
      if (success)
        result->in_forced_colors = input.in_forced_colors();
      if (success)
        result->is_forced_colors_disabled = input.is_forced_colors_disabled();
      if (success && !input.ReadRootScrollbarThemeColor(&result->root_scrollbar_theme_color))
        success = false;
      if (success && !input.ReadPreferredRootScrollbarColorScheme(&result->preferred_root_scrollbar_color_scheme))
        success = false;
      if (success && !input.ReadPreferredColorScheme(&result->preferred_color_scheme))
        success = false;
      if (success && !input.ReadPreferredContrast(&result->preferred_contrast))
        success = false;
      if (success && !input.ReadLowPriorityIframesThreshold(&result->low_priority_iframes_threshold))
        success = false;
      if (success)
        result->picture_in_picture_enabled = input.picture_in_picture_enabled();
      if (success)
        result->translate_service_available = input.translate_service_available();
      if (success && !input.ReadNetworkQualityEstimatorWebHoldback(&result->network_quality_estimator_web_holdback))
        success = false;
      if (success)
        result->lazy_load_enabled = input.lazy_load_enabled();
      if (success)
        result->allow_mixed_content_upgrades = input.allow_mixed_content_upgrades();
      if (success)
        result->always_show_focus = input.always_show_focus();
      if (success)
        result->touch_drag_drop_enabled = input.touch_drag_drop_enabled();
      if (success)
        result->touch_dragend_context_menu = input.touch_dragend_context_menu();
      if (success)
        result->webxr_immersive_ar_allowed = input.webxr_immersive_ar_allowed();
      if (success)
        result->renderer_wide_named_frame_lookup = input.renderer_wide_named_frame_lookup();
      if (success)
        result->strict_mime_type_check_for_worker_scripts_enabled = input.strict_mime_type_check_for_worker_scripts_enabled();
      if (success)
        result->modal_context_menu = input.modal_context_menu();
      if (success)
        result->dynamic_safe_area_insets_enabled = input.dynamic_safe_area_insets_enabled();
      if (success)
        result->payment_request_enabled = input.payment_request_enabled();
      if (success)
        result->ai_ot_apis_enabled = input.ai_ot_apis_enabled();
      if (success)
        result->should_screenshot_on_mainframe_same_doc_navigation = input.should_screenshot_on_mainframe_same_doc_navigation();
      if (success)
        result->is_indigo_onboarding = input.is_indigo_onboarding();
  *output = std::move(result);
  return success;
}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace blink::mojom {




}  // blink::mojom


#if defined(__clang__)
#pragma clang diagnostic pop
#endif