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

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

Issue 652103002: Input type in radio state with menu as parent should be exposed similar to ARIA role menuitemradio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update expectations 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/browser/accessibility/dump_accessibility_tree_browsertest.cc » ('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_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 3666 matching lines...) Expand 10 before | Expand all | Expand 10 after
3677 role_name_ = html_tag; 3677 role_name_ = html_tag;
3678 ia_role_ = ROLE_SYSTEM_TEXT; 3678 ia_role_ = ROLE_SYSTEM_TEXT;
3679 ia2_role_ = IA2_ROLE_PARAGRAPH; 3679 ia2_role_ = IA2_ROLE_PARAGRAPH;
3680 break; 3680 break;
3681 case ui::AX_ROLE_PROGRESS_INDICATOR: 3681 case ui::AX_ROLE_PROGRESS_INDICATOR:
3682 ia_role_ = ROLE_SYSTEM_PROGRESSBAR; 3682 ia_role_ = ROLE_SYSTEM_PROGRESSBAR;
3683 ia_state_ |= STATE_SYSTEM_READONLY; 3683 ia_state_ |= STATE_SYSTEM_READONLY;
3684 break; 3684 break;
3685 case ui::AX_ROLE_RADIO_BUTTON: 3685 case ui::AX_ROLE_RADIO_BUTTON:
3686 ia_role_ = ROLE_SYSTEM_RADIOBUTTON; 3686 ia_role_ = ROLE_SYSTEM_RADIOBUTTON;
3687 ia2_state_ = IA2_STATE_CHECKABLE;
3687 break; 3688 break;
3688 case ui::AX_ROLE_RADIO_GROUP: 3689 case ui::AX_ROLE_RADIO_GROUP:
3689 ia_role_ = ROLE_SYSTEM_GROUPING; 3690 ia_role_ = ROLE_SYSTEM_GROUPING;
3690 break; 3691 break;
3691 case ui::AX_ROLE_REGION: 3692 case ui::AX_ROLE_REGION:
3692 if (html_tag == L"section") { 3693 if (html_tag == L"section") {
3693 ia_role_ = ROLE_SYSTEM_GROUPING; 3694 ia_role_ = ROLE_SYSTEM_GROUPING;
3694 ia2_role_ = IA2_ROLE_SECTION; 3695 ia2_role_ = IA2_ROLE_SECTION;
3695 } else { 3696 } else {
3696 ia_role_ = ROLE_SYSTEM_PANE; 3697 ia_role_ = ROLE_SYSTEM_PANE;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
3842 // The role should always be set. 3843 // The role should always be set.
3843 DCHECK(!role_name_.empty() || ia_role_); 3844 DCHECK(!role_name_.empty() || ia_role_);
3844 3845
3845 // If we didn't explicitly set the IAccessible2 role, make it the same 3846 // If we didn't explicitly set the IAccessible2 role, make it the same
3846 // as the MSAA role. 3847 // as the MSAA role.
3847 if (!ia2_role_) 3848 if (!ia2_role_)
3848 ia2_role_ = ia_role_; 3849 ia2_role_ = ia_role_;
3849 } 3850 }
3850 3851
3851 } // namespace content 3852 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/dump_accessibility_tree_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698