| 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 3755 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3766     // TODO(dmazzoni): figure out the proper MSAA role for all of these. | 3766     // TODO(dmazzoni): figure out the proper MSAA role for all of these. | 
| 3767     case ui::AX_ROLE_BROWSER: | 3767     case ui::AX_ROLE_BROWSER: | 
| 3768     case ui::AX_ROLE_DIRECTORY: | 3768     case ui::AX_ROLE_DIRECTORY: | 
| 3769     case ui::AX_ROLE_DRAWER: | 3769     case ui::AX_ROLE_DRAWER: | 
| 3770     case ui::AX_ROLE_HELP_TAG: | 3770     case ui::AX_ROLE_HELP_TAG: | 
| 3771     case ui::AX_ROLE_IGNORED: | 3771     case ui::AX_ROLE_IGNORED: | 
| 3772     case ui::AX_ROLE_INCREMENTOR: | 3772     case ui::AX_ROLE_INCREMENTOR: | 
| 3773     case ui::AX_ROLE_LOG: | 3773     case ui::AX_ROLE_LOG: | 
| 3774     case ui::AX_ROLE_MARQUEE: | 3774     case ui::AX_ROLE_MARQUEE: | 
| 3775     case ui::AX_ROLE_MATTE: | 3775     case ui::AX_ROLE_MATTE: | 
|  | 3776     case ui::AX_ROLE_NONE: | 
| 3776     case ui::AX_ROLE_PRESENTATIONAL: | 3777     case ui::AX_ROLE_PRESENTATIONAL: | 
| 3777     case ui::AX_ROLE_RULER_MARKER: | 3778     case ui::AX_ROLE_RULER_MARKER: | 
| 3778     case ui::AX_ROLE_SHEET: | 3779     case ui::AX_ROLE_SHEET: | 
| 3779     case ui::AX_ROLE_SLIDER_THUMB: | 3780     case ui::AX_ROLE_SLIDER_THUMB: | 
| 3780     case ui::AX_ROLE_SYSTEM_WIDE: | 3781     case ui::AX_ROLE_SYSTEM_WIDE: | 
| 3781     case ui::AX_ROLE_VALUE_INDICATOR: | 3782     case ui::AX_ROLE_VALUE_INDICATOR: | 
| 3782     default: | 3783     default: | 
| 3783       ia_role_ = ROLE_SYSTEM_CLIENT; | 3784       ia_role_ = ROLE_SYSTEM_CLIENT; | 
| 3784       break; | 3785       break; | 
| 3785   } | 3786   } | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
| 3802   // The role should always be set. | 3803   // The role should always be set. | 
| 3803   DCHECK(!role_name_.empty() || ia_role_); | 3804   DCHECK(!role_name_.empty() || ia_role_); | 
| 3804 | 3805 | 
| 3805   // If we didn't explicitly set the IAccessible2 role, make it the same | 3806   // If we didn't explicitly set the IAccessible2 role, make it the same | 
| 3806   // as the MSAA role. | 3807   // as the MSAA role. | 
| 3807   if (!ia2_role_) | 3808   if (!ia2_role_) | 
| 3808     ia2_role_ = ia_role_; | 3809     ia2_role_ = ia_role_; | 
| 3809 } | 3810 } | 
| 3810 | 3811 | 
| 3811 }  // namespace content | 3812 }  // namespace content | 
| OLD | NEW | 
|---|