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

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2653063002: Add 4 ARIA 1.1 attributes using new sparse attribute interface. (Closed)
Patch Set: Remove aria-modal, finish inspector protocol for other 4 Created 3 years, 11 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/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index 5053e3eaa886c2e212bf665d15b599d96c86b932..c269321f75a6daa3f25b219c9cbb847c58da12af 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -193,6 +193,18 @@ static AXSparseAttributeSetterMap& getSparseAttributeSetterMap() {
axSparseAttributeSetterMap.set(
aria_flowtoAttr,
new ObjectVectorAttributeSetter(AXObjectVectorAttribute::AriaFlowTo));
+ axSparseAttributeSetterMap.set(
aboxhall 2017/01/27 01:41:22 This is really elegant with all of the infrastruct
dmazzoni 2017/01/31 00:31:54 :)
+ aria_detailsAttr,
+ new ObjectVectorAttributeSetter(AXObjectVectorAttribute::AriaDetails));
+ axSparseAttributeSetterMap.set(
+ aria_errormessageAttr,
+ new ObjectAttributeSetter(AXObjectAttribute::AriaErrorMessage));
+ axSparseAttributeSetterMap.set(
+ aria_keyshortcutsAttr,
+ new StringAttributeSetter(AXStringAttribute::AriaKeyShortcuts));
+ axSparseAttributeSetterMap.set(
+ aria_roledescriptionAttr,
+ new StringAttributeSetter(AXStringAttribute::AriaRoleDescription));
}
return axSparseAttributeSetterMap;
}

Powered by Google App Engine
This is Rietveld 408576698