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

Side by Side Diff: content/browser/accessibility/browser_accessibility.h

Issue 2799413002: Views a11y: Add AXNodeData.actions bitfield to indicate supported actions by UI. (Closed)
Patch Set: Fix tests broken from rebase. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 // If inside a table or ARIA grid, returns the number of physical rows, 348 // If inside a table or ARIA grid, returns the number of physical rows,
349 // otherwise returns 0. 349 // otherwise returns 0.
350 int GetTableRowCount() const; 350 int GetTableRowCount() const;
351 351
352 // If inside a table or ARIA grid, returns the number of physical rows that 352 // If inside a table or ARIA grid, returns the number of physical rows that
353 // this cell spans. If not a cell, returns 0. 353 // this cell spans. If not a cell, returns 0.
354 int GetTableRowSpan() const; 354 int GetTableRowSpan() const;
355 355
356 virtual base::string16 GetText() const; 356 virtual base::string16 GetText() const;
357 357
358 // Returns true if the bit corresponding to the given state enum is 1. 358 // Returns true if the bit corresponding to the given enum is 1.
359 bool HasState(ui::AXState state_enum) const; 359 bool HasState(ui::AXState state_enum) const;
360 bool HasAction(ui::AXAction action_enum) const;
360 361
361 // Returns true if this node is a cell or a table header. 362 // Returns true if this node is a cell or a table header.
362 bool IsCellOrTableHeaderRole() const; 363 bool IsCellOrTableHeaderRole() const;
363 364
364 // Returns true if this node is a table, a grid or a treegrid. 365 // Returns true if this node is a table, a grid or a treegrid.
365 bool IsTableLikeRole() const; 366 bool IsTableLikeRole() const;
366 367
367 // Returns true if the caret is active on this object. 368 // Returns true if the caret is active on this object.
368 bool HasCaret() const; 369 bool HasCaret() const;
369 370
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // bounds, but "virtual" elements in the accessibility tree that don't 440 // bounds, but "virtual" elements in the accessibility tree that don't
440 // correspond to a layed-out element sometimes don't have bounds. 441 // correspond to a layed-out element sometimes don't have bounds.
441 void FixEmptyBounds(gfx::RectF* bounds) const; 442 void FixEmptyBounds(gfx::RectF* bounds) const;
442 443
443 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility); 444 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibility);
444 }; 445 };
445 446
446 } // namespace content 447 } // namespace content
447 448
448 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_ 449 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698