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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
239 AccessibilityOrientationVertical, | 239 AccessibilityOrientationVertical, |
240 AccessibilityOrientationHorizontal, | 240 AccessibilityOrientationHorizontal, |
241 }; | 241 }; |
242 | 242 |
243 enum AXObjectInclusion { | 243 enum AXObjectInclusion { |
244 IncludeObject, | 244 IncludeObject, |
245 IgnoreObject, | 245 IgnoreObject, |
246 DefaultBehavior, | 246 DefaultBehavior, |
247 }; | 247 }; |
248 | 248 |
249 enum class AXSupportedAction { | |
250 NONE = 0, | |
dmazzoni
2016/11/22 01:01:08
Use CamelCase for these like other enums in this s
| |
251 ACTIVATE, | |
252 CHECK, | |
253 CLICK, | |
254 JUMP, | |
255 OPEN, | |
256 PRESS, | |
257 SELECT, | |
258 UNCHECK | |
259 }; | |
260 | |
249 enum AccessibilityButtonState { | 261 enum AccessibilityButtonState { |
250 ButtonStateOff = 0, | 262 ButtonStateOff = 0, |
251 ButtonStateOn, | 263 ButtonStateOn, |
252 ButtonStateMixed, | 264 ButtonStateMixed, |
253 }; | 265 }; |
254 | 266 |
255 enum AccessibilityTextDirection { | 267 enum AccessibilityTextDirection { |
256 AccessibilityTextDirectionLTR, | 268 AccessibilityTextDirectionLTR, |
257 AccessibilityTextDirectionRTL, | 269 AccessibilityTextDirectionRTL, |
258 AccessibilityTextDirectionTTB, | 270 AccessibilityTextDirectionTTB, |
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
788 virtual void markers(Vector<DocumentMarker::MarkerType>&, | 800 virtual void markers(Vector<DocumentMarker::MarkerType>&, |
789 Vector<AXRange>&) const {} | 801 Vector<AXRange>&) const {} |
790 // For an inline text box. | 802 // For an inline text box. |
791 // The integer horizontal pixel offset of each character in the string; | 803 // The integer horizontal pixel offset of each character in the string; |
792 // negative values for RTL. | 804 // negative values for RTL. |
793 virtual void textCharacterOffsets(Vector<int>&) const {} | 805 virtual void textCharacterOffsets(Vector<int>&) const {} |
794 // The start and end character offset of each word in the object's text. | 806 // The start and end character offset of each word in the object's text. |
795 virtual void wordBoundaries(Vector<AXRange>&) const {} | 807 virtual void wordBoundaries(Vector<AXRange>&) const {} |
796 | 808 |
797 // Properties of interactive elements. | 809 // Properties of interactive elements. |
798 String actionVerb() const; | 810 AXSupportedAction action() const; |
799 virtual AccessibilityButtonState checkboxOrRadioValue() const; | 811 virtual AccessibilityButtonState checkboxOrRadioValue() const; |
800 virtual AriaCurrentState ariaCurrentState() const { | 812 virtual AriaCurrentState ariaCurrentState() const { |
801 return AriaCurrentStateUndefined; | 813 return AriaCurrentStateUndefined; |
802 } | 814 } |
803 virtual InvalidState getInvalidState() const { return InvalidStateUndefined; } | 815 virtual InvalidState getInvalidState() const { return InvalidStateUndefined; } |
804 // Only used when invalidState() returns InvalidStateOther. | 816 // Only used when invalidState() returns InvalidStateOther. |
805 virtual String ariaInvalidValue() const { return String(); } | 817 virtual String ariaInvalidValue() const { return String(); } |
806 virtual String valueDescription() const { return String(); } | 818 virtual String valueDescription() const { return String(); } |
807 virtual float valueForRange() const { return 0.0f; } | 819 virtual float valueForRange() const { return 0.0f; } |
808 virtual float maxValueForRange() const { return 0.0f; } | 820 virtual float maxValueForRange() const { return 0.0f; } |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1064 static unsigned s_numberOfLiveAXObjects; | 1076 static unsigned s_numberOfLiveAXObjects; |
1065 }; | 1077 }; |
1066 | 1078 |
1067 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1079 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
1068 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ | 1080 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, \ |
1069 object.predicate) | 1081 object.predicate) |
1070 | 1082 |
1071 } // namespace blink | 1083 } // namespace blink |
1072 | 1084 |
1073 #endif // AXObject_h | 1085 #endif // AXObject_h |
OLD | NEW |