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

// third_party/blink/public/mojom/context_menu/context_menu.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/context_menu/context_menu.mojom.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-import-headers.h"
#include "third_party/blink/public/mojom/context_menu/context_menu.mojom-test-utils.h"


namespace blink::mojom {
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 ::std::u16string& label_in,
    const ::std::u16string& icon_in,
    const ::std::u16string& tool_tip_in,
    CustomContextMenuItemType type_in,
    int32_t action_in,
    bool rtl_in,
    bool has_directional_override_in,
    bool enabled_in,
    bool checked_in,
    std::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 ::GURL& link_url_in,
    const ::std::u16string& link_text_in,
    const std::optional<::blink::Impression>& impression_in,
    const ::GURL& unfiltered_link_url_in,
    const ::GURL& src_url_in,
    bool has_image_contents_in,
    bool is_image_media_plugin_document_in,
    int32_t media_flags_in,
    const ::std::u16string& selection_text_in,
    const ::std::u16string& title_text_in,
    const ::std::u16string& alt_text_in,
    const ::std::u16string& suggested_filename_in,
    const ::std::u16string& misspelled_word_in,
    std::vector<::std::u16string> 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 std::string& frame_charset_in,
    ::network::mojom::ReferrerPolicy referrer_policy_in,
    const ::GURL& link_followed_in,
    std::vector<CustomContextMenuItemPtr> custom_items_in,
    ::ui::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::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 ::GURL& 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


namespace mojo {


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


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


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


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


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

ContextMenuClientAsyncWaiter::~ContextMenuClientAsyncWaiter() = default;






}  // blink::mojom


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