OLD | NEW |
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 Loading... |
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 |
OLD | NEW |