#include <ax_table_info.h>
Definition at line 22 of file ax_table_info.h.
◆ ~AXTableInfo()
ui::AXTableInfo::~AXTableInfo |
( |
| ) |
|
Definition at line 547 of file ax_table_info.cc.
547 {
549 ClearExtraMacNodes();
550 for (AXTreeObserver* observer : tree_->
observers()) {
551 observer->OnAtomicUpdateFinished(
552 tree_, false,
553 {{table_node_, AXTreeObserver::ChangeType::NODE_CHANGED}});
554 }
555 }
556}
std::vector< AXNode * > extra_mac_nodes
std::vector< AXTreeObserver * > & observers()
◆ Create()
Definition at line 75 of file ax_table_info.cc.
75 {
78
79#ifndef NDEBUG
80
81 AXNode* node = table_node;
82 while (node && node != tree->root())
83 node = node->parent();
85#endif
86
88 return nullptr;
89
90 AXTableInfo*
info =
new AXTableInfo(tree, table_node);
91 bool success =
info->Update();
93
95}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
bool IsTableLike(const ax::mojom::Role role)
#define BASE_DCHECK(condition)
◆ Invalidate()
void ui::AXTableInfo::Invalidate |
( |
| ) |
|
◆ ToString()
std::string ui::AXTableInfo::ToString |
( |
| ) |
const |
Definition at line 518 of file ax_table_info.cc.
518 {
519
520 int padding = 0;
523
525 }
526 }
527
534 int cell_padding = padding;
535 if (cell_id != 0)
536 cell_padding = padding - static_cast<int>(log10(cell_id));
537 result += std::string(cell_padding,
' ') +
'|';
538 }
540 }
542}
std::vector< std::vector< int32_t > > cell_ids
static float max(float r, float g, float b)
std::string NumberToString(int32_t number)
◆ Update()
bool ui::AXTableInfo::Update |
( |
| ) |
|
Definition at line 97 of file ax_table_info.cc.
97 {
99 return false;
100
101 ClearVectors();
102
103 std::vector<std::vector<AXNode*>> cell_nodes_per_row;
105 FindRowsAndThenCells(table_node_, &
row_nodes, &cell_nodes_per_row,
108
109
110
111
112 row_count = GetSizeTAttribute(*table_node_, IntAttribute::kTableRowCount);
113 col_count = GetSizeTAttribute(*table_node_, IntAttribute::kTableColumnCount);
114
115
116
121
122
123
124 BuildCellDataVectorFromRowAndCellNodes(
row_nodes, cell_nodes_per_row);
125
126
127
128
129
130
131
132 BuildCellAndHeaderVectorsFromCellData();
133
134
135
137 UpdateExtraMacNodes();
138
139
140
141
142 valid_ = true;
143 return true;
144}
int GetIntAttribute(ax::mojom::IntAttribute attribute) const
std::vector< AXNode * > row_nodes
bool enable_extra_mac_nodes() const
◆ valid()
bool ui::AXTableInfo::valid |
( |
| ) |
const |
|
inline |
◆ all_headers
std::vector<int32_t> ui::AXTableInfo::all_headers |
◆ aria_col_count
int ui::AXTableInfo::aria_col_count = 0 |
◆ aria_row_count
int ui::AXTableInfo::aria_row_count = 0 |
◆ caption_id
int32_t ui::AXTableInfo::caption_id |
◆ cell_data_vector
std::vector<CellData> ui::AXTableInfo::cell_data_vector |
◆ cell_id_to_index
std::unordered_map<int32_t, size_t> ui::AXTableInfo::cell_id_to_index |
◆ cell_ids
std::vector<std::vector<int32_t> > ui::AXTableInfo::cell_ids |
◆ col_count
size_t ui::AXTableInfo::col_count = 0 |
◆ col_headers
std::vector<std::vector<int32_t> > ui::AXTableInfo::col_headers |
◆ extra_mac_nodes
std::vector<AXNode*> ui::AXTableInfo::extra_mac_nodes |
◆ row_count
size_t ui::AXTableInfo::row_count = 0 |
◆ row_headers
std::vector<std::vector<int32_t> > ui::AXTableInfo::row_headers |
◆ row_id_to_index
std::unordered_map<int32_t, size_t> ui::AXTableInfo::row_id_to_index |
◆ row_nodes
std::vector<AXNode*> ui::AXTableInfo::row_nodes |
◆ unique_cell_ids
std::vector<int32_t> ui::AXTableInfo::unique_cell_ids |
The documentation for this class was generated from the following files: