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 * Copyright (C) 2008 Nuanti Ltd. | 3 * Copyright (C) 2008 Nuanti Ltd. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 virtual void AddObjectVectorAttribute(AXObjectVectorAttribute, | 355 virtual void AddObjectVectorAttribute(AXObjectVectorAttribute, |
356 HeapVector<Member<AXObject>>&) = 0; | 356 HeapVector<Member<AXObject>>&) = 0; |
357 }; | 357 }; |
358 | 358 |
359 // The source of the accessible name of an element. This is needed | 359 // The source of the accessible name of an element. This is needed |
360 // because on some platforms this determines how the accessible name | 360 // because on some platforms this determines how the accessible name |
361 // is exposed. | 361 // is exposed. |
362 enum AXNameFrom { | 362 enum AXNameFrom { |
363 kAXNameFromUninitialized = -1, | 363 kAXNameFromUninitialized = -1, |
364 kAXNameFromAttribute = 0, | 364 kAXNameFromAttribute = 0, |
| 365 kAXNameFromExplicitlyEmptyAttribute, |
365 kAXNameFromCaption, | 366 kAXNameFromCaption, |
366 kAXNameFromContents, | 367 kAXNameFromContents, |
367 kAXNameFromPlaceholder, | 368 kAXNameFromPlaceholder, |
368 kAXNameFromRelatedElement, | 369 kAXNameFromRelatedElement, |
369 kAXNameFromValue, | 370 kAXNameFromValue, |
370 kAXNameFromTitle, | 371 kAXNameFromTitle, |
371 }; | 372 }; |
372 | 373 |
373 // The potential native HTML-based text (name, description or placeholder) | 374 // The potential native HTML-based text (name, description or placeholder) |
374 // sources for an element. See | 375 // sources for an element. See |
(...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1127 static unsigned number_of_live_ax_objects_; | 1128 static unsigned number_of_live_ax_objects_; |
1128 }; | 1129 }; |
1129 | 1130 |
1130 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1131 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
1131 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1132 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
1132 object.predicate) | 1133 object.predicate) |
1133 | 1134 |
1134 } // namespace blink | 1135 } // namespace blink |
1135 | 1136 |
1136 #endif // AXObject_h | 1137 #endif // AXObject_h |
OLD | NEW |