ax_event_intent_mojom_traits.cc 622 B

1234567891011121314151617181920
  1. // Copyright 2020 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "ui/accessibility/mojom/ax_event_intent_mojom_traits.h"
  5. namespace mojo {
  6. // static
  7. bool StructTraits<ax::mojom::EventIntentDataView, ui::AXEventIntent>::Read(
  8. ax::mojom::EventIntentDataView data,
  9. ui::AXEventIntent* out) {
  10. out->command = data.command();
  11. out->input_event_type = data.input_event_type();
  12. out->text_boundary = data.text_boundary();
  13. out->move_direction = data.move_direction();
  14. return true;
  15. }
  16. } // namespace mojo