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 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 virtual void wordBoundaries(Vector<PlainTextRange>& words) const { } | 424 virtual void wordBoundaries(Vector<PlainTextRange>& words) const { } |
425 | 425 |
426 // Properties of interactive elements. | 426 // Properties of interactive elements. |
427 virtual String actionVerb() const; | 427 virtual String actionVerb() const; |
428 virtual AccessibilityButtonState checkboxOrRadioValue() const; | 428 virtual AccessibilityButtonState checkboxOrRadioValue() const; |
429 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0;
} | 429 virtual void colorValue(int& r, int& g, int& b) const { r = 0; g = 0; b = 0;
} |
430 virtual String valueDescription() const { return String(); } | 430 virtual String valueDescription() const { return String(); } |
431 virtual float valueForRange() const { return 0.0f; } | 431 virtual float valueForRange() const { return 0.0f; } |
432 virtual float maxValueForRange() const { return 0.0f; } | 432 virtual float maxValueForRange() const { return 0.0f; } |
433 virtual float minValueForRange() const { return 0.0f; } | 433 virtual float minValueForRange() const { return 0.0f; } |
| 434 virtual String placeHolder() const { return String(); } |
434 virtual String stringValue() const { return String(); } | 435 virtual String stringValue() const { return String(); } |
435 virtual const AtomicString& textInputType() const { return nullAtom; } | 436 virtual const AtomicString& textInputType() const { return nullAtom; } |
436 | 437 |
437 // ARIA attributes. | 438 // ARIA attributes. |
438 virtual AXObject* activeDescendant() const { return 0; } | 439 virtual AXObject* activeDescendant() const { return 0; } |
439 virtual String ariaAutoComplete() const { return String(); } | 440 virtual String ariaAutoComplete() const { return String(); } |
440 virtual String ariaDescribedByAttribute() const { return String(); } | 441 virtual String ariaDescribedByAttribute() const { return String(); } |
441 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { } | 442 virtual void ariaFlowToElements(AccessibilityChildrenVector&) const { } |
442 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { } | 443 virtual void ariaControlsElements(AccessibilityChildrenVector&) const { } |
443 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb
y) const { }; | 444 virtual void ariaDescribedbyElements(AccessibilityChildrenVector& describedb
y) const { }; |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 // functions called here may only search up the tree (ancestors), not down. | 614 // functions called here may only search up the tree (ancestors), not down. |
614 void updateCachedAttributeValuesIfNeeded() const; | 615 void updateCachedAttributeValuesIfNeeded() const; |
615 }; | 616 }; |
616 | 617 |
617 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 618 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
618 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 619 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
619 | 620 |
620 } // namespace blink | 621 } // namespace blink |
621 | 622 |
622 #endif // AXObject_h | 623 #endif // AXObject_h |
OLD | NEW |