#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/annotation/annotation.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/annotation/annotation.mojom-params-data.h"
#include "third_party/blink/public/mojom/annotation/annotation.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/annotation/annotation.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/annotation/annotation.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
SelectorCreationResult::SelectorCreationResult()
: … { … }
SelectorCreationResult::SelectorCreationResult(
::mojo::PendingReceiver<AnnotationAgentHost> host_receiver_in,
::mojo::PendingRemote<AnnotationAgent> agent_remote_in,
const WTF::String& serialized_selector_in,
const ::WTF::String& selected_text_in)
: … { … }
SelectorCreationResult::~SelectorCreationResult() = default;
void SelectorCreationResult::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool SelectorCreationResult::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char AnnotationAgent::Name_[] = …;
AnnotationAgent::IPCStableHashFunction AnnotationAgent::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AnnotationAgent::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AnnotationAgent::ScrollIntoView_Sym::IPCStableHash() { … }
# endif
AnnotationAgentProxy::AnnotationAgentProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AnnotationAgentProxy::ScrollIntoView(
) { … }
bool AnnotationAgentStubDispatch::Accept(
AnnotationAgent* impl,
mojo::Message* message) { … }
bool AnnotationAgentStubDispatch::AcceptWithResponder(
AnnotationAgent* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAnnotationAgentValidationInfo[] = …;
bool AnnotationAgentRequestValidator::Accept(mojo::Message* message) { … }
const char AnnotationAgentHost::Name_[] = …;
AnnotationAgentHost::IPCStableHashFunction AnnotationAgentHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AnnotationAgentHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AnnotationAgentHost::DidFinishAttachment_Sym::IPCStableHash() { … }
# endif
AnnotationAgentHostProxy::AnnotationAgentHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AnnotationAgentHostProxy::DidFinishAttachment(
const ::gfx::Rect& in_document_relative_rect) { … }
bool AnnotationAgentHostStubDispatch::Accept(
AnnotationAgentHost* impl,
mojo::Message* message) { … }
bool AnnotationAgentHostStubDispatch::AcceptWithResponder(
AnnotationAgentHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAnnotationAgentHostValidationInfo[] = …;
bool AnnotationAgentHostRequestValidator::Accept(mojo::Message* message) { … }
const char AnnotationAgentContainer::Name_[] = …;
AnnotationAgentContainer::IPCStableHashFunction AnnotationAgentContainer::MessageToMethodInfo_(mojo::Message& message) { … }
const char* AnnotationAgentContainer::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t AnnotationAgentContainer::CreateAgent_Sym::IPCStableHash() { … }
uint32_t AnnotationAgentContainer::CreateAgentFromSelection_Sym::IPCStableHash() { … }
# endif
class AnnotationAgentContainer_CreateAgentFromSelection_ForwardToCallback
: public mojo::MessageReceiver { … };
AnnotationAgentContainerProxy::AnnotationAgentContainerProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void AnnotationAgentContainerProxy::CreateAgent(
::mojo::PendingRemote<AnnotationAgentHost> in_host_remote, ::mojo::PendingReceiver<AnnotationAgent> in_agent_receiver, AnnotationType in_type, const WTF::String& in_serialized_selector) { … }
void AnnotationAgentContainerProxy::CreateAgentFromSelection(
AnnotationType in_type, CreateAgentFromSelectionCallback callback) { … }
class AnnotationAgentContainer_CreateAgentFromSelection_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool AnnotationAgentContainer_CreateAgentFromSelection_ForwardToCallback::Accept(
mojo::Message* message) { … }
void AnnotationAgentContainer_CreateAgentFromSelection_ProxyToResponder::Run(
SelectorCreationResultPtr in_result, ::shared_highlighting::LinkGenerationError in_error, ::shared_highlighting::LinkGenerationReadyStatus in_ready_status) { … }
bool AnnotationAgentContainerStubDispatch::Accept(
AnnotationAgentContainer* impl,
mojo::Message* message) { … }
bool AnnotationAgentContainerStubDispatch::AcceptWithResponder(
AnnotationAgentContainer* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kAnnotationAgentContainerValidationInfo[] = …;
bool AnnotationAgentContainerRequestValidator::Accept(mojo::Message* message) { … }
bool AnnotationAgentContainerResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::SelectorCreationResult::DataView, ::blink::mojom::blink::SelectorCreationResultPtr>::Read(
::blink::mojom::blink::SelectorCreationResult::DataView input,
::blink::mojom::blink::SelectorCreationResultPtr* output) { … }
}
namespace blink::mojom::blink {
void AnnotationAgentInterceptorForTesting::ScrollIntoView() { … }
AnnotationAgentAsyncWaiter::AnnotationAgentAsyncWaiter(
AnnotationAgent* proxy) : … { … }
AnnotationAgentAsyncWaiter::~AnnotationAgentAsyncWaiter() = default;
void AnnotationAgentHostInterceptorForTesting::DidFinishAttachment(const ::gfx::Rect& document_relative_rect) { … }
AnnotationAgentHostAsyncWaiter::AnnotationAgentHostAsyncWaiter(
AnnotationAgentHost* proxy) : … { … }
AnnotationAgentHostAsyncWaiter::~AnnotationAgentHostAsyncWaiter() = default;
void AnnotationAgentContainerInterceptorForTesting::CreateAgent(::mojo::PendingRemote<AnnotationAgentHost> host_remote, ::mojo::PendingReceiver<AnnotationAgent> agent_receiver, AnnotationType type, const WTF::String& serialized_selector) { … }
void AnnotationAgentContainerInterceptorForTesting::CreateAgentFromSelection(AnnotationType type, CreateAgentFromSelectionCallback callback) { … }
AnnotationAgentContainerAsyncWaiter::AnnotationAgentContainerAsyncWaiter(
AnnotationAgentContainer* proxy) : … { … }
AnnotationAgentContainerAsyncWaiter::~AnnotationAgentContainerAsyncWaiter() = default;
void AnnotationAgentContainerAsyncWaiter::CreateAgentFromSelection(
AnnotationType type, SelectorCreationResultPtr* out_result, ::shared_highlighting::LinkGenerationError* out_error, ::shared_highlighting::LinkGenerationReadyStatus* out_ready_status) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif