Flutter Engine
The Flutter Engine
ax_event_intent.cc
Go to the documentation of this file.
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
5#include "ax_event_intent.h"
6
7#include "ax_enum_util.h"
8
9namespace ui {
10
12
14 ax::mojom::TextBoundary text_boundary,
15 ax::mojom::MoveDirection move_direction)
17 text_boundary(text_boundary),
18 move_direction(move_direction) {}
19
21
22AXEventIntent::AXEventIntent(const AXEventIntent& intent) = default;
23
25
27 return a.command == b.command && a.text_boundary == b.text_boundary &&
28 a.move_direction == b.move_direction;
29}
30
32 return !(a == b);
33}
34
35std::string AXEventIntent::ToString() const {
36 return std::string("AXEventIntent(") + ui::ToString(command) + ',' +
38}
39
40} // namespace ui
static bool b
struct MyStruct a[10]
bool operator==(const AXEventIntent &a, const AXEventIntent &b)
const char * ToString(ax::mojom::Event event)
Definition: ax_enum_util.cc:9
bool operator!=(const AXEventIntent &a, const AXEventIntent &b)
list command
Definition: valgrind.py:24
ax::mojom::Command command
std::string ToString() const
ax::mojom::TextBoundary text_boundary
ax::mojom::MoveDirection move_direction
AXEventIntent & operator=(const AXEventIntent &intent)
virtual ~AXEventIntent()