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

Unified Diff: content/renderer/accessibility/blink_ax_enum_conversion.cc

Issue 744623002: Exposing ARIA state/property aria-orientation on Windows correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating aria-list on mac Created 6 years, 1 month 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: content/renderer/accessibility/blink_ax_enum_conversion.cc
diff --git a/content/renderer/accessibility/blink_ax_enum_conversion.cc b/content/renderer/accessibility/blink_ax_enum_conversion.cc
index 3f201cce3322857a5b6e564850b887af28386f80..e8ae1b04283854bd8f0ecdac795c171cbb970f20 100644
--- a/content/renderer/accessibility/blink_ax_enum_conversion.cc
+++ b/content/renderer/accessibility/blink_ax_enum_conversion.cc
@@ -73,8 +73,13 @@ uint32 AXStateFromBlink(const blink::WebAXObject& o) {
if (o.isEnabled())
state |= (1 << ui::AX_STATE_ENABLED);
- if (o.isVertical())
- state |= (1 << ui::AX_STATE_VERTICAL);
+ blink::WebAXOrientation orientation = o.orientation();
+ if (orientation) {
dmazzoni 2014/11/29 07:48:19 Nit: I'd drop the if (orientation) check; it's not
+ if (orientation == blink::WebAXOrientationVertical)
+ state |= (1 << ui::AX_STATE_VERTICAL);
+ else if (orientation == blink::WebAXOrientationHorizontal)
+ state |= (1 << ui::AX_STATE_HORIZONTAL);
+ }
if (o.isVisited())
state |= (1 << ui::AX_STATE_VISITED);
« no previous file with comments | « content/browser/accessibility/browser_accessibility_win.cc ('k') | content/shell/renderer/test_runner/web_ax_object_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698