blob: 62150c391d62e10d3a725d8fff311e9232ceaafd [file] [log] [blame]
// Copyright 2018 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.h"
#include "ui/accessibility/mojom/ax_event.mojom-shared.h"
namespace mojo {
template <>
struct StructTraits<ax::mojom::AXEventDataView, ui::AXEvent> {
static ax::mojom::Event event_type(const ui::AXEvent& p) {
return p.event_type;
static int32_t id(const ui::AXEvent& p) { return; }
static ax::mojom::EventFrom event_from(const ui::AXEvent& p) {
return p.event_from;
static int32_t action_request_id(const ui::AXEvent& p) {
return p.action_request_id;
static bool Read(ax::mojom::AXEventDataView data, ui::AXEvent* out);
} // namespace mojo