Chromium Code Reviews| 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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 402 virtual bool isProgressIndicator() const { return false; } | 402 virtual bool isProgressIndicator() const { return false; } |
| 403 bool isRadioButton() const { return roleValue() == RadioButtonRole; } | 403 bool isRadioButton() const { return roleValue() == RadioButtonRole; } |
| 404 bool isScrollbar() const { return roleValue() == ScrollBarRole; } | 404 bool isScrollbar() const { return roleValue() == ScrollBarRole; } |
| 405 virtual bool isSlider() const { return false; } | 405 virtual bool isSlider() const { return false; } |
| 406 virtual bool isSpinButton() const { return roleValue() == SpinButtonRole; } | 406 virtual bool isSpinButton() const { return roleValue() == SpinButtonRole; } |
| 407 virtual bool isSpinButtonPart() const { return false; } | 407 virtual bool isSpinButtonPart() const { return false; } |
| 408 bool isTabItem() const { return roleValue() == TabRole; } | 408 bool isTabItem() const { return roleValue() == TabRole; } |
| 409 virtual bool isTableCell() const { return false; } | 409 virtual bool isTableCell() const { return false; } |
| 410 virtual bool isTableRow() const { return false; } | 410 virtual bool isTableRow() const { return false; } |
| 411 virtual bool isTableCol() const { return false; } | 411 virtual bool isTableCol() const { return false; } |
| 412 bool hasContentEditableAttributeSet() const; | |
|
dmazzoni
2015/04/10 21:23:24
Instead of moving hasContentEditableAttributeSet t
| |
| 412 bool isTextControl() const; | 413 bool isTextControl() const; |
| 413 bool isTree() const { return roleValue() == TreeRole; } | 414 bool isTree() const { return roleValue() == TreeRole; } |
| 414 bool isTreeItem() const { return roleValue() == TreeItemRole; } | 415 bool isTreeItem() const { return roleValue() == TreeItemRole; } |
| 415 bool isWebArea() const { return roleValue() == WebAreaRole; } | 416 bool isWebArea() const { return roleValue() == WebAreaRole; } |
| 416 | 417 |
| 417 // Check object state. | 418 // Check object state. |
| 418 virtual bool isChecked() const { return false; } | 419 virtual bool isChecked() const { return false; } |
| 419 virtual bool isClickable() const; | 420 virtual bool isClickable() const; |
| 420 virtual bool isCollapsed() const { return false; } | 421 virtual bool isCollapsed() const { return false; } |
| 421 virtual bool isEnabled() const { return false; } | 422 virtual bool isEnabled() const { return false; } |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 716 static bool includesARIAWidgetRole(const String&); | 717 static bool includesARIAWidgetRole(const String&); |
| 717 static bool hasInteractiveARIAAttribute(const Element&); | 718 static bool hasInteractiveARIAAttribute(const Element&); |
| 718 }; | 719 }; |
| 719 | 720 |
| 720 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 721 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 721 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) | 722 DEFINE_TYPE_CASTS(thisType, AXObject, object, object->predicate, object.pred icate) |
| 722 | 723 |
| 723 } // namespace blink | 724 } // namespace blink |
| 724 | 725 |
| 725 #endif // AXObject_h | 726 #endif // AXObject_h |
| OLD | NEW |