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

Side by Side Diff: content/browser/accessibility/browser_accessibility.cc

Issue 2715403002: Exposes the contents of math regions to screen readers (Closed)
Patch Set: Fixed test expectations. 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/test/data/accessibility/aria/aria-math-expected-mac.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/accessibility/browser_accessibility.h" 5 #include "content/browser/accessibility/browser_accessibility.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 // from tree. 76 // from tree.
77 if (IsNativeTextControl() || IsTextOnlyObject()) 77 if (IsNativeTextControl() || IsTextOnlyObject())
78 return true; 78 return true;
79 79
80 // Roles whose children are only presentational according to the ARIA and 80 // Roles whose children are only presentational according to the ARIA and
81 // HTML5 Specs should be hidden from screen readers. 81 // HTML5 Specs should be hidden from screen readers.
82 // (Note that whilst ARIA buttons can have only presentational children, HTML5 82 // (Note that whilst ARIA buttons can have only presentational children, HTML5
83 // buttons are allowed to have content.) 83 // buttons are allowed to have content.)
84 switch (GetRole()) { 84 switch (GetRole()) {
85 case ui::AX_ROLE_IMAGE: 85 case ui::AX_ROLE_IMAGE:
86 case ui::AX_ROLE_MATH:
87 case ui::AX_ROLE_METER: 86 case ui::AX_ROLE_METER:
88 case ui::AX_ROLE_SCROLL_BAR: 87 case ui::AX_ROLE_SCROLL_BAR:
89 case ui::AX_ROLE_SLIDER: 88 case ui::AX_ROLE_SLIDER:
90 case ui::AX_ROLE_SPLITTER: 89 case ui::AX_ROLE_SPLITTER:
91 case ui::AX_ROLE_PROGRESS_INDICATOR: 90 case ui::AX_ROLE_PROGRESS_INDICATOR:
92 return true; 91 return true;
93 default: 92 default:
94 return false; 93 return false;
95 } 94 }
96 } 95 }
(...skipping 1120 matching lines...) Expand 10 before | Expand all | Expand 10 after
1217 } 1216 }
1218 } 1217 }
1219 1218
1220 node = container; 1219 node = container;
1221 } 1220 }
1222 1221
1223 return gfx::ToEnclosingRect(bounds); 1222 return gfx::ToEnclosingRect(bounds);
1224 } 1223 }
1225 1224
1226 } // namespace content 1225 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/test/data/accessibility/aria/aria-math-expected-mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698