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

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: 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 3644 matching lines...) Expand 10 before | Expand all | Expand 10 after
3655 role_name_ = html_tag; 3655 role_name_ = html_tag;
3656 ia_role_ = ROLE_SYSTEM_PROGRESSBAR; 3656 ia_role_ = ROLE_SYSTEM_PROGRESSBAR;
3657 break; 3657 break;
3658 case ui::AX_ROLE_NAVIGATION: 3658 case ui::AX_ROLE_NAVIGATION:
3659 ia_role_ = ROLE_SYSTEM_GROUPING; 3659 ia_role_ = ROLE_SYSTEM_GROUPING;
3660 ia2_role_ = IA2_ROLE_SECTION; 3660 ia2_role_ = IA2_ROLE_SECTION;
3661 break; 3661 break;
3662 case ui::AX_ROLE_NOTE: 3662 case ui::AX_ROLE_NOTE:
3663 ia_role_ = ROLE_SYSTEM_GROUPING; 3663 ia_role_ = ROLE_SYSTEM_GROUPING;
3664 ia2_role_ = IA2_ROLE_NOTE; 3664 ia2_role_ = IA2_ROLE_NOTE;
3665 ia_state_ |= STATE_SYSTEM_READONLY;
3666 break; 3665 break;
3667 case ui::AX_ROLE_OUTLINE: 3666 case ui::AX_ROLE_OUTLINE:
3668 ia_role_ = ROLE_SYSTEM_OUTLINE; 3667 ia_role_ = ROLE_SYSTEM_OUTLINE;
3669 break; 3668 break;
3670 case ui::AX_ROLE_PARAGRAPH: 3669 case ui::AX_ROLE_PARAGRAPH:
3671 role_name_ = L"P"; 3670 role_name_ = L"P";
3672 ia2_role_ = IA2_ROLE_PARAGRAPH; 3671 ia2_role_ = IA2_ROLE_PARAGRAPH;
3673 break; 3672 break;
3674 case ui::AX_ROLE_POP_UP_BUTTON: 3673 case ui::AX_ROLE_POP_UP_BUTTON:
3675 if (html_tag == L"select") { 3674 if (html_tag == L"select") {
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
3847 // The role should always be set. 3846 // The role should always be set.
3848 DCHECK(!role_name_.empty() || ia_role_); 3847 DCHECK(!role_name_.empty() || ia_role_);
3849 3848
3850 // If we didn't explicitly set the IAccessible2 role, make it the same 3849 // If we didn't explicitly set the IAccessible2 role, make it the same
3851 // as the MSAA role. 3850 // as the MSAA role.
3852 if (!ia2_role_) 3851 if (!ia2_role_)
3853 ia2_role_ = ia_role_; 3852 ia2_role_ = ia_role_;
3854 } 3853 }
3855 3854
3856 } // namespace content 3855 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698