#include <ax_mode.h>
Definition at line 16 of file ax_mode.h.
◆ AXMode() [1/2]
constexpr ui::AXMode::AXMode |
( |
| ) |
|
|
inlineconstexpr |
◆ AXMode() [2/2]
constexpr ui::AXMode::AXMode |
( |
uint32_t |
flags | ) |
|
|
inlineconstexpr |
Definition at line 71 of file ax_mode.h.
FlutterSemanticsFlag flags
◆ has_mode()
bool ui::AXMode::has_mode |
( |
uint32_t |
flag | ) |
const |
|
inline |
Definition at line 73 of file ax_mode.h.
73{
return (flags_ &
flag) > 0; }
FlutterSemanticsFlag flag
◆ is_mode_off()
bool ui::AXMode::is_mode_off |
( |
| ) |
const |
|
inline |
Definition at line 83 of file ax_mode.h.
83{ return flags_ == 0; }
◆ mode()
uint32_t ui::AXMode::mode |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool ui::AXMode::operator!= |
( |
AXMode |
rhs | ) |
const |
|
inline |
Definition at line 85 of file ax_mode.h.
85{ return !(*this == rhs); }
◆ operator==()
bool ui::AXMode::operator== |
( |
AXMode |
rhs | ) |
const |
|
inline |
Definition at line 81 of file ax_mode.h.
81{ return flags_ == rhs.flags_; }
◆ operator|=()
Definition at line 87 of file ax_mode.h.
87 {
88 flags_ |= rhs.flags_;
89 return *this;
90 }
◆ set_mode()
void ui::AXMode::set_mode |
( |
uint32_t |
flag, |
|
|
bool |
value |
|
) |
| |
|
inline |
◆ ToString()
std::string ui::AXMode::ToString |
( |
| ) |
const |
Definition at line 18 of file ax_mode.cc.
18 {
19 std::vector<std::string>
tokens;
20
21
22
25 const char* flag_name = nullptr;
26 switch (mode_flag) {
28 flag_name = "kNativeAPIs";
29 break;
31 flag_name = "kWebContents";
32 break;
34 flag_name = "kInlineTextBoxes";
35 break;
37 flag_name = "kScreenReader";
38 break;
40 flag_name = "kHTML";
41 break;
43 flag_name = "kLabelImages";
44 break;
46 flag_name = "kPDF";
47 break;
48 }
49
51
53 tokens.push_back(flag_name);
54 }
55
57}
bool has_mode(uint32_t flag) const
static constexpr uint32_t kInlineTextBoxes
static constexpr uint32_t kScreenReader
static constexpr uint32_t kLastModeFlag
static constexpr uint32_t kFirstModeFlag
static constexpr uint32_t kPDF
static constexpr uint32_t kNativeAPIs
static constexpr uint32_t kLabelImages
static constexpr uint32_t kHTML
static constexpr uint32_t kWebContents
std::string JoinString(std::vector< std::string > tokens, std::string delimiter)
#define BASE_DCHECK(condition)
◆ kFirstModeFlag
constexpr uint32_t ui::AXMode::kFirstModeFlag = 1 << 0 |
|
staticconstexpr |
◆ kHTML
constexpr uint32_t ui::AXMode::kHTML = 1 << 4 |
|
staticconstexpr |
◆ kInlineTextBoxes
constexpr uint32_t ui::AXMode::kInlineTextBoxes = 1 << 2 |
|
staticconstexpr |
◆ kLabelImages
constexpr uint32_t ui::AXMode::kLabelImages = 1 << 5 |
|
staticconstexpr |
◆ kLastModeFlag
constexpr uint32_t ui::AXMode::kLastModeFlag = 1 << 6 |
|
staticconstexpr |
◆ kNativeAPIs
constexpr uint32_t ui::AXMode::kNativeAPIs = 1 << 0 |
|
staticconstexpr |
◆ kPDF
constexpr uint32_t ui::AXMode::kPDF = 1 << 6 |
|
staticconstexpr |
◆ kScreenReader
constexpr uint32_t ui::AXMode::kScreenReader = 1 << 3 |
|
staticconstexpr |
◆ kWebContents
constexpr uint32_t ui::AXMode::kWebContents = 1 << 1 |
|
staticconstexpr |
The documentation for this class was generated from the following files: