| 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 270 ExpandedCollapsed, | 270 ExpandedCollapsed, |
| 271 ExpandedExpanded, | 271 ExpandedExpanded, |
| 272 }; | 272 }; |
| 273 | 273 |
| 274 enum AccessibilityOptionalBool { | 274 enum AccessibilityOptionalBool { |
| 275 OptionalBoolUndefined = 0, | 275 OptionalBoolUndefined = 0, |
| 276 OptionalBoolTrue, | 276 OptionalBoolTrue, |
| 277 OptionalBoolFalse | 277 OptionalBoolFalse |
| 278 }; | 278 }; |
| 279 | 279 |
| 280 enum AriaCurrentState { |
| 281 AriaCurrentStateUndefined = 0, |
| 282 AriaCurrentStateFalse, |
| 283 AriaCurrentStateTrue, |
| 284 AriaCurrentStatePage, |
| 285 AriaCurrentStateStep, |
| 286 AriaCurrentStateLocation, |
| 287 AriaCurrentStateDate, |
| 288 AriaCurrentStateTime |
| 289 }; |
| 290 |
| 280 enum InvalidState { | 291 enum InvalidState { |
| 281 InvalidStateUndefined = 0, | 292 InvalidStateUndefined = 0, |
| 282 InvalidStateFalse, | 293 InvalidStateFalse, |
| 283 InvalidStateTrue, | 294 InvalidStateTrue, |
| 284 InvalidStateSpelling, | 295 InvalidStateSpelling, |
| 285 InvalidStateGrammar, | 296 InvalidStateGrammar, |
| 286 InvalidStateOther | 297 InvalidStateOther |
| 287 }; | 298 }; |
| 288 | 299 |
| 289 enum TextStyle { | 300 enum TextStyle { |
| (...skipping 437 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 727 | 738 |
| 728 // For an inline text box. | 739 // For an inline text box. |
| 729 // The integer horizontal pixel offset of each character in the string; nega
tive values for RTL. | 740 // The integer horizontal pixel offset of each character in the string; nega
tive values for RTL. |
| 730 virtual void textCharacterOffsets(Vector<int>&) const { } | 741 virtual void textCharacterOffsets(Vector<int>&) const { } |
| 731 // The start and end character offset of each word in the inline text box. | 742 // The start and end character offset of each word in the inline text box. |
| 732 virtual void wordBoundaries(Vector<AXRange>& words) const { } | 743 virtual void wordBoundaries(Vector<AXRange>& words) const { } |
| 733 | 744 |
| 734 // Properties of interactive elements. | 745 // Properties of interactive elements. |
| 735 String actionVerb() const; | 746 String actionVerb() const; |
| 736 virtual AccessibilityButtonState checkboxOrRadioValue() const; | 747 virtual AccessibilityButtonState checkboxOrRadioValue() const; |
| 748 virtual AriaCurrentState ariaCurrentState() const { return AriaCurrentStateU
ndefined; } |
| 737 virtual InvalidState getInvalidState() const { return InvalidStateUndefined;
} | 749 virtual InvalidState getInvalidState() const { return InvalidStateUndefined;
} |
| 738 // Only used when invalidState() returns InvalidStateOther. | 750 // Only used when invalidState() returns InvalidStateOther. |
| 739 virtual String ariaInvalidValue() const { return String(); } | 751 virtual String ariaInvalidValue() const { return String(); } |
| 740 virtual String valueDescription() const { return String(); } | 752 virtual String valueDescription() const { return String(); } |
| 741 virtual float valueForRange() const { return 0.0f; } | 753 virtual float valueForRange() const { return 0.0f; } |
| 742 virtual float maxValueForRange() const { return 0.0f; } | 754 virtual float maxValueForRange() const { return 0.0f; } |
| 743 virtual float minValueForRange() const { return 0.0f; } | 755 virtual float minValueForRange() const { return 0.0f; } |
| 744 virtual String stringValue() const { return String(); } | 756 virtual String stringValue() const { return String(); } |
| 745 | 757 |
| 746 // ARIA attributes. | 758 // ARIA attributes. |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 970 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 959 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 971 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
| 960 | 972 |
| 961 } // namespace blink | 973 } // namespace blink |
| 962 | 974 |
| 963 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); | 975 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::IgnoredReason); |
| 964 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); | 976 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::NameSource); |
| 965 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); | 977 WTF_ALLOW_INIT_WITH_MEM_FUNCTIONS(blink::DescriptionSource); |
| 966 | 978 |
| 967 #endif // AXObject_h | 979 #endif // AXObject_h |
| OLD | NEW |