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

Unified Diff: content/browser/accessibility/browser_accessibility_win.cc

Issue 771583002: Expose aria-pressed as STATE_SYSTEM_PRESSED on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 | « no previous file | content/test/data/accessibility/aria-button-expected-win.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/accessibility/browser_accessibility_win.cc
diff --git a/content/browser/accessibility/browser_accessibility_win.cc b/content/browser/accessibility/browser_accessibility_win.cc
index a6173c2e63e20fb716facdb1ff4d6a4837382a5c..f51c8420af892973ca2c05b51f5e82c3afe80633 100644
--- a/content/browser/accessibility/browser_accessibility_win.cc
+++ b/content/browser/accessibility/browser_accessibility_win.cc
@@ -3412,14 +3412,6 @@ void BrowserAccessibilityWin::InitRoleAndState() {
break;
case ui::AX_ROLE_BUTTON:
ia_role_ = ROLE_SYSTEM_PUSHBUTTON;
- bool is_aria_pressed_defined;
- bool is_mixed;
- if (GetAriaTristate("aria-pressed", &is_aria_pressed_defined, &is_mixed))
- ia_state_ |= STATE_SYSTEM_PRESSED;
- if (is_aria_pressed_defined)
- ia2_role_ = IA2_ROLE_TOGGLE_BUTTON;
- if (is_mixed)
- ia_state_ |= STATE_SYSTEM_MIXED;
break;
case ui::AX_ROLE_CANVAS:
if (GetBoolAttribute(ui::AX_ATTR_CANVAS_HAS_FALLBACK)) {
« no previous file with comments | « no previous file | content/test/data/accessibility/aria-button-expected-win.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698