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 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
984 int AXPlatformNodeWin::MSAARole() { | 984 int AXPlatformNodeWin::MSAARole() { |
985 switch (GetData().role) { | 985 switch (GetData().role) { |
986 case ui::AX_ROLE_ALERT: | 986 case ui::AX_ROLE_ALERT: |
987 return ROLE_SYSTEM_ALERT; | 987 return ROLE_SYSTEM_ALERT; |
988 case ui::AX_ROLE_APPLICATION: | 988 case ui::AX_ROLE_APPLICATION: |
989 return ROLE_SYSTEM_APPLICATION; | 989 return ROLE_SYSTEM_APPLICATION; |
990 case ui::AX_ROLE_BUTTON_DROP_DOWN: | 990 case ui::AX_ROLE_BUTTON_DROP_DOWN: |
991 return ROLE_SYSTEM_BUTTONDROPDOWN; | 991 return ROLE_SYSTEM_BUTTONDROPDOWN; |
992 case ui::AX_ROLE_POP_UP_BUTTON: | 992 case ui::AX_ROLE_POP_UP_BUTTON: |
993 return ROLE_SYSTEM_BUTTONMENU; | 993 return ROLE_SYSTEM_BUTTONMENU; |
| 994 case ui::AX_ROLE_CARET: |
| 995 return ROLE_SYSTEM_CARET; |
994 case ui::AX_ROLE_CHECK_BOX: | 996 case ui::AX_ROLE_CHECK_BOX: |
995 return ROLE_SYSTEM_CHECKBUTTON; | 997 return ROLE_SYSTEM_CHECKBUTTON; |
996 case ui::AX_ROLE_COMBO_BOX: | 998 case ui::AX_ROLE_COMBO_BOX: |
997 return ROLE_SYSTEM_COMBOBOX; | 999 return ROLE_SYSTEM_COMBOBOX; |
998 case ui::AX_ROLE_DIALOG: | 1000 case ui::AX_ROLE_DIALOG: |
999 return ROLE_SYSTEM_DIALOG; | 1001 return ROLE_SYSTEM_DIALOG; |
1000 case ui::AX_ROLE_GROUP: | 1002 case ui::AX_ROLE_GROUP: |
1001 return ROLE_SYSTEM_GROUPING; | 1003 return ROLE_SYSTEM_GROUPING; |
1002 case ui::AX_ROLE_IMAGE: | 1004 case ui::AX_ROLE_IMAGE: |
1003 return ROLE_SYSTEM_GRAPHIC; | 1005 return ROLE_SYSTEM_GRAPHIC; |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 ui::TextBoundaryDirection direction) { | 1202 ui::TextBoundaryDirection direction) { |
1201 HandleSpecialTextOffset(&start_offset); | 1203 HandleSpecialTextOffset(&start_offset); |
1202 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); | 1204 ui::TextBoundaryType boundary = IA2TextBoundaryToTextBoundary(ia2_boundary); |
1203 std::vector<int32_t> line_breaks; | 1205 std::vector<int32_t> line_breaks; |
1204 return static_cast<LONG>(ui::FindAccessibleTextBoundary( | 1206 return static_cast<LONG>(ui::FindAccessibleTextBoundary( |
1205 text, line_breaks, boundary, start_offset, direction, | 1207 text, line_breaks, boundary, start_offset, direction, |
1206 AX_TEXT_AFFINITY_DOWNSTREAM)); | 1208 AX_TEXT_AFFINITY_DOWNSTREAM)); |
1207 } | 1209 } |
1208 | 1210 |
1209 } // namespace ui | 1211 } // namespace ui |
OLD | NEW |