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

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

Issue 2750533006: Initial skeleton of Accessibility Object Model Phase 1 (Closed)
Patch Set: Addressed feedback, removed validation Created 3 years, 9 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: third_party/WebKit/Source/modules/accessibility/AXObject.h
diff --git a/third_party/WebKit/Source/modules/accessibility/AXObject.h b/third_party/WebKit/Source/modules/accessibility/AXObject.h
index e6f2b232ae064b9f8af1a7b1aace3b7c59413133..dc01007105227938359ed19b1f1e2ba0a237bbb2 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -53,6 +53,8 @@ class Node;
class LayoutObject;
class ScrollableArea;
+enum class AOMStringProperty;
+
typedef unsigned AXID;
enum AccessibilityRole {
@@ -599,6 +601,12 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
AXID axObjectID() const { return m_id; }
+ // Wrappers that retrieve either an Accessibility Object Model property,
+ // or the equivalent ARIA attribute, in that order.
+ // TODO(dmazzoni): Add equivalents for other types of properties besides
+ // just strings.
+ const AtomicString& getAOMPropertyOrARIAAttribute(AOMStringProperty) const;
+
virtual void getSparseAXAttributes(AXSparseAttributeClient&) const {}
// Determine subclass type.

Powered by Google App Engine
This is Rietveld 408576698