diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-05 17:15:33 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-04-11 07:47:18 +0000 |
commit | 7324afb043a0b1e623d8e8eb906cdc53bdeb4685 (patch) | |
tree | a3fe2d74ea9c9e142c390dac4ca0e219382ace46 /chromium/ui/accessibility/ax_role_properties.cc | |
parent | 6a4cabb866f66d4128a97cdc6d9d08ce074f1247 (diff) | |
download | qtwebengine-chromium-7324afb043a0b1e623d8e8eb906cdc53bdeb4685.tar.gz |
BASELINE: Update Chromium to 58.0.3029.54
Change-Id: I67f57065a7afdc8e4614adb5c0230281428df4d1
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
Diffstat (limited to 'chromium/ui/accessibility/ax_role_properties.cc')
-rw-r--r-- | chromium/ui/accessibility/ax_role_properties.cc | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/chromium/ui/accessibility/ax_role_properties.cc b/chromium/ui/accessibility/ax_role_properties.cc new file mode 100644 index 00000000000..aa712fab75c --- /dev/null +++ b/chromium/ui/accessibility/ax_role_properties.cc @@ -0,0 +1,35 @@ +// Copyright 2017 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#include "ui/accessibility/ax_role_properties.h" + +namespace ui { + +bool IsRoleClickable(AXRole role) { + switch (role) { + case AX_ROLE_BUTTON: + case AX_ROLE_CHECK_BOX: + case AX_ROLE_COLOR_WELL: + case AX_ROLE_DISCLOSURE_TRIANGLE: + case AX_ROLE_IMAGE_MAP_LINK: + case AX_ROLE_LINK: + case AX_ROLE_LIST_BOX_OPTION: + case AX_ROLE_MENU_BUTTON: + case AX_ROLE_MENU_ITEM: + case AX_ROLE_MENU_ITEM_CHECK_BOX: + case AX_ROLE_MENU_ITEM_RADIO: + case AX_ROLE_MENU_LIST_OPTION: + case AX_ROLE_MENU_LIST_POPUP: + case AX_ROLE_POP_UP_BUTTON: + case AX_ROLE_RADIO_BUTTON: + case AX_ROLE_SWITCH: + case AX_ROLE_TAB: + case AX_ROLE_TOGGLE_BUTTON: + return true; + default: + return false; + } +} + +} // namespace ui |