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

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

Issue 2791943002: Re-land: Initial skeleton of Accessibility Object Model Phase 1 (Closed)
Patch Set: Fix for crash with test 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 ac9b47f066320ea2c1afdc63ffd26cbba32f476e..b918b012f02f899a4bf8f56d06338906a4f499f3 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