Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
accessibility
ax
ax_event_intent.h
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
#ifndef UI_ACCESSIBILITY_AX_EVENT_INTENT_H_
6
#define UI_ACCESSIBILITY_AX_EVENT_INTENT_H_
7
8
#include <string>
9
10
#include "
ax_base_export.h
"
11
#include "
ax_enums.h
"
12
13
namespace
ui
{
14
15
// Describes what caused an accessibility event to be raised. For example, a
16
// character could have been typed, a word replaced, or a line deleted. Or, the
17
// selection could have been extended to the beginning of the previous word, or
18
// it could have been moved to the end of the next line.
19
struct
AX_BASE_EXPORT
AXEventIntent
final {
20
AXEventIntent
();
21
AXEventIntent
(
ax::mojom::Command
command,
22
ax::mojom::TextBoundary
text_boundary,
23
ax::mojom::MoveDirection
move_direction);
24
virtual
~AXEventIntent
();
25
AXEventIntent
(
const
AXEventIntent
& intent);
26
AXEventIntent
&
operator=
(
const
AXEventIntent
& intent);
27
28
friend
AX_BASE_EXPORT
bool
operator==
(
const
AXEventIntent
&
a
,
29
const
AXEventIntent
&
b
);
30
friend
AX_BASE_EXPORT
bool
operator!=
(
const
AXEventIntent
&
a
,
31
const
AXEventIntent
&
b
);
32
33
ax::mojom::Command
command =
ax::mojom::Command::kType
;
34
// TODO(nektar): Split TextBoundary into TextUnit and TextBoundary.
35
ax::mojom::TextBoundary
text_boundary =
ax::mojom::TextBoundary::kCharacter
;
36
ax::mojom::MoveDirection
move_direction =
ax::mojom::MoveDirection::kForward
;
37
38
// Returns a string representation of this data, for debugging.
39
std::string
ToString
()
const
;
40
};
41
42
}
// namespace ui
43
44
#endif
// UI_ACCESSIBILITY_AX_EVENT_INTENT_H_
operator!=
bool operator!=(const sk_sp< T > &a, const sk_sp< U > &b)
Definition
SkRefCnt.h:355
ax_base_export.h
AX_BASE_EXPORT
#define AX_BASE_EXPORT
Definition
ax_base_export.h:29
ax_enums.h
operator==
bool operator==(const FlutterPoint &a, const FlutterPoint &b)
Definition
embedder_assertions.h:23
b
static bool b
Definition
ffi_native_test_module.c:74
a
struct MyStruct a[10]
ax::mojom::Command
Command
Definition
ax_enums.h:898
ax::mojom::Command::kType
@ kType
ax::mojom::MoveDirection
MoveDirection
Definition
ax_enums.h:888
ax::mojom::MoveDirection::kForward
@ kForward
ax::mojom::TextBoundary
TextBoundary
Definition
ax_enums.h:928
ax::mojom::TextBoundary::kCharacter
@ kCharacter
ui
Definition
window_binding_handler.h:18
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::AXEventIntent
AXEventIntent(const AXEventIntent &intent)
ui::AXEventIntent::operator=
AXEventIntent & operator=(const AXEventIntent &intent)
ui::AXEventIntent::~AXEventIntent
virtual ~AXEventIntent()
ui::AXEventIntent::AXEventIntent
AXEventIntent()
Generated on Fri Apr 26 2024 06:14:35 for Flutter Engine by
1.9.8