#ifndef UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_TRAITS_H_
#define UI_ACCESSIBILITY_MOJOM_AX_EVENT_INTENT_MOJOM_TRAITS_H_
#include "ui/accessibility/ax_event_intent.h"
#include "ui/accessibility/mojom/ax_event_intent.mojom.h"
namespace mojo {
template <>
struct StructTraits<ax::mojom::EventIntentDataView, ui::AXEventIntent> {
static ax::mojom::Command command(const ui::AXEventIntent& p) {
return p.command;
}
static ax::mojom::InputEventType input_event_type(
const ui::AXEventIntent& p) {
return p.input_event_type;
}
static ax::mojom::TextBoundary text_boundary(const ui::AXEventIntent& p) {
return p.text_boundary;
}
static ax::mojom::MoveDirection move_direction(const ui::AXEventIntent& p) {
return p.move_direction;
}
static bool Read(ax::mojom::EventIntentDataView data, ui::AXEventIntent* out);
};
}
#endif