#include <ax_table_info.h>
Classes | |
| struct | CellData |
Public Member Functions | |
| ~AXTableInfo () | |
| bool | Update () |
| bool | valid () const |
| void | Invalidate () |
| std::string | ToString () const |
Static Public Member Functions | |
| static AXTableInfo * | Create (AXTree *tree, AXNode *table_node) |
Public Attributes | |
| size_t | row_count = 0 |
| size_t | col_count = 0 |
| std::vector< std::vector< int32_t > > | col_headers |
| std::vector< std::vector< int32_t > > | row_headers |
| std::vector< int32_t > | all_headers |
| int32_t | caption_id |
| std::vector< std::vector< int32_t > > | cell_ids |
| std::vector< CellData > | cell_data_vector |
| std::vector< int32_t > | unique_cell_ids |
| std::vector< AXNode * > | extra_mac_nodes |
| std::unordered_map< int32_t, size_t > | cell_id_to_index |
| std::unordered_map< int32_t, size_t > | row_id_to_index |
| std::vector< AXNode * > | row_nodes |
| int | aria_row_count = 0 |
| int | aria_col_count = 0 |
Definition at line 22 of file ax_table_info.h.
| ui::AXTableInfo::~AXTableInfo | ( | ) |
Definition at line 547 of file ax_table_info.cc.
References extra_mac_nodes, ui::AXTreeObserver::NODE_CHANGED, and ui::AXTree::observers().
|
static |
Definition at line 75 of file ax_table_info.cc.
References BASE_DCHECK, ui::AXNode::data(), ui::IsTableLike(), ui::AXNode::parent(), ui::AXNodeData::role, ui::AXTree::root(), and Update().
| void ui::AXTableInfo::Invalidate | ( | ) |
Definition at line 146 of file ax_table_info.cc.
| std::string ui::AXTableInfo::ToString | ( | ) | const |
Definition at line 518 of file ax_table_info.cc.
References cell_ids, col_count, base::NumberToString(), padding, and row_count.
Referenced by ui::TEST_F().
| bool ui::AXTableInfo::Update | ( | ) |
Definition at line 97 of file ax_table_info.cc.
References aria_col_count, aria_row_count, BASE_DCHECK, caption_id, col_count, ui::AXTree::enable_extra_mac_nodes(), ui::AXNode::GetIntAttribute(), ui::AXNode::IsTable(), row_count, and row_nodes.
Referenced by Create().
|
inline |
Definition at line 47 of file ax_table_info.h.
| std::vector<int32_t> ui::AXTableInfo::all_headers |
Definition at line 65 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableHasColumnOrRowHeaderNode().
| int ui::AXTableInfo::aria_col_count = 0 |
Definition at line 99 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableAriaColCount(), and Update().
| int ui::AXTableInfo::aria_row_count = 0 |
Definition at line 98 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableAriaRowCount(), and Update().
| int32_t ui::AXTableInfo::caption_id |
Definition at line 68 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCaption(), and Update().
| std::vector<CellData> ui::AXTableInfo::cell_data_vector |
Definition at line 77 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellAriaColIndex(), ui::AXNode::GetTableCellAriaRowIndex(), ui::AXNode::GetTableCellColIndex(), and ui::AXNode::GetTableCellRowIndex().
| std::unordered_map<int32_t, size_t> ui::AXTableInfo::cell_id_to_index |
Definition at line 88 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellIndex(), ui::TEST_F(), and ui::TEST_F().
| std::vector<std::vector<int32_t> > ui::AXTableInfo::cell_ids |
Definition at line 74 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellFromCoords(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ToString().
| size_t ui::AXTableInfo::col_count = 0 |
Definition at line 56 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellColHeaderNodeIds(), ui::AXNode::GetTableCellFromCoords(), ui::AXNode::GetTableColCount(), ui::AXNode::GetTableColHeaderNodeIds(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ToString(), and Update().
| std::vector<std::vector<int32_t> > ui::AXTableInfo::col_headers |
Definition at line 59 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellColHeaderNodeIds(), ui::AXNode::GetTableColHeaderNodeIds(), ui::AXNode::GetTableColHeaderNodeIds(), ui::TEST_F(), and ui::TEST_F().
| std::vector<AXNode*> ui::AXTableInfo::extra_mac_nodes |
Definition at line 85 of file ax_table_info.h.
Referenced by ui::AXNode::GetExtraMacNodes(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and ~AXTableInfo().
| size_t ui::AXTableInfo::row_count = 0 |
Definition at line 52 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellFromCoords(), ui::AXNode::GetTableCellRowHeaderNodeIds(), ui::AXNode::GetTableRowCount(), ui::AXNode::GetTableRowHeaderNodeIds(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ToString(), and Update().
| std::vector<std::vector<int32_t> > ui::AXTableInfo::row_headers |
Definition at line 62 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellRowHeaderNodeIds(), ui::AXNode::GetTableRowHeaderNodeIds(), ui::TEST_F(), and ui::TEST_F().
| std::unordered_map<int32_t, size_t> ui::AXTableInfo::row_id_to_index |
Definition at line 91 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableRowRowIndex().
| std::vector<AXNode*> ui::AXTableInfo::row_nodes |
Definition at line 94 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableRowNodeIds(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), ui::TEST_F(), and Update().
| std::vector<int32_t> ui::AXTableInfo::unique_cell_ids |
Definition at line 80 of file ax_table_info.h.
Referenced by ui::AXNode::GetTableCellCount(), ui::AXNode::GetTableCellFromIndex(), ui::AXNode::GetTableUniqueCellIds(), ui::TEST_F(), and ui::TEST_F().