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

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

Issue 2750533006: Initial skeleton of Accessibility Object Model Phase 1 (Closed)
Patch Set: 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 090f8f1b11988f0313a68ee8fbcc919c77f2b0c4..ba2a8b753aad792e3ca55e7e36ecbe67d8dc9b2b 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXObject.h
+++ b/third_party/WebKit/Source/modules/accessibility/AXObject.h
@@ -34,6 +34,7 @@
#include "core/editing/markers/DocumentMarker.h"
#include "core/inspector/protocol/Accessibility.h"
#include "modules/ModulesExport.h"
+#include "modules/accessibility/AccessibleNode.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/geometry/LayoutRect.h"
#include "platform/graphics/Color.h"
@@ -599,6 +600,15 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
AXID axObjectID() const { return m_id; }
+ // Accessibility Object Model AccessibleNode interface
+ AccessibleNode* getAccessibleNode() const { return m_accessibleNode; }
+ void setAccessibleNode(AccessibleNode* wrapper) {
+ m_accessibleNode = wrapper;
+ }
+ // Wrappers that retrieve either an Accessibility Object Model property
+ // or an ARIA attribute, checking in that order.
+ const AtomicString& getAomPropertyOrAriaAttribute(AomStringProperty) const;
+
virtual void getSparseAXAttributes(AXSparseAttributeClient&) const {}
// Determine subclass type.
@@ -1078,6 +1088,8 @@ class MODULES_EXPORT AXObject : public GarbageCollectedFinalized<AXObject> {
mutable Member<AXObject> m_parent;
+ Member<AccessibleNode> m_accessibleNode;
+
// The following cached attribute values (the ones starting with m_cached*)
// are only valid if m_lastModificationCount matches
// AXObjectCacheImpl::modificationCount().

Powered by Google App Engine
This is Rietveld 408576698