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

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

Issue 695133002: ARIA role math and HTML math element are not exposed correctly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
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_win.h" 5 #include "content/browser/accessibility/browser_accessibility_win.h"
6 6
7 #include <UIAutomationClient.h> 7 #include <UIAutomationClient.h>
8 #include <UIAutomationCoreApi.h> 8 #include <UIAutomationCoreApi.h>
9 9
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 3602 matching lines...) Expand 10 before | Expand all | Expand 10 after
3613 ia_role_ = ROLE_SYSTEM_LISTITEM; 3613 ia_role_ = ROLE_SYSTEM_LISTITEM;
3614 ia_state_ |= STATE_SYSTEM_READONLY; 3614 ia_state_ |= STATE_SYSTEM_READONLY;
3615 break; 3615 break;
3616 case ui::AX_ROLE_MAIN: 3616 case ui::AX_ROLE_MAIN:
3617 ia_role_ = ROLE_SYSTEM_GROUPING; 3617 ia_role_ = ROLE_SYSTEM_GROUPING;
3618 ia2_role_ = IA2_ROLE_PARAGRAPH; 3618 ia2_role_ = IA2_ROLE_PARAGRAPH;
3619 break; 3619 break;
3620 case ui::AX_ROLE_MARQUEE: 3620 case ui::AX_ROLE_MARQUEE:
3621 ia_role_ = ROLE_SYSTEM_ANIMATION; 3621 ia_role_ = ROLE_SYSTEM_ANIMATION;
3622 break; 3622 break;
3623 case ui::AX_ROLE_MATH_ELEMENT: 3623 case ui::AX_ROLE_MATH:
3624 ia_role_ = ROLE_SYSTEM_EQUATION; 3624 ia_role_ = ROLE_SYSTEM_EQUATION;
3625 ia_state_ |= STATE_SYSTEM_READONLY;
3626 break; 3625 break;
3627 case ui::AX_ROLE_MENU: 3626 case ui::AX_ROLE_MENU:
3628 case ui::AX_ROLE_MENU_BUTTON: 3627 case ui::AX_ROLE_MENU_BUTTON:
3629 ia_role_ = ROLE_SYSTEM_MENUPOPUP; 3628 ia_role_ = ROLE_SYSTEM_MENUPOPUP;
3630 break; 3629 break;
3631 case ui::AX_ROLE_MENU_BAR: 3630 case ui::AX_ROLE_MENU_BAR:
3632 ia_role_ = ROLE_SYSTEM_MENUBAR; 3631 ia_role_ = ROLE_SYSTEM_MENUBAR;
3633 break; 3632 break;
3634 case ui::AX_ROLE_MENU_ITEM: 3633 case ui::AX_ROLE_MENU_ITEM:
3635 ia_role_ = ROLE_SYSTEM_MENUITEM; 3634 ia_role_ = ROLE_SYSTEM_MENUITEM;
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
3860 // The role should always be set. 3859 // The role should always be set.
3861 DCHECK(!role_name_.empty() || ia_role_); 3860 DCHECK(!role_name_.empty() || ia_role_);
3862 3861
3863 // If we didn't explicitly set the IAccessible2 role, make it the same 3862 // If we didn't explicitly set the IAccessible2 role, make it the same
3864 // as the MSAA role. 3863 // as the MSAA role.
3865 if (!ia2_role_) 3864 if (!ia2_role_)
3866 ia2_role_ = ia_role_; 3865 ia2_role_ = ia_role_;
3867 } 3866 }
3868 3867
3869 } // namespace content 3868 } // namespace content
OLDNEW
« no previous file with comments | « chrome/common/extensions/api/automation.idl ('k') | content/browser/accessibility/dump_accessibility_tree_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698