// ui/accessibility/mojom/ax_event_intent.mojom-send-validation.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_SEND_VALIDATION_H_
#define UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_SEND_VALIDATION_H_

#include "ui/accessibility/mojom/ax_event_intent.mojom-shared-internal.h"
#include "ui/accessibility/ax_enums.mojom-shared.h"

#include "ui/accessibility/mojom/ax_event_intent.mojom-data-view.h"

#include "mojo/public/cpp/bindings/lib/send_validation_type.h"
#include "mojo/public/cpp/bindings/lib/send_validation.h"

namespace mojo::internal {

template <typename MaybeConstUserType, mojo::internal::SendValidation send_validation>
struct SendValidationSerializer<::ax::mojom::EventIntentDataView, MaybeConstUserType, send_validation> {
  using UserType = typename std::remove_const<MaybeConstUserType>::type;
  using Traits = StructTraits<::ax::mojom::EventIntentDataView, UserType>;
  static void Serialize(
      MaybeConstUserType& input,
      mojo::internal::MessageFragment<::ax::mojom::internal::EventIntent_Data>& fragment) {
    if (CallIsNullIfExists<Traits>(input))
      return;
    fragment.Allocate();

      
      mojo::internal::Serialize<::ax::mojom::Command>(
        Traits::command(input),
        &fragment->command);

      
      mojo::internal::Serialize<::ax::mojom::InputEventType>(
        Traits::input_event_type(input),
        &fragment->input_event_type);

      
      mojo::internal::Serialize<::ax::mojom::TextBoundary>(
        Traits::text_boundary(input),
        &fragment->text_boundary);

      
      mojo::internal::Serialize<::ax::mojom::MoveDirection>(
        Traits::move_direction(input),
        &fragment->move_direction);
  }
};

}  // namespace mojo::internal

#endif  // UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_SEND_VALIDATION_H_