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

Side by Side Diff: ui/accessibility/ax_role_properties.cc

Issue 2671563002: MacViews: Implement NSAccessibilityPressAction for Views with clickable roles. (Closed)
Patch Set: Add TODO for "feed" ARIA role. Created 3 years, 10 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
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/accessibility/ax_role_properties.h"
6
7 namespace ui {
8
9 bool IsRoleClickable(AXRole role) {
10 switch (role) {
11 case AX_ROLE_BUTTON:
12 case AX_ROLE_CHECK_BOX:
13 case AX_ROLE_COLOR_WELL:
14 case AX_ROLE_DISCLOSURE_TRIANGLE:
15 case AX_ROLE_IMAGE_MAP_LINK:
16 case AX_ROLE_LINK:
17 case AX_ROLE_LIST_BOX_OPTION:
18 case AX_ROLE_MENU_BUTTON:
19 case AX_ROLE_MENU_ITEM:
20 case AX_ROLE_MENU_ITEM_CHECK_BOX:
21 case AX_ROLE_MENU_ITEM_RADIO:
22 case AX_ROLE_MENU_LIST_OPTION:
23 case AX_ROLE_MENU_LIST_POPUP:
24 case AX_ROLE_POP_UP_BUTTON:
25 case AX_ROLE_RADIO_BUTTON:
26 case AX_ROLE_SWITCH:
27 case AX_ROLE_TAB:
28 case AX_ROLE_TOGGLE_BUTTON:
29 return true;
30 default:
31 return false;
32 }
33 }
34
35 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_role_properties.h ('k') | ui/accessibility/platform/ax_platform_node_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698