OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <atlbase.h> | 5 #include <atlbase.h> |
6 #include <atlcom.h> | 6 #include <atlcom.h> |
7 #include <limits.h> | 7 #include <limits.h> |
8 #include <oleacc.h> | 8 #include <oleacc.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 int AXPlatformNodeWin::MSAARole() { | 1033 int AXPlatformNodeWin::MSAARole() { |
1034 switch (GetData().role) { | 1034 switch (GetData().role) { |
1035 case ui::AX_ROLE_ALERT: | 1035 case ui::AX_ROLE_ALERT: |
1036 return ROLE_SYSTEM_ALERT; | 1036 return ROLE_SYSTEM_ALERT; |
1037 case ui::AX_ROLE_APPLICATION: | 1037 case ui::AX_ROLE_APPLICATION: |
1038 return ROLE_SYSTEM_APPLICATION; | 1038 return ROLE_SYSTEM_APPLICATION; |
1039 case ui::AX_ROLE_BUTTON_DROP_DOWN: | 1039 case ui::AX_ROLE_BUTTON_DROP_DOWN: |
1040 return ROLE_SYSTEM_BUTTONDROPDOWN; | 1040 return ROLE_SYSTEM_BUTTONDROPDOWN; |
1041 case ui::AX_ROLE_POP_UP_BUTTON: | 1041 case ui::AX_ROLE_POP_UP_BUTTON: |
1042 return ROLE_SYSTEM_BUTTONMENU; | 1042 return ROLE_SYSTEM_BUTTONMENU; |
| 1043 case ui::AX_ROLE_CARET: |
| 1044 return ROLE_SYSTEM_CARET; |
1043 case ui::AX_ROLE_CHECK_BOX: | 1045 case ui::AX_ROLE_CHECK_BOX: |
1044 return ROLE_SYSTEM_CHECKBUTTON; | 1046 return ROLE_SYSTEM_CHECKBUTTON; |
1045 case ui::AX_ROLE_COMBO_BOX: | 1047 case ui::AX_ROLE_COMBO_BOX: |
1046 return ROLE_SYSTEM_COMBOBOX; | 1048 return ROLE_SYSTEM_COMBOBOX; |
1047 case ui::AX_ROLE_DIALOG: | 1049 case ui::AX_ROLE_DIALOG: |
1048 return ROLE_SYSTEM_DIALOG; | 1050 return ROLE_SYSTEM_DIALOG; |
1049 case ui::AX_ROLE_GROUP: | 1051 case ui::AX_ROLE_GROUP: |
1050 return ROLE_SYSTEM_GROUPING; | 1052 return ROLE_SYSTEM_GROUPING; |
1051 case ui::AX_ROLE_IMAGE: | 1053 case ui::AX_ROLE_IMAGE: |
1052 return ROLE_SYSTEM_GRAPHIC; | 1054 return ROLE_SYSTEM_GRAPHIC; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1290 | 1292 |
1291 AXPlatformNodeBase* base = | 1293 AXPlatformNodeBase* base = |
1292 FromNativeViewAccessible(node->GetNativeViewAccessible()); | 1294 FromNativeViewAccessible(node->GetNativeViewAccessible()); |
1293 if (base && !IsDescendant(base)) | 1295 if (base && !IsDescendant(base)) |
1294 base = nullptr; | 1296 base = nullptr; |
1295 | 1297 |
1296 return static_cast<AXPlatformNodeWin*>(base); | 1298 return static_cast<AXPlatformNodeWin*>(base); |
1297 } | 1299 } |
1298 | 1300 |
1299 } // namespace ui | 1301 } // namespace ui |
OLD | NEW |