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

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

Issue 837123004: Add DumpAccessibilityTree tests (12 of 20) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updating expectations for mac and android Created 5 years, 11 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
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 3643 matching lines...) Expand 10 before | Expand all | Expand 10 after
3654 role_name_ = html_tag; 3654 role_name_ = html_tag;
3655 ia_role_ = ROLE_SYSTEM_PROGRESSBAR; 3655 ia_role_ = ROLE_SYSTEM_PROGRESSBAR;
3656 break; 3656 break;
3657 case ui::AX_ROLE_NAVIGATION: 3657 case ui::AX_ROLE_NAVIGATION:
3658 ia_role_ = ROLE_SYSTEM_GROUPING; 3658 ia_role_ = ROLE_SYSTEM_GROUPING;
3659 ia2_role_ = IA2_ROLE_SECTION; 3659 ia2_role_ = IA2_ROLE_SECTION;
3660 break; 3660 break;
3661 case ui::AX_ROLE_NOTE: 3661 case ui::AX_ROLE_NOTE:
3662 ia_role_ = ROLE_SYSTEM_GROUPING; 3662 ia_role_ = ROLE_SYSTEM_GROUPING;
3663 ia2_role_ = IA2_ROLE_NOTE; 3663 ia2_role_ = IA2_ROLE_NOTE;
3664 ia_state_ |= STATE_SYSTEM_READONLY;
3665 break; 3664 break;
3666 case ui::AX_ROLE_OUTLINE: 3665 case ui::AX_ROLE_OUTLINE:
3667 ia_role_ = ROLE_SYSTEM_OUTLINE; 3666 ia_role_ = ROLE_SYSTEM_OUTLINE;
3668 break; 3667 break;
3669 case ui::AX_ROLE_PARAGRAPH: 3668 case ui::AX_ROLE_PARAGRAPH:
3670 role_name_ = L"P"; 3669 role_name_ = L"P";
3671 ia2_role_ = IA2_ROLE_PARAGRAPH; 3670 ia2_role_ = IA2_ROLE_PARAGRAPH;
3672 break; 3671 break;
3673 case ui::AX_ROLE_POP_UP_BUTTON: 3672 case ui::AX_ROLE_POP_UP_BUTTON:
3674 if (html_tag == L"select") { 3673 if (html_tag == L"select") {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
3846 // The role should always be set. 3845 // The role should always be set.
3847 DCHECK(!role_name_.empty() || ia_role_); 3846 DCHECK(!role_name_.empty() || ia_role_);
3848 3847
3849 // If we didn't explicitly set the IAccessible2 role, make it the same 3848 // If we didn't explicitly set the IAccessible2 role, make it the same
3850 // as the MSAA role. 3849 // as the MSAA role.
3851 if (!ia2_role_) 3850 if (!ia2_role_)
3852 ia2_role_ = ia_role_; 3851 ia2_role_ = ia_role_;
3853 } 3852 }
3854 3853
3855 } // namespace content 3854 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698