Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(169)

Side by Side Diff: ui/accessibility/platform/ax_platform_node_win.cc

Issue 2969743002: Update AX Roles for AX_ROLE_MENU_LIST_POPUP and AX_ROLE_MENU_LIST_OPTION (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « content/test/data/accessibility/event/menulist-focus-expected-win.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « content/test/data/accessibility/event/menulist-focus-expected-win.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698