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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 case TabRole: | 239 case TabRole: |
240 case TextAreaRole: | 240 case TextAreaRole: |
241 case TextFieldRole: | 241 case TextFieldRole: |
242 case ToggleButtonRole: | 242 case ToggleButtonRole: |
243 return true; | 243 return true; |
244 default: | 244 default: |
245 return false; | 245 return false; |
246 } | 246 } |
247 } | 247 } |
248 | 248 |
249 bool AXObject::isExpanded() const | |
250 { | |
251 if (equalIgnoringCase(getAttribute(aria_expandedAttr), "true")) | |
252 return true; | |
253 | |
254 return false; | |
255 } | |
256 | |
257 bool AXObject::accessibilityIsIgnored() const | 249 bool AXObject::accessibilityIsIgnored() const |
258 { | 250 { |
259 AXObjectCache* cache = axObjectCache(); | 251 AXObjectCache* cache = axObjectCache(); |
260 if (!cache) | 252 if (!cache) |
261 return true; | 253 return true; |
262 | 254 |
263 AXComputedObjectAttributeCache* attributeCache = cache->computedObjectAttrib
uteCache(); | 255 AXComputedObjectAttributeCache* attributeCache = cache->computedObjectAttrib
uteCache(); |
264 if (attributeCache) { | 256 if (attributeCache) { |
265 AXObjectInclusion ignored = attributeCache->getIgnored(axObjectID()); | 257 AXObjectInclusion ignored = attributeCache->getIgnored(axObjectID()); |
266 switch (ignored) { | 258 switch (ignored) { |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
924 return ToggleButtonRole; | 916 return ToggleButtonRole; |
925 if (ariaHasPopup()) | 917 if (ariaHasPopup()) |
926 return PopUpButtonRole; | 918 return PopUpButtonRole; |
927 // We don't contemplate RadioButtonRole, as it depends on the input | 919 // We don't contemplate RadioButtonRole, as it depends on the input |
928 // type. | 920 // type. |
929 | 921 |
930 return ButtonRole; | 922 return ButtonRole; |
931 } | 923 } |
932 | 924 |
933 } // namespace blink | 925 } // namespace blink |
OLD | NEW |