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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 virtual bool isProgressIndicator() const { return false; } | 381 virtual bool isProgressIndicator() const { return false; } |
382 bool isRadioButton() const { return roleValue() == RadioButtonRole; } | 382 bool isRadioButton() const { return roleValue() == RadioButtonRole; } |
383 bool isScrollbar() const { return roleValue() == ScrollBarRole; } | 383 bool isScrollbar() const { return roleValue() == ScrollBarRole; } |
384 virtual bool isSlider() const { return false; } | 384 virtual bool isSlider() const { return false; } |
385 virtual bool isSpinButton() const { return roleValue() == SpinButtonRole; } | 385 virtual bool isSpinButton() const { return roleValue() == SpinButtonRole; } |
386 virtual bool isSpinButtonPart() const { return false; } | 386 virtual bool isSpinButtonPart() const { return false; } |
387 bool isTabItem() const { return roleValue() == TabRole; } | 387 bool isTabItem() const { return roleValue() == TabRole; } |
388 virtual bool isTableCell() const { return false; } | 388 virtual bool isTableCell() const { return false; } |
389 virtual bool isTableRow() const { return false; } | 389 virtual bool isTableRow() const { return false; } |
390 virtual bool isTableCol() const { return false; } | 390 virtual bool isTableCol() const { return false; } |
| 391 bool hasContentEditableAttributeSet() const; |
391 bool isTextControl() const; | 392 bool isTextControl() const; |
392 bool isTree() const { return roleValue() == TreeRole; } | 393 bool isTree() const { return roleValue() == TreeRole; } |
393 bool isTreeItem() const { return roleValue() == TreeItemRole; } | 394 bool isTreeItem() const { return roleValue() == TreeItemRole; } |
394 bool isWebArea() const { return roleValue() == WebAreaRole; } | 395 bool isWebArea() const { return roleValue() == WebAreaRole; } |
395 | 396 |
396 // Check object state. | 397 // Check object state. |
397 virtual bool isChecked() const { return false; } | 398 virtual bool isChecked() const { return false; } |
398 virtual bool isClickable() const; | 399 virtual bool isClickable() const; |
399 virtual bool isCollapsed() const { return false; } | 400 virtual bool isCollapsed() const { return false; } |
400 virtual bool isEnabled() const { return false; } | 401 virtual bool isEnabled() const { return false; } |
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 static bool includesARIAWidgetRole(const String&); | 664 static bool includesARIAWidgetRole(const String&); |
664 static bool hasInteractiveARIAAttribute(const Element&); | 665 static bool hasInteractiveARIAAttribute(const Element&); |
665 }; | 666 }; |
666 | 667 |
667 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 668 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
668 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) | 669 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred
icate) |
669 | 670 |
670 } // namespace blink | 671 } // namespace blink |
671 | 672 |
672 #endif // AXObject_h | 673 #endif // AXObject_h |
OLD | NEW |