OLD | NEW |
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 3806 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3817 case ui::AX_ROLE_WINDOW: | 3817 case ui::AX_ROLE_WINDOW: |
3818 ia_role_ = ROLE_SYSTEM_WINDOW; | 3818 ia_role_ = ROLE_SYSTEM_WINDOW; |
3819 break; | 3819 break; |
3820 | 3820 |
3821 // TODO(dmazzoni): figure out the proper MSAA role for all of these. | 3821 // TODO(dmazzoni): figure out the proper MSAA role for all of these. |
3822 case ui::AX_ROLE_BROWSER: | 3822 case ui::AX_ROLE_BROWSER: |
3823 case ui::AX_ROLE_DIRECTORY: | 3823 case ui::AX_ROLE_DIRECTORY: |
3824 case ui::AX_ROLE_DRAWER: | 3824 case ui::AX_ROLE_DRAWER: |
3825 case ui::AX_ROLE_HELP_TAG: | 3825 case ui::AX_ROLE_HELP_TAG: |
3826 case ui::AX_ROLE_IGNORED: | 3826 case ui::AX_ROLE_IGNORED: |
3827 case ui::AX_ROLE_INCREMENTOR: | |
3828 case ui::AX_ROLE_LOG: | 3827 case ui::AX_ROLE_LOG: |
3829 case ui::AX_ROLE_MATTE: | 3828 case ui::AX_ROLE_MATTE: |
3830 case ui::AX_ROLE_NONE: | 3829 case ui::AX_ROLE_NONE: |
3831 case ui::AX_ROLE_PRESENTATIONAL: | 3830 case ui::AX_ROLE_PRESENTATIONAL: |
3832 case ui::AX_ROLE_RULER_MARKER: | 3831 case ui::AX_ROLE_RULER_MARKER: |
3833 case ui::AX_ROLE_SHEET: | 3832 case ui::AX_ROLE_SHEET: |
3834 case ui::AX_ROLE_SLIDER_THUMB: | 3833 case ui::AX_ROLE_SLIDER_THUMB: |
3835 case ui::AX_ROLE_SYSTEM_WIDE: | 3834 case ui::AX_ROLE_SYSTEM_WIDE: |
3836 case ui::AX_ROLE_VALUE_INDICATOR: | 3835 case ui::AX_ROLE_VALUE_INDICATOR: |
3837 default: | 3836 default: |
(...skipping 19 matching lines...) Expand all Loading... |
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 |
OLD | NEW |