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

// third_party/blink/public/mojom/context_menu/context_menu.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/context_menu/context_menu.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/context_menu/context_menu.mojom-params-data.h"
#include "third_party/blink/public/mojom/context_menu/context_menu.mojom-shared-message-ids.h"

#include "third_party/blink/public/mojom/context_menu/context_menu.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/context_menu/context_menu.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


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

FormRendererId::FormRendererId(
    uint64_t id_in)
    :{}

FormRendererId::~FormRendererId() = default;
size_t FormRendererId::Hash(size_t seed) const {}

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

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

FieldRendererId::FieldRendererId(
    uint64_t id_in)
    :{}

FieldRendererId::~FieldRendererId() = default;
size_t FieldRendererId::Hash(size_t seed) const {}

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

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

CustomContextMenuItem::CustomContextMenuItem(
    const ::WTF::String& label_in,
    const ::WTF::String& icon_in,
    const ::WTF::String& tool_tip_in,
    CustomContextMenuItemType type_in,
    int32_t action_in,
    bool rtl_in,
    bool has_directional_override_in,
    bool enabled_in,
    bool checked_in,
    WTF::Vector<CustomContextMenuItemPtr> submenu_in)
    :{}

CustomContextMenuItem::~CustomContextMenuItem() = default;

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

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

UntrustworthyContextMenuParams::UntrustworthyContextMenuParams(
    ContextMenuDataMediaType media_type_in,
    int32_t x_in,
    int32_t y_in,
    const ::blink::KURL& link_url_in,
    const ::WTF::String& link_text_in,
    const std::optional<::blink::Impression>& impression_in,
    const ::blink::KURL& unfiltered_link_url_in,
    const ::blink::KURL& src_url_in,
    bool has_image_contents_in,
    bool is_image_media_plugin_document_in,
    int32_t media_flags_in,
    const ::WTF::String& selection_text_in,
    const ::WTF::String& title_text_in,
    const ::WTF::String& alt_text_in,
    const ::WTF::String& suggested_filename_in,
    const ::WTF::String& misspelled_word_in,
    WTF::Vector<::WTF::String> dictionary_suggestions_in,
    bool spellcheck_enabled_in,
    bool is_editable_in,
    int32_t writing_direction_default_in,
    int32_t writing_direction_left_to_right_in,
    int32_t writing_direction_right_to_left_in,
    int32_t edit_flags_in,
    const WTF::String& frame_charset_in,
    ::network::mojom::blink::ReferrerPolicy referrer_policy_in,
    const ::blink::KURL& link_followed_in,
    WTF::Vector<CustomContextMenuItemPtr> custom_items_in,
    ::ui::mojom::blink::MenuSourceType source_type_in,
    const ::gfx::Rect& selection_rect_in,
    int32_t selection_start_offset_in,
    bool opened_from_highlight_in,
    std::optional<::blink::mojom::blink::FormControlType> form_control_type_in,
    bool is_content_editable_for_autofill_in,
    FieldRendererIdPtr field_renderer_id_in,
    FormRendererIdPtr form_renderer_id_in,
    bool is_password_type_by_heuristics_in)
    :{}

UntrustworthyContextMenuParams::~UntrustworthyContextMenuParams() = default;

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

bool UntrustworthyContextMenuParams::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char ContextMenuClient::Name_[] =;

ContextMenuClient::IPCStableHashFunction ContextMenuClient::MessageToMethodInfo_(mojo::Message& message) {}


const char* ContextMenuClient::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t ContextMenuClient::CustomContextMenuAction_Sym::IPCStableHash() {}
uint32_t ContextMenuClient::ContextMenuClosed_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

ContextMenuClientProxy::ContextMenuClientProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void ContextMenuClientProxy::CustomContextMenuAction(
    uint32_t in_action) {}

void ContextMenuClientProxy::ContextMenuClosed(
    const ::blink::KURL& in_link_followed) {}

// static
bool ContextMenuClientStubDispatch::Accept(
    ContextMenuClient* impl,
    mojo::Message* message) {}

// static
bool ContextMenuClientStubDispatch::AcceptWithResponder(
    ContextMenuClient* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kContextMenuClientValidationInfo[] =;

bool ContextMenuClientRequestValidator::Accept(mojo::Message* message) {}



}  // blink::mojom::blink


namespace mojo {


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


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


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


// static
bool StructTraits<::blink::mojom::blink::UntrustworthyContextMenuParams::DataView, ::blink::mojom::blink::UntrustworthyContextMenuParamsPtr>::Read(
    ::blink::mojom::blink::UntrustworthyContextMenuParams::DataView input,
    ::blink::mojom::blink::UntrustworthyContextMenuParamsPtr* 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 {


void ContextMenuClientInterceptorForTesting::CustomContextMenuAction(uint32_t action) {}
void ContextMenuClientInterceptorForTesting::ContextMenuClosed(const ::blink::KURL& link_followed) {}
ContextMenuClientAsyncWaiter::ContextMenuClientAsyncWaiter(
    ContextMenuClient* proxy) :{}

ContextMenuClientAsyncWaiter::~ContextMenuClientAsyncWaiter() = default;






}  // blink::mojom::blink


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