| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |