blob: 2fd05abaf4d3cc97e7338482bef8f728edc1cc09 [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#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);
} // namespace mojo