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

Unified Diff: Source/modules/accessibility/AXSlider.cpp

Issue 1004803004: Add handling to respect role attribute in AXObjects. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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
« no previous file with comments | « Source/modules/accessibility/AXSlider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/accessibility/AXSlider.cpp
diff --git a/Source/modules/accessibility/AXSlider.cpp b/Source/modules/accessibility/AXSlider.cpp
index d2c688ab7d8d3e755c232592f2eec516366433dc..c274248647d907c6d8d78ad3d883e18119f118b5 100644
--- a/Source/modules/accessibility/AXSlider.cpp
+++ b/Source/modules/accessibility/AXSlider.cpp
@@ -49,6 +49,14 @@ PassRefPtr<AXSlider> AXSlider::create(LayoutObject* layoutObject, AXObjectCacheI
return adoptRef(new AXSlider(layoutObject, axObjectCache));
}
+AccessibilityRole AXSlider::roleValue() const
+{
+ AccessibilityRole ariaRole = ariaRoleAttribute();
+ if (ariaRole != UnknownRole)
+ return ariaRole;
+ return SliderRole;
+}
+
AccessibilityOrientation AXSlider::orientation() const
{
// Default to horizontal in the unknown case.
« no previous file with comments | « Source/modules/accessibility/AXSlider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698