Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Unified Diff: ui/accessibility/platform/ax_platform_node_base.h

Issue 2964313002: Converts accNavigate over to the AXPlatformNode code. (Closed)
Patch Set: are -> is Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/accessibility/platform/ax_platform_node_base.h
diff --git a/ui/accessibility/platform/ax_platform_node_base.h b/ui/accessibility/platform/ax_platform_node_base.h
index 17f53c22b37c7c372bc8946c0e23445bd8480807..fa24c86798c66342b10b7eaad041e8247652a645 100644
--- a/ui/accessibility/platform/ax_platform_node_base.h
+++ b/ui/accessibility/platform/ax_platform_node_base.h
@@ -62,7 +62,63 @@ class AX_EXPORT AXPlatformNodeBase : public AXPlatformNode {
base::string16 GetString16Attribute(
ui::AXStringAttribute attribute) const;
- AXPlatformNodeDelegate* delegate_; // Weak. Owns this.
+ bool HasIntListAttribute(ui::AXIntListAttribute attribute) const;
+ const std::vector<int32_t>& GetIntListAttribute(
+ ui::AXIntListAttribute attribute) const;
+
+ bool GetIntListAttribute(ui::AXIntListAttribute attribute,
+ std::vector<int32_t>* value) const;
+
+ // Returns the table or ARIA grid if inside one.
+ AXPlatformNodeBase* GetTable() const;
+
+ // If inside a table or ARIA grid, returns the cell found at the given index.
+ // Indices are in row major order and each cell is counted once regardless of
+ // its span.
+ AXPlatformNodeBase* GetTableCell(int index) const;
+
+ // If inside a table or ARIA grid, returns the cell at the given row and
+ // column (0-based). Works correctly with cells that span multiple rows or
+ // columns.
+ AXPlatformNodeBase* GetTableCell(int row, int column) const;
+
+ // If inside a table or ARIA grid, returns the zero-based index of the cell.
+ // Indices are in row major order and each cell is counted once regardless of
+ // its span. Returns -1 if the cell is not found or if not inside a table.
+ int GetTableCellIndex() const;
+
+ // If inside a table or ARIA grid, returns the physical column number for the
+ // current cell. In contrast to logical columns, physical columns always start
+ // from 0 and have no gaps in their numbering. Logical columns can be set
+ // using aria-colindex.
+ int GetTableColumn() const;
+
+ // If inside a table or ARIA grid, returns the number of physical columns,
+ // otherwise returns 0.
+ int GetTableColumnCount() const;
+
+ // If inside a table or ARIA grid, returns the number of physical columns that
+ // this cell spans. If not a cell, returns 0.
+ int GetTableColumnSpan() const;
+
+ // If inside a table or ARIA grid, returns the physical row number for the
+ // current cell. In contrast to logical rows, physical rows always start from
+ // 0 and have no gaps in their numbering. Logical rows can be set using
+ // aria-rowindex.
+ int GetTableRow() const;
+
+ // If inside a table or ARIA grid, returns the number of physical rows,
+ // otherwise returns 0.
+ int GetTableRowCount() const;
+
+ // If inside a table or ARIA grid, returns the number of physical rows that
+ // this cell spans. If not a cell, returns 0.
+ int GetTableRowSpan() const;
+
+ //
+ // Delegate. This is a weak reference which owns |this|.
+ //
+ AXPlatformNodeDelegate* delegate_;
protected:
AXPlatformNodeBase();
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | ui/accessibility/platform/ax_platform_node_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698