Flutter Engine
The Flutter Engine
ax_enum_util.h
Go to the documentation of this file.
1// Copyright 2018 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_ENUM_UTIL_H_
6#define UI_ACCESSIBILITY_AX_ENUM_UTIL_H_
7
8#include <string>
9
10#include "ax_base_export.h"
11#include "ax_enums.h"
12
13namespace ui {
14
15// ax::mojom::Event
18
19// ax::mojom::Role
22
23// ax::mojom::State
26
27// ax::mojom::Action
30
31// ax::mojom::ActionFlags
32AX_BASE_EXPORT const char* ToString(ax::mojom::ActionFlags action_flags);
34 const char* action_flags);
35
36// ax::mojom::DefaultActionVerb
37AX_BASE_EXPORT const char* ToString(
38 ax::mojom::DefaultActionVerb default_action_verb);
39
40// Returns a localized string that corresponds to the name of the given action.
43
45 const char* default_action_verb);
46
47// ax::mojom::Mutation
48AX_BASE_EXPORT const char* ToString(ax::mojom::Mutation mutation);
50
51// ax::mojom::StringAttribute
52AX_BASE_EXPORT const char* ToString(
53 ax::mojom::StringAttribute string_attribute);
55 const char* string_attribute);
56
57// ax::mojom::IntAttribute
58AX_BASE_EXPORT const char* ToString(ax::mojom::IntAttribute int_attribute);
60 const char* int_attribute);
61
62// ax::mojom::FloatAttribute
63AX_BASE_EXPORT const char* ToString(ax::mojom::FloatAttribute float_attribute);
65 const char* float_attribute);
66
67// ax::mojom::BoolAttribute
68AX_BASE_EXPORT const char* ToString(ax::mojom::BoolAttribute bool_attribute);
70 const char* bool_attribute);
71
72// ax::mojom::IntListAttribute
73AX_BASE_EXPORT const char* ToString(
74 ax::mojom::IntListAttribute int_list_attribute);
76 const char* int_list_attribute);
77
78// ax::mojom::StringListAttribute
79AX_BASE_EXPORT const char* ToString(
80 ax::mojom::StringListAttribute string_list_attribute);
82 const char* string_list_attribute);
83
84// ax::mojom::ListStyle
85AX_BASE_EXPORT const char* ToString(ax::mojom::ListStyle list_style);
87
88// ax::mojom::MarkerType
89AX_BASE_EXPORT const char* ToString(ax::mojom::MarkerType marker_type);
91
92// ax::mojom::MoveDirection
93AX_BASE_EXPORT const char* ToString(ax::mojom::MoveDirection move_direction);
95 const char* move_direction);
96
97// ax::mojom::Command
100
101// ax::mojom::TextBoundary
102AX_BASE_EXPORT const char* ToString(ax::mojom::TextBoundary text_boundary);
104 const char* text_boundary);
105
106// ax:mojom::TextDecorationStyle
107AX_BASE_EXPORT const char* ToString(
108 ax::mojom::TextDecorationStyle text_decoration_style);
110 const char* text_decoration_style);
111
112// ax::mojom::TextAlign
113AX_BASE_EXPORT const char* ToString(ax::mojom::TextAlign text_align);
115
116// ax::mojom::WritingDirection
117AX_BASE_EXPORT const char* ToString(ax::mojom::WritingDirection text_direction);
119 const char* text_direction);
120
121// ax::mojom::TextPosition
122AX_BASE_EXPORT const char* ToString(ax::mojom::TextPosition text_position);
124 const char* text_position);
125
126// ax::mojom::TextStyle
127AX_BASE_EXPORT const char* ToString(ax::mojom::TextStyle text_style);
129
130// ax::mojom::AriaCurrentState
131AX_BASE_EXPORT const char* ToString(
132 ax::mojom::AriaCurrentState aria_current_state);
134 const char* aria_current_state);
135
136// ax::mojom::HasPopup
137AX_BASE_EXPORT const char* ToString(ax::mojom::HasPopup has_popup);
139
140// ax::mojom::InvalidState
141AX_BASE_EXPORT const char* ToString(ax::mojom::InvalidState invalid_state);
143 const char* invalid_state);
144
145// ax::mojom::Restriction
146AX_BASE_EXPORT const char* ToString(ax::mojom::Restriction restriction);
148
149// ax::mojom::CheckedState
150AX_BASE_EXPORT const char* ToString(ax::mojom::CheckedState checked_state);
152 const char* checked_state);
153
154// ax::mojom::SortDirection
155AX_BASE_EXPORT const char* ToString(ax::mojom::SortDirection sort_direction);
157 const char* sort_direction);
158
159// ax::mojom::NameFrom
160AX_BASE_EXPORT const char* ToString(ax::mojom::NameFrom name_from);
162
163// ax::mojom::DescriptionFrom
164AX_BASE_EXPORT const char* ToString(
165 ax::mojom::DescriptionFrom description_from);
167 const char* description_from);
168
169// ax::mojom::EventFrom
170AX_BASE_EXPORT const char* ToString(ax::mojom::EventFrom event_from);
172
173// ax::mojom::Gesture
174AX_BASE_EXPORT const char* ToString(ax::mojom::Gesture gesture);
176
177// ax::mojom::TextAffinity
178AX_BASE_EXPORT const char* ToString(ax::mojom::TextAffinity text_affinity);
180 const char* text_affinity);
181
182// ax::mojom::TreeOrder
183AX_BASE_EXPORT const char* ToString(ax::mojom::TreeOrder tree_order);
185
186// ax::mojom::ImageAnnotationStatus
189 const char* status);
190
191// ax::mojom::Dropeffect
192AX_BASE_EXPORT const char* ToString(ax::mojom::Dropeffect dropeffect);
194
195} // namespace ui
196
197#endif // UI_ACCESSIBILITY_AX_ENUM_UTIL_H_
#define AX_BASE_EXPORT
AtkStateType state
FlKeyEvent * event
StringListAttribute
Definition: ax_enums.h:850
StringAttribute
Definition: ax_enums.h:521
AriaCurrentState
Definition: ax_enums.h:1006
FloatAttribute
Definition: ax_enums.h:699
ImageAnnotationStatus
Definition: ax_enums.h:1170
WritingDirection
Definition: ax_enums.h:964
IntListAttribute
Definition: ax_enums.h:799
DefaultActionVerb
Definition: ax_enums.h:489
TextDecorationStyle
Definition: ax_enums.h:995
ax::mojom::IntListAttribute ParseIntListAttribute(const char *int_list_attribute)
ax::mojom::MoveDirection ParseMoveDirection(const char *move_direction)
ax::mojom::Event ParseEvent(const char *event)
ax::mojom::DescriptionFrom ParseDescriptionFrom(const char *description_from)
ax::mojom::FloatAttribute ParseFloatAttribute(const char *float_attribute)
ax::mojom::TextBoundary ParseTextBoundary(const char *text_boundary)
ax::mojom::ListStyle ParseListStyle(const char *list_style)
ax::mojom::TreeOrder ParseTreeOrder(const char *tree_order)
ax::mojom::ActionFlags ParseActionFlags(const char *action_flags)
ax::mojom::TextAlign ParseTextAlign(const char *text_align)
ax::mojom::Action ParseAction(const char *action)
const char * ToString(ax::mojom::Event event)
Definition: ax_enum_util.cc:9
ax::mojom::Restriction ParseRestriction(const char *restriction)
ax::mojom::StringAttribute ParseStringAttribute(const char *string_attribute)
ax::mojom::Command ParseCommand(const char *command)
ax::mojom::SortDirection ParseSortDirection(const char *sort_direction)
ax::mojom::HasPopup ParseHasPopup(const char *has_popup)
ax::mojom::NameFrom ParseNameFrom(const char *name_from)
ax::mojom::StringListAttribute ParseStringListAttribute(const char *string_list_attribute)
ax::mojom::TextPosition ParseTextPosition(const char *text_position)
ax::mojom::Role ParseRole(const char *role)
ax::mojom::WritingDirection ParseTextDirection(const char *text_direction)
AX_BASE_EXPORT std::string ToLocalizedString(ax::mojom::DefaultActionVerb action_verb)
ax::mojom::IntAttribute ParseIntAttribute(const char *int_attribute)
ax::mojom::EventFrom ParseEventFrom(const char *event_from)
ax::mojom::TextAffinity ParseTextAffinity(const char *text_affinity)
ax::mojom::Dropeffect ParseDropeffect(const char *dropeffect)
ax::mojom::BoolAttribute ParseBoolAttribute(const char *bool_attribute)
ax::mojom::DefaultActionVerb ParseDefaultActionVerb(const char *default_action_verb)
ax::mojom::TextDecorationStyle ParseTextDecorationStyle(const char *text_decoration_style)
ax::mojom::AriaCurrentState ParseAriaCurrentState(const char *aria_current_state)
ax::mojom::InvalidState ParseInvalidState(const char *invalid_state)
ax::mojom::MarkerType ParseMarkerType(const char *marker_type)
ax::mojom::ImageAnnotationStatus ParseImageAnnotationStatus(const char *status)
ax::mojom::CheckedState ParseCheckedState(const char *checked_state)
ax::mojom::Mutation ParseMutation(const char *mutation)
ax::mojom::Gesture ParseGesture(const char *gesture)
ax::mojom::State ParseState(const char *state)
ax::mojom::TextStyle ParseTextStyle(const char *text_style)
list command
Definition: valgrind.py:24