OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 SupportsARIAFlowTo() || SupportsARIAOwns() || | 1128 SupportsARIAFlowTo() || SupportsARIAOwns() || |
1129 HasAttribute(aria_labelAttr); | 1129 HasAttribute(aria_labelAttr); |
1130 } | 1130 } |
1131 | 1131 |
1132 bool AXObjectImpl::SupportsRangeValue() const { | 1132 bool AXObjectImpl::SupportsRangeValue() const { |
1133 return IsProgressIndicator() || IsMeter() || IsSlider() || IsScrollbar() || | 1133 return IsProgressIndicator() || IsMeter() || IsSlider() || IsScrollbar() || |
1134 IsSpinButton(); | 1134 IsSpinButton(); |
1135 } | 1135 } |
1136 | 1136 |
1137 bool AXObjectImpl::SupportsSetSizeAndPosInSet() const { | 1137 bool AXObjectImpl::SupportsSetSizeAndPosInSet() const { |
1138 AXObjectImpl* parent = ParentObject(); | 1138 AXObjectImpl* parent = ParentObjectUnignored(); |
1139 if (!parent) | 1139 if (!parent) |
1140 return false; | 1140 return false; |
1141 | 1141 |
1142 int role = RoleValue(); | 1142 int role = RoleValue(); |
1143 int parent_role = parent->RoleValue(); | 1143 int parent_role = parent->RoleValue(); |
1144 | 1144 |
1145 if ((role == kListBoxOptionRole && parent_role == kListBoxRole) || | 1145 if ((role == kListBoxOptionRole && parent_role == kListBoxRole) || |
1146 (role == kListItemRole && parent_role == kListRole) || | 1146 (role == kListItemRole && parent_role == kListRole) || |
1147 (role == kMenuItemRole && parent_role == kMenuRole) || | 1147 (role == kMenuItemRole && parent_role == kMenuRole) || |
1148 (role == kRadioButtonRole) || | 1148 (role == kRadioButtonRole) || |
1149 (role == kTabRole && parent_role == kTabListRole) || | 1149 (role == kTabRole && parent_role == kTabListRole) || |
1150 (role == kTreeItemRole && parent_role == kTreeRole) || | 1150 (role == kTreeItemRole && parent_role == kTreeRole) || |
1151 (role == kTreeItemRole && parent_role == kGroupRole)) { | 1151 (role == kTreeItemRole && parent_role == kTreeItemRole)) { |
1152 return true; | 1152 return true; |
1153 } | 1153 } |
1154 | 1154 |
1155 return false; | 1155 return false; |
1156 } | 1156 } |
1157 | 1157 |
1158 int AXObjectImpl::IndexInParent() const { | 1158 int AXObjectImpl::IndexInParent() const { |
1159 if (!ParentObject()) | 1159 if (!ParentObject()) |
1160 return 0; | 1160 return 0; |
1161 | 1161 |
(...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 } | 2022 } |
2023 | 2023 |
2024 DEFINE_TRACE(AXObjectImpl) { | 2024 DEFINE_TRACE(AXObjectImpl) { |
2025 visitor->Trace(children_); | 2025 visitor->Trace(children_); |
2026 visitor->Trace(parent_); | 2026 visitor->Trace(parent_); |
2027 visitor->Trace(cached_live_region_root_); | 2027 visitor->Trace(cached_live_region_root_); |
2028 visitor->Trace(ax_object_cache_); | 2028 visitor->Trace(ax_object_cache_); |
2029 } | 2029 } |
2030 | 2030 |
2031 } // namespace blink | 2031 } // namespace blink |
OLD | NEW |