#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "ui/events/mojom/event.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 "ui/events/mojom/event.mojom-params-data.h"
#include "ui/events/mojom/event.mojom-shared-message-ids.h"
#include "ui/events/mojom/event.mojom-blink-import-headers.h"
#include "ui/events/mojom/event.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace ui::mojom::blink {
KeyData::KeyData()
: … { … }
KeyData::KeyData(
int32_t key_code_in,
uint32_t dom_code_in,
int32_t dom_key_in,
bool is_char_in)
: … { … }
KeyData::~KeyData() = default;
size_t KeyData::Hash(size_t seed) const { … }
void KeyData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool KeyData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
LocationData::LocationData()
: … { … }
LocationData::LocationData(
const ::gfx::PointF& relative_location_in,
const ::gfx::PointF& root_location_in)
: … { … }
LocationData::~LocationData() = default;
void LocationData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool LocationData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GesturePinchData::GesturePinchData()
: … { … }
GesturePinchData::GesturePinchData(
float scale_in)
: … { … }
GesturePinchData::~GesturePinchData() = default;
size_t GesturePinchData::Hash(size_t seed) const { … }
void GesturePinchData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool GesturePinchData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GestureSwipeData::GestureSwipeData()
: … { … }
GestureSwipeData::GestureSwipeData(
bool left_in,
bool right_in,
bool up_in,
bool down_in)
: … { … }
GestureSwipeData::~GestureSwipeData() = default;
size_t GestureSwipeData::Hash(size_t seed) const { … }
void GestureSwipeData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool GestureSwipeData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GestureData::GestureData()
: … { … }
GestureData::GestureData(
LocationDataPtr location_in,
::ui::mojom::blink::GestureDeviceType device_type_in,
GestureDataDetailsPtr details_in)
: … { … }
GestureData::~GestureData() = default;
void GestureData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool GestureData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ScrollData::ScrollData()
: … { … }
ScrollData::ScrollData(
LocationDataPtr location_in,
float x_offset_in,
float y_offset_in,
float x_offset_ordinal_in,
float y_offset_ordinal_in,
int32_t finger_count_in,
::ui::mojom::blink::EventMomentumPhase momentum_phase_in,
::ui::mojom::blink::ScrollEventPhase scroll_event_phase_in)
: … { … }
ScrollData::~ScrollData() = default;
void ScrollData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ScrollData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
PointerDetails::PointerDetails()
: … { … }
PointerDetails::PointerDetails(
::ui::EventPointerType pointer_type_in,
float radius_x_in,
float radius_y_in,
float force_in,
float tilt_x_in,
float tilt_y_in,
float tangential_pressure_in,
float twist_in,
int32_t id_in,
int32_t offset_x_in,
int32_t offset_y_in)
: … { … }
PointerDetails::~PointerDetails() = default;
void PointerDetails::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool PointerDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MouseData::MouseData()
: … { … }
MouseData::MouseData(
int32_t changed_button_flags_in,
LocationDataPtr location_in,
PointerDetailsPtr pointer_details_in,
const ::gfx::Vector2d& wheel_offset_in,
const ::gfx::Vector2d& tick_120ths_in)
: … { … }
MouseData::~MouseData() = default;
void MouseData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MouseData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
TouchData::TouchData()
: … { … }
TouchData::TouchData(
bool may_cause_scrolling_in,
bool hovering_in,
LocationDataPtr location_in,
PointerDetailsPtr pointer_details_in)
: … { … }
TouchData::~TouchData() = default;
void TouchData::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool TouchData::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
Event::Event()
: … { … }
Event::Event(
::ui::mojom::blink::EventType action_in,
int32_t flags_in,
::base::TimeTicks time_stamp_in,
const ::ui::LatencyInfo& latency_in,
KeyDataPtr key_data_in,
GestureDataPtr gesture_data_in,
ScrollDataPtr scroll_data_in,
TouchDataPtr touch_data_in,
MouseDataPtr mouse_data_in,
const std::optional<WTF::HashMap<WTF::String, WTF::Vector<uint8_t>>>& properties_in)
: … { … }
Event::~Event() = default;
void Event::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool Event::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
GestureDataDetails::GestureDataDetails() : … { … }
GestureDataDetails::~GestureDataDetails() { … }
void GestureDataDetails::set_pinch(
GesturePinchDataPtr pinch) { … }
void GestureDataDetails::set_swipe(
GestureSwipeDataPtr swipe) { … }
void GestureDataDetails::DestroyActive() { … }
size_t GestureDataDetails::Hash(size_t seed) const { … }
bool GestureDataDetails::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
}
namespace mojo {
bool StructTraits<::ui::mojom::blink::KeyData::DataView, ::ui::mojom::blink::KeyDataPtr>::Read(
::ui::mojom::blink::KeyData::DataView input,
::ui::mojom::blink::KeyDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::LocationData::DataView, ::ui::mojom::blink::LocationDataPtr>::Read(
::ui::mojom::blink::LocationData::DataView input,
::ui::mojom::blink::LocationDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::GesturePinchData::DataView, ::ui::mojom::blink::GesturePinchDataPtr>::Read(
::ui::mojom::blink::GesturePinchData::DataView input,
::ui::mojom::blink::GesturePinchDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::GestureSwipeData::DataView, ::ui::mojom::blink::GestureSwipeDataPtr>::Read(
::ui::mojom::blink::GestureSwipeData::DataView input,
::ui::mojom::blink::GestureSwipeDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::GestureData::DataView, ::ui::mojom::blink::GestureDataPtr>::Read(
::ui::mojom::blink::GestureData::DataView input,
::ui::mojom::blink::GestureDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::ScrollData::DataView, ::ui::mojom::blink::ScrollDataPtr>::Read(
::ui::mojom::blink::ScrollData::DataView input,
::ui::mojom::blink::ScrollDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::PointerDetails::DataView, ::ui::mojom::blink::PointerDetailsPtr>::Read(
::ui::mojom::blink::PointerDetails::DataView input,
::ui::mojom::blink::PointerDetailsPtr* output) { … }
bool StructTraits<::ui::mojom::blink::MouseData::DataView, ::ui::mojom::blink::MouseDataPtr>::Read(
::ui::mojom::blink::MouseData::DataView input,
::ui::mojom::blink::MouseDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::TouchData::DataView, ::ui::mojom::blink::TouchDataPtr>::Read(
::ui::mojom::blink::TouchData::DataView input,
::ui::mojom::blink::TouchDataPtr* output) { … }
bool StructTraits<::ui::mojom::blink::Event::DataView, ::ui::mojom::blink::EventPtr>::Read(
::ui::mojom::blink::Event::DataView input,
::ui::mojom::blink::EventPtr* output) { … }
bool UnionTraits<::ui::mojom::blink::GestureDataDetails::DataView, ::ui::mojom::blink::GestureDataDetailsPtr>::Read(
::ui::mojom::blink::GestureDataDetails::DataView input,
::ui::mojom::blink::GestureDataDetailsPtr* output) { … }
}
namespace ui::mojom::blink {
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif