#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "third_party/blink/public/mojom/render_accessibility.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/render_accessibility.mojom-params-data.h"
#include "third_party/blink/public/mojom/render_accessibility.mojom-shared-message-ids.h"
#include "third_party/blink/public/mojom/render_accessibility.mojom-blink-import-headers.h"
#include "third_party/blink/public/mojom/render_accessibility.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace blink::mojom::blink {
LocationChanges::LocationChanges()
: … { … }
LocationChanges::LocationChanges(
int32_t id_in,
const ::ui::AXRelativeBounds& new_location_in)
: … { … }
LocationChanges::~LocationChanges() = default;
void LocationChanges::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool LocationChanges::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
HitTestResponse::HitTestResponse()
: … { … }
HitTestResponse::HitTestResponse(
const ::blink::FrameToken& hit_frame_token_in,
const ::gfx::Point& hit_frame_transformed_point_in,
int32_t hit_node_id_in)
: … { … }
HitTestResponse::~HitTestResponse() = default;
void HitTestResponse::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool HitTestResponse::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char RenderAccessibilityHost::Name_[] = …;
RenderAccessibilityHost::IPCStableHashFunction RenderAccessibilityHost::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RenderAccessibilityHost::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RenderAccessibilityHost::HandleAXEvents_Sym::IPCStableHash() { … }
uint32_t RenderAccessibilityHost::HandleAXLocationChanges_Sym::IPCStableHash() { … }
# endif
class RenderAccessibilityHost_HandleAXEvents_ForwardToCallback
: public mojo::MessageReceiver { … };
RenderAccessibilityHostProxy::RenderAccessibilityHostProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RenderAccessibilityHostProxy::HandleAXEvents(
::ax::mojom::blink::AXUpdatesAndEventsPtr in_events_and_updates, uint32_t in_reset_token, HandleAXEventsCallback callback) { … }
void RenderAccessibilityHostProxy::HandleAXLocationChanges(
WTF::Vector<LocationChangesPtr> in_changes, uint32_t in_reset_token) { … }
class RenderAccessibilityHost_HandleAXEvents_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool RenderAccessibilityHost_HandleAXEvents_ForwardToCallback::Accept(
mojo::Message* message) { … }
void RenderAccessibilityHost_HandleAXEvents_ProxyToResponder::Run(
) { … }
bool RenderAccessibilityHostStubDispatch::Accept(
RenderAccessibilityHost* impl,
mojo::Message* message) { … }
bool RenderAccessibilityHostStubDispatch::AcceptWithResponder(
RenderAccessibilityHost* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRenderAccessibilityHostValidationInfo[] = …;
bool RenderAccessibilityHostRequestValidator::Accept(mojo::Message* message) { … }
bool RenderAccessibilityHostResponseValidator::Accept(mojo::Message* message) { … }
const char RenderAccessibility::Name_[] = …;
RenderAccessibility::IPCStableHashFunction RenderAccessibility::MessageToMethodInfo_(mojo::Message& message) { … }
const char* RenderAccessibility::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RenderAccessibility::SetMode_Sym::IPCStableHash() { … }
uint32_t RenderAccessibility::FatalError_Sym::IPCStableHash() { … }
uint32_t RenderAccessibility::HitTest_Sym::IPCStableHash() { … }
uint32_t RenderAccessibility::PerformAction_Sym::IPCStableHash() { … }
uint32_t RenderAccessibility::Reset_Sym::IPCStableHash() { … }
# endif
class RenderAccessibility_HitTest_ForwardToCallback
: public mojo::MessageReceiver { … };
RenderAccessibilityProxy::RenderAccessibilityProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void RenderAccessibilityProxy::SetMode(
::ax::mojom::blink::AXModePtr in_ax_mode, uint32_t in_reset_token) { … }
void RenderAccessibilityProxy::FatalError(
) { … }
void RenderAccessibilityProxy::HitTest(
const ::gfx::Point& in_point, ::ax::mojom::blink::Event in_event_to_fire, int32_t in_request_id, HitTestCallback callback) { … }
void RenderAccessibilityProxy::PerformAction(
::ax::mojom::blink::AXActionDataPtr in_action_data) { … }
void RenderAccessibilityProxy::Reset(
uint32_t in_reset_token) { … }
class RenderAccessibility_HitTest_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool RenderAccessibility_HitTest_ForwardToCallback::Accept(
mojo::Message* message) { … }
void RenderAccessibility_HitTest_ProxyToResponder::Run(
HitTestResponsePtr in_hit_test_response) { … }
bool RenderAccessibilityStubDispatch::Accept(
RenderAccessibility* impl,
mojo::Message* message) { … }
bool RenderAccessibilityStubDispatch::AcceptWithResponder(
RenderAccessibility* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kRenderAccessibilityValidationInfo[] = …;
bool RenderAccessibilityRequestValidator::Accept(mojo::Message* message) { … }
bool RenderAccessibilityResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::blink::mojom::blink::LocationChanges::DataView, ::blink::mojom::blink::LocationChangesPtr>::Read(
::blink::mojom::blink::LocationChanges::DataView input,
::blink::mojom::blink::LocationChangesPtr* output) { … }
bool StructTraits<::blink::mojom::blink::HitTestResponse::DataView, ::blink::mojom::blink::HitTestResponsePtr>::Read(
::blink::mojom::blink::HitTestResponse::DataView input,
::blink::mojom::blink::HitTestResponsePtr* output) { … }
}
namespace blink::mojom::blink {
void RenderAccessibilityHostInterceptorForTesting::HandleAXEvents(::ax::mojom::blink::AXUpdatesAndEventsPtr events_and_updates, uint32_t reset_token, HandleAXEventsCallback callback) { … }
void RenderAccessibilityHostInterceptorForTesting::HandleAXLocationChanges(WTF::Vector<LocationChangesPtr> changes, uint32_t reset_token) { … }
RenderAccessibilityHostAsyncWaiter::RenderAccessibilityHostAsyncWaiter(
RenderAccessibilityHost* proxy) : … { … }
RenderAccessibilityHostAsyncWaiter::~RenderAccessibilityHostAsyncWaiter() = default;
void RenderAccessibilityHostAsyncWaiter::HandleAXEvents(
::ax::mojom::blink::AXUpdatesAndEventsPtr events_and_updates, uint32_t reset_token) { … }
void RenderAccessibilityInterceptorForTesting::SetMode(::ax::mojom::blink::AXModePtr ax_mode, uint32_t reset_token) { … }
void RenderAccessibilityInterceptorForTesting::FatalError() { … }
void RenderAccessibilityInterceptorForTesting::HitTest(const ::gfx::Point& point, ::ax::mojom::blink::Event event_to_fire, int32_t request_id, HitTestCallback callback) { … }
void RenderAccessibilityInterceptorForTesting::PerformAction(::ax::mojom::blink::AXActionDataPtr action_data) { … }
void RenderAccessibilityInterceptorForTesting::Reset(uint32_t reset_token) { … }
RenderAccessibilityAsyncWaiter::RenderAccessibilityAsyncWaiter(
RenderAccessibility* proxy) : … { … }
RenderAccessibilityAsyncWaiter::~RenderAccessibilityAsyncWaiter() = default;
void RenderAccessibilityAsyncWaiter::HitTest(
const ::gfx::Point& point, ::ax::mojom::blink::Event event_to_fire, int32_t request_id, HitTestResponsePtr* out_hit_test_response) { … }
HitTestResponsePtr RenderAccessibilityAsyncWaiter::HitTest(
const ::gfx::Point& point, ::ax::mojom::blink::Event event_to_fire, int32_t request_id) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif