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

Unified Diff: Source/modules/accessibility/AXObject.h

Issue 742353004: Implement computedRole and computedName (behind a flag) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: dmazzoni review comments Created 6 years 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: Source/modules/accessibility/AXObject.h
diff --git a/Source/modules/accessibility/AXObject.h b/Source/modules/accessibility/AXObject.h
index 0e2c5c10eaf158cca93cd3e5ac5a7afb46bf33c4..581f99a2f9eff5bfe6cf4fae25308546a89c24c1 100644
--- a/Source/modules/accessibility/AXObject.h
+++ b/Source/modules/accessibility/AXObject.h
@@ -40,6 +40,7 @@
namespace blink {
class AXObject;
+class AXObjectCache;
class AXObjectCacheImpl;
class Element;
class FrameView;
@@ -52,6 +53,7 @@ class Widget;
typedef unsigned AXID;
enum AccessibilityRole {
+ UnknownRole = 0,
AlertDialogRole = 1,
AlertRole,
AnnotationRole,
@@ -163,10 +165,10 @@ enum AccessibilityRole {
TreeGridRole,
TreeItemRole,
TreeRole,
- UnknownRole,
UserInterfaceTooltipRole,
WebAreaRole,
WindowRole,
+ NumRoles
};
enum AccessibilityTextSource {
@@ -577,6 +579,7 @@ public:
static bool isARIAInput(AccessibilityRole);
static AccessibilityRole ariaRoleToWebCoreRole(const String&);
static IntRect boundingBoxForQuads(RenderObject*, const Vector<FloatQuad>&);
+ static const AtomicString& roleName(const AccessibilityRole);
adamk 2014/12/16 23:56:49 No need for "const" on the argument here
aboxhall 2014/12/17 02:06:24 Done.
protected:
AXID m_id;

Powered by Google App Engine
This is Rietveld 408576698