| 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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1355 case ui::AX_ROLE_MENU_ITEM: | 1355 case ui::AX_ROLE_MENU_ITEM: |
| 1356 return ROLE_SYSTEM_MENUITEM; | 1356 return ROLE_SYSTEM_MENUITEM; |
| 1357 | 1357 |
| 1358 case ui::AX_ROLE_MENU_ITEM_CHECK_BOX: | 1358 case ui::AX_ROLE_MENU_ITEM_CHECK_BOX: |
| 1359 return ROLE_SYSTEM_MENUITEM; | 1359 return ROLE_SYSTEM_MENUITEM; |
| 1360 | 1360 |
| 1361 case ui::AX_ROLE_MENU_ITEM_RADIO: | 1361 case ui::AX_ROLE_MENU_ITEM_RADIO: |
| 1362 return ROLE_SYSTEM_MENUITEM; | 1362 return ROLE_SYSTEM_MENUITEM; |
| 1363 | 1363 |
| 1364 case ui::AX_ROLE_MENU_LIST_POPUP: | 1364 case ui::AX_ROLE_MENU_LIST_POPUP: |
| 1365 return ROLE_SYSTEM_LIST; | 1365 return ROLE_SYSTEM_MENUPOPUP; |
| 1366 | 1366 |
| 1367 case ui::AX_ROLE_MENU_LIST_OPTION: | 1367 case ui::AX_ROLE_MENU_LIST_OPTION: |
| 1368 return ROLE_SYSTEM_LISTITEM; | 1368 return ROLE_SYSTEM_MENUITEM; |
| 1369 | 1369 |
| 1370 case ui::AX_ROLE_NAVIGATION: | 1370 case ui::AX_ROLE_NAVIGATION: |
| 1371 return ROLE_SYSTEM_GROUPING; | 1371 return ROLE_SYSTEM_GROUPING; |
| 1372 | 1372 |
| 1373 case ui::AX_ROLE_NOTE: | 1373 case ui::AX_ROLE_NOTE: |
| 1374 return ROLE_SYSTEM_GROUPING; | 1374 return ROLE_SYSTEM_GROUPING; |
| 1375 | 1375 |
| 1376 case ui::AX_ROLE_OUTLINE: | 1376 case ui::AX_ROLE_OUTLINE: |
| 1377 return ROLE_SYSTEM_OUTLINE; | 1377 return ROLE_SYSTEM_OUTLINE; |
| 1378 | 1378 |
| (...skipping 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1885 | 1885 |
| 1886 AXPlatformNodeBase* base = | 1886 AXPlatformNodeBase* base = |
| 1887 FromNativeViewAccessible(node->GetNativeViewAccessible()); | 1887 FromNativeViewAccessible(node->GetNativeViewAccessible()); |
| 1888 if (base && !IsDescendant(base)) | 1888 if (base && !IsDescendant(base)) |
| 1889 base = nullptr; | 1889 base = nullptr; |
| 1890 | 1890 |
| 1891 return static_cast<AXPlatformNodeWin*>(base); | 1891 return static_cast<AXPlatformNodeWin*>(base); |
| 1892 } | 1892 } |
| 1893 | 1893 |
| 1894 } // namespace ui | 1894 } // namespace ui |
| OLD | NEW |