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

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

Issue 2968833002: Move IA2 State handling to AXPlatformNodeWin. (Closed)
Patch Set: Add a TODO() as suggested by dmazzoni 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 | « ui/accessibility/ax_role_properties.h ('k') | ui/accessibility/platform/ax_platform_node_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 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 "ui/accessibility/ax_role_properties.h" 5 #include "ui/accessibility/ax_role_properties.h"
6 6
7 namespace ui { 7 namespace ui {
8 8
9 bool IsRoleClickable(AXRole role) { 9 bool IsRoleClickable(AXRole role) {
10 switch (role) { 10 switch (role) {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 case ui::AX_ROLE_MENU_ITEM_CHECK_BOX: 126 case ui::AX_ROLE_MENU_ITEM_CHECK_BOX:
127 case ui::AX_ROLE_MENU_ITEM_RADIO: 127 case ui::AX_ROLE_MENU_ITEM_RADIO:
128 case ui::AX_ROLE_MENU_LIST_OPTION: 128 case ui::AX_ROLE_MENU_LIST_OPTION:
129 case ui::AX_ROLE_MENU_LIST_POPUP: 129 case ui::AX_ROLE_MENU_LIST_POPUP:
130 return true; 130 return true;
131 default: 131 default:
132 return false; 132 return false;
133 } 133 }
134 } 134 }
135 135
136 bool IsEditField(ui::AXRole role) {
137 return role == ui::AX_ROLE_TEXT_FIELD || role == ui::AX_ROLE_SEARCH_BOX;
138 }
139
136 } // namespace ui 140 } // namespace ui
OLDNEW
« no previous file with comments | « ui/accessibility/ax_role_properties.h ('k') | ui/accessibility/platform/ax_platform_node_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698