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

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

Powered by Google App Engine
This is Rietveld 408576698