chromium/out/Default/gen/third_party/blink/public/mojom/webpreferences/web_preferences.mojom-blink.cc

// third_party/blink/public/mojom/webpreferences/web_preferences.mojom-blink.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-blink.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.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 "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.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-blink-import-headers.h"
#include "third_party/blink/public/mojom/webpreferences/web_preferences.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace blink::mojom::blink {
WebPreferences::WebPreferences()
    :{}

WebPreferences::WebPreferences(
    const WTF::HashMap<WTF::String, ::WTF::String>& standard_font_family_map_in,
    const WTF::HashMap<WTF::String, ::WTF::String>& fixed_font_family_map_in,
    const WTF::HashMap<WTF::String, ::WTF::String>& serif_font_family_map_in,
    const WTF::HashMap<WTF::String, ::WTF::String>& sans_serif_font_family_map_in,
    const WTF::HashMap<WTF::String, ::WTF::String>& cursive_font_family_map_in,
    const WTF::HashMap<WTF::String, ::WTF::String>& fantasy_font_family_map_in,
    const WTF::HashMap<WTF::String, ::WTF::String>& 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 WTF::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 remote_fonts_enabled_in,
    bool javascript_can_access_clipboard_in,
    bool dns_prefetching_enabled_in,
    bool data_saver_enabled_in,
    bool local_storage_enabled_in,
    bool databases_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 pepper_3d_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 strict_powerful_feature_restrictions_in,
    bool allow_geolocation_on_insecure_origins_in,
    bool strictly_block_blockable_mixed_content_in,
    bool block_mixed_plugin_content_in,
    bool password_echo_enabled_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 allow_non_empty_navigator_plugins_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::blink::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 WTF::String& text_track_background_color_in,
    const WTF::String& text_track_text_color_in,
    const WTF::String& text_track_text_size_in,
    const WTF::String& text_track_text_shadow_in,
    const WTF::String& text_track_font_family_in,
    const WTF::String& text_track_font_style_in,
    const WTF::String& text_track_font_variant_in,
    const WTF::String& text_track_window_color_in,
    const WTF::String& text_track_window_radius_in,
    float text_track_margin_percentage_in,
    bool immersive_mode_enabled_in,
    bool double_tap_to_zoom_enabled_in,
    bool fullscreen_supported_in,
    bool text_autosizing_enabled_in,
    const ::blink::KURL& web_app_scope_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 require_transient_activation_and_user_confirmation_for_subapps_api_in,
    bool in_forced_colors_in,
    bool is_forced_colors_disabled_in,
    ::blink::mojom::blink::PreferredColorScheme preferred_root_scrollbar_color_scheme_in,
    ::blink::mojom::blink::PreferredColorScheme preferred_color_scheme_in,
    ::blink::mojom::blink::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 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)
    :{}

WebPreferences::~WebPreferences() = default;

void WebPreferences::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

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


}  // blink::mojom::blink


namespace mojo {


// static
bool StructTraits<::blink::mojom::blink::WebPreferences::DataView, ::blink::mojom::blink::WebPreferencesPtr>::Read(
    ::blink::mojom::blink::WebPreferences::DataView input,
    ::blink::mojom::blink::WebPreferencesPtr* output) {}

}  // 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 {




}  // blink::mojom::blink


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