| 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 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 // or the equivalent ARIA attribute, in that order. | 606 // or the equivalent ARIA attribute, in that order. |
| 607 // TODO(dmazzoni): Add equivalents for other types of properties besides | 607 // TODO(dmazzoni): Add equivalents for other types of properties besides |
| 608 // just strings. | 608 // just strings. |
| 609 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; | 609 const AtomicString& GetAOMPropertyOrARIAAttribute(AOMStringProperty) const; |
| 610 | 610 |
| 611 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} | 611 virtual void GetSparseAXAttributes(AXSparseAttributeClient&) const {} |
| 612 | 612 |
| 613 // Determine subclass type. | 613 // Determine subclass type. |
| 614 virtual bool IsAXNodeObject() const { return false; } | 614 virtual bool IsAXNodeObject() const { return false; } |
| 615 virtual bool IsAXLayoutObject() const { return false; } | 615 virtual bool IsAXLayoutObject() const { return false; } |
| 616 virtual bool IsAXInlineTextBox() const { return false; } |
| 616 virtual bool IsAXListBox() const { return false; } | 617 virtual bool IsAXListBox() const { return false; } |
| 617 virtual bool IsAXListBoxOption() const { return false; } | 618 virtual bool IsAXListBoxOption() const { return false; } |
| 618 virtual bool IsAXRadioInput() const { return false; } | 619 virtual bool IsAXRadioInput() const { return false; } |
| 619 virtual bool IsAXSVGRoot() const { return false; } | 620 virtual bool IsAXSVGRoot() const { return false; } |
| 620 | 621 |
| 621 // Check object role or purpose. | 622 // Check object role or purpose. |
| 622 virtual AccessibilityRole RoleValue() const { return role_; } | 623 virtual AccessibilityRole RoleValue() const { return role_; } |
| 623 bool IsARIATextControl() const; | 624 bool IsARIATextControl() const; |
| 624 virtual bool IsARIATreeGridRow() const { return false; } | 625 virtual bool IsARIATreeGridRow() const { return false; } |
| 625 virtual bool IsAXTable() const { return false; } | 626 virtual bool IsAXTable() const { return false; } |
| (...skipping 501 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 |