Flutter Engine
Loading...
Searching...
No Matches
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
9
namespace
ui
{
10
11
AXEventIntent::AXEventIntent
() =
default
;
12
13
AXEventIntent::AXEventIntent
(
ax::mojom::Command
command,
14
ax::mojom::TextBoundary
text_boundary,
15
ax::mojom::MoveDirection
move_direction)
16
: command(command),
17
text_boundary(text_boundary),
18
move_direction(move_direction) {}
19
20
AXEventIntent::~AXEventIntent
() =
default
;
21
22
AXEventIntent::AXEventIntent
(
const
AXEventIntent
& intent) =
default
;
23
24
AXEventIntent
&
AXEventIntent::operator=
(
const
AXEventIntent
& intent) =
default
;
25
26
bool
operator==
(
const
AXEventIntent
& a,
const
AXEventIntent
& b) {
27
return
a.
command
== b.command && a.
text_boundary
== b.text_boundary &&
28
a.
move_direction
== b.move_direction;
29
}
30
31
std::string
AXEventIntent::ToString
()
const
{
32
return
std::string(
"AXEventIntent("
) +
ui::ToString
(
command
) +
','
+
33
ui::ToString
(
text_boundary
) +
','
+
ui::ToString
(
move_direction
) +
')'
;
34
}
35
36
}
// namespace ui
ax_enum_util.h
ax_event_intent.h
ax::mojom::Command
Command
Definition
ax_enums.h:899
ax::mojom::MoveDirection
MoveDirection
Definition
ax_enums.h:889
ax::mojom::TextBoundary
TextBoundary
Definition
ax_enums.h:929
ui
Definition
window_binding_handler.h:19
ui::operator==
bool operator==(const AXEventIntent &a, const AXEventIntent &b)
Definition
ax_event_intent.cc:26
ui::ToString
const char * ToString(ax::mojom::Event event)
Definition
ax_enum_util.cc:9
ui::AXEventIntent
Definition
ax_event_intent.h:19
ui::AXEventIntent::command
ax::mojom::Command command
Definition
ax_event_intent.h:31
ui::AXEventIntent::ToString
std::string ToString() const
Definition
ax_event_intent.cc:31
ui::AXEventIntent::text_boundary
ax::mojom::TextBoundary text_boundary
Definition
ax_event_intent.h:33
ui::AXEventIntent::move_direction
ax::mojom::MoveDirection move_direction
Definition
ax_event_intent.h:34
ui::AXEventIntent::operator=
AXEventIntent & operator=(const AXEventIntent &intent)
ui::AXEventIntent::~AXEventIntent
virtual ~AXEventIntent()
ui::AXEventIntent::AXEventIntent
AXEventIntent()
third_party
accessibility
ax
ax_event_intent.cc
Generated on Thu Nov 6 2025 16:11:29 for Flutter Engine by
1.9.8