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

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

Issue 689653002: Add DumpAccessibilityTree tests (11 of 20) (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
« 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 3570 matching lines...) Expand 10 before | Expand all | Expand 10 after
3581 ia_state_ |= STATE_SYSTEM_LINKED; 3581 ia_state_ |= STATE_SYSTEM_LINKED;
3582 ia_state_ |= STATE_SYSTEM_READONLY; 3582 ia_state_ |= STATE_SYSTEM_READONLY;
3583 break; 3583 break;
3584 case ui::AX_ROLE_LABEL_TEXT: 3584 case ui::AX_ROLE_LABEL_TEXT:
3585 ia_role_ = ROLE_SYSTEM_TEXT; 3585 ia_role_ = ROLE_SYSTEM_TEXT;
3586 ia2_role_ = IA2_ROLE_LABEL; 3586 ia2_role_ = IA2_ROLE_LABEL;
3587 break; 3587 break;
3588 case ui::AX_ROLE_SEARCH: 3588 case ui::AX_ROLE_SEARCH:
3589 ia_role_ = ROLE_SYSTEM_GROUPING; 3589 ia_role_ = ROLE_SYSTEM_GROUPING;
3590 ia2_role_ = IA2_ROLE_SECTION; 3590 ia2_role_ = IA2_ROLE_SECTION;
3591 ia_state_ |= STATE_SYSTEM_READONLY;
3592 break; 3591 break;
3593 case ui::AX_ROLE_LINK: 3592 case ui::AX_ROLE_LINK:
3594 ia_role_ = ROLE_SYSTEM_LINK; 3593 ia_role_ = ROLE_SYSTEM_LINK;
3595 ia_state_ |= STATE_SYSTEM_LINKED; 3594 ia_state_ |= STATE_SYSTEM_LINKED;
3596 break; 3595 break;
3597 case ui::AX_ROLE_LIST: 3596 case ui::AX_ROLE_LIST:
3598 ia_role_ = ROLE_SYSTEM_LIST; 3597 ia_role_ = ROLE_SYSTEM_LIST;
3599 ia_state_ |= STATE_SYSTEM_READONLY; 3598 ia_state_ |= STATE_SYSTEM_READONLY;
3600 break; 3599 break;
3601 case ui::AX_ROLE_LIST_BOX: 3600 case ui::AX_ROLE_LIST_BOX:
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
3859 // The role should always be set. 3858 // The role should always be set.
3860 DCHECK(!role_name_.empty() || ia_role_); 3859 DCHECK(!role_name_.empty() || ia_role_);
3861 3860
3862 // If we didn't explicitly set the IAccessible2 role, make it the same 3861 // If we didn't explicitly set the IAccessible2 role, make it the same
3863 // as the MSAA role. 3862 // as the MSAA role.
3864 if (!ia2_role_) 3863 if (!ia2_role_)
3865 ia2_role_ = ia_role_; 3864 ia2_role_ = ia_role_;
3866 } 3865 }
3867 3866
3868 } // namespace content 3867 } // 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