| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 kAccessibilityOrientationVertical, | 244 kAccessibilityOrientationVertical, |
| 245 kAccessibilityOrientationHorizontal, | 245 kAccessibilityOrientationHorizontal, |
| 246 }; | 246 }; |
| 247 | 247 |
| 248 enum AXObjectInclusion { | 248 enum AXObjectInclusion { |
| 249 kIncludeObject, | 249 kIncludeObject, |
| 250 kIgnoreObject, | 250 kIgnoreObject, |
| 251 kDefaultBehavior, | 251 kDefaultBehavior, |
| 252 }; | 252 }; |
| 253 | 253 |
| 254 enum class AXSupportedAction { | 254 enum class AXDefaultActionVerb { |
| 255 kNone = 0, | 255 kNone = 0, |
| 256 kActivate, | 256 kActivate, |
| 257 kCheck, | 257 kCheck, |
| 258 kClick, | 258 kClick, |
| 259 kJump, | 259 kJump, |
| 260 kOpen, | 260 kOpen, |
| 261 kPress, | 261 kPress, |
| 262 kSelect, | 262 kSelect, |
| 263 kUncheck | 263 kUncheck |
| 264 }; | 264 }; |
| (...skipping 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 855 virtual void Markers(Vector<DocumentMarker::MarkerType>&, | 855 virtual void Markers(Vector<DocumentMarker::MarkerType>&, |
| 856 Vector<AXRange>&) const {} | 856 Vector<AXRange>&) const {} |
| 857 // For an inline text box. | 857 // For an inline text box. |
| 858 // The integer horizontal pixel offset of each character in the string; | 858 // The integer horizontal pixel offset of each character in the string; |
| 859 // negative values for RTL. | 859 // negative values for RTL. |
| 860 virtual void TextCharacterOffsets(Vector<int>&) const {} | 860 virtual void TextCharacterOffsets(Vector<int>&) const {} |
| 861 // The start and end character offset of each word in the object's text. | 861 // The start and end character offset of each word in the object's text. |
| 862 virtual void GetWordBoundaries(Vector<AXRange>&) const {} | 862 virtual void GetWordBoundaries(Vector<AXRange>&) const {} |
| 863 | 863 |
| 864 // Properties of interactive elements. | 864 // Properties of interactive elements. |
| 865 AXSupportedAction Action() const; | 865 AXDefaultActionVerb Action() const; |
| 866 AccessibilityButtonState CheckedState() const; | 866 AccessibilityButtonState CheckedState() const; |
| 867 virtual AriaCurrentState GetAriaCurrentState() const { | 867 virtual AriaCurrentState GetAriaCurrentState() const { |
| 868 return kAriaCurrentStateUndefined; | 868 return kAriaCurrentStateUndefined; |
| 869 } | 869 } |
| 870 virtual InvalidState GetInvalidState() const { | 870 virtual InvalidState GetInvalidState() const { |
| 871 return kInvalidStateUndefined; | 871 return kInvalidStateUndefined; |
| 872 } | 872 } |
| 873 // Only used when invalidState() returns InvalidStateOther. | 873 // Only used when invalidState() returns InvalidStateOther. |
| 874 virtual String AriaInvalidValue() const { return String(); } | 874 virtual String AriaInvalidValue() const { return String(); } |
| 875 virtual String ValueDescription() const { return String(); } | 875 virtual String ValueDescription() const { return String(); } |
| (...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 | 1138 |
| 1139 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); | 1139 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); |
| 1140 | 1140 |
| 1141 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1141 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 1142 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ | 1142 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ |
| 1143 object.predicate) | 1143 object.predicate) |
| 1144 | 1144 |
| 1145 } // namespace blink | 1145 } // namespace blink |
| 1146 | 1146 |
| 1147 #endif // AXObjectImpl_h | 1147 #endif // AXObjectImpl_h |
| OLD | NEW |