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

Unified Diff: content/browser/accessibility/browser_accessibility.h

Issue 2964313002: Converts accNavigate over to the AXPlatformNode code. (Closed)
Patch Set: rebase 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: content/browser/accessibility/browser_accessibility.h
diff --git a/content/browser/accessibility/browser_accessibility.h b/content/browser/accessibility/browser_accessibility.h
index b7a098d6493351d353f17db3b4aca6f0ced15a9f..4c5030dd1ed248af3e6be52485202ddda7293c98 100644
--- a/content/browser/accessibility/browser_accessibility.h
+++ b/content/browser/accessibility/browser_accessibility.h
@@ -292,52 +292,6 @@ class CONTENT_EXPORT BrowserAccessibility : public ui::AXPlatformNodeDelegate {
base::string16 GetFontFamily() const;
base::string16 GetLanguage() const;
- // Returns the table or ARIA grid if inside one.
- BrowserAccessibility* 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.
- BrowserAccessibility* 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.
- BrowserAccessibility* 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;
-
virtual base::string16 GetText() const;
// Returns true if the bit corresponding to the given enum is 1.
@@ -385,6 +339,7 @@ class CONTENT_EXPORT BrowserAccessibility : public ui::AXPlatformNodeDelegate {
gfx::Rect GetScreenBoundsRect() const override;
gfx::NativeViewAccessible HitTestSync(int x, int y) override;
gfx::NativeViewAccessible GetFocus() override;
+ ui::AXPlatformNode* GetFromNodeID(int32_t id) override;
gfx::AcceleratedWidget GetTargetForNativeAccessibilityEvent() override;
bool AccessibilityPerformAction(const ui::AXActionData& data) override;
bool ShouldIgnoreHoveredStateForTesting() override;

Powered by Google App Engine
This is Rietveld 408576698