OLD | NEW |
| 1 |
1 /* | 2 /* |
2 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nuanti Ltd. | 4 * Copyright (C) 2008 Nuanti Ltd. |
4 * | 5 * |
5 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
7 * are met: | 8 * are met: |
8 * | 9 * |
9 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 11 * notice, this list of conditions and the following disclaimer. |
(...skipping 657 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 virtual bool IsPasswordField() const { return false; } | 669 virtual bool IsPasswordField() const { return false; } |
669 virtual bool IsPasswordFieldAndShouldHideValue() const; | 670 virtual bool IsPasswordFieldAndShouldHideValue() const; |
670 bool IsPresentational() const { | 671 bool IsPresentational() const { |
671 return RoleValue() == kNoneRole || RoleValue() == kPresentationalRole; | 672 return RoleValue() == kNoneRole || RoleValue() == kPresentationalRole; |
672 } | 673 } |
673 virtual bool IsProgressIndicator() const { return false; } | 674 virtual bool IsProgressIndicator() const { return false; } |
674 bool IsRadioButton() const { return RoleValue() == kRadioButtonRole; } | 675 bool IsRadioButton() const { return RoleValue() == kRadioButtonRole; } |
675 bool IsRange() const { | 676 bool IsRange() const { |
676 return RoleValue() == kProgressIndicatorRole || | 677 return RoleValue() == kProgressIndicatorRole || |
677 RoleValue() == kScrollBarRole || RoleValue() == kSliderRole || | 678 RoleValue() == kScrollBarRole || RoleValue() == kSliderRole || |
678 RoleValue() == kSpinButtonRole; | 679 RoleValue() == kSpinButtonRole || IsMoveableSplitter(); |
679 } | 680 } |
680 bool IsScrollbar() const { return RoleValue() == kScrollBarRole; } | 681 bool IsScrollbar() const { return RoleValue() == kScrollBarRole; } |
681 virtual bool IsSlider() const { return false; } | 682 virtual bool IsSlider() const { return false; } |
682 virtual bool IsNativeSlider() const { return false; } | 683 virtual bool IsNativeSlider() const { return false; } |
| 684 virtual bool IsMoveableSplitter() const { return false; } |
683 virtual bool IsSpinButton() const { return RoleValue() == kSpinButtonRole; } | 685 virtual bool IsSpinButton() const { return RoleValue() == kSpinButtonRole; } |
684 virtual bool IsSpinButtonPart() const { return false; } | 686 virtual bool IsSpinButtonPart() const { return false; } |
685 bool IsTabItem() const { return RoleValue() == kTabRole; } | 687 bool IsTabItem() const { return RoleValue() == kTabRole; } |
686 virtual bool IsTableCell() const { return false; } | 688 virtual bool IsTableCell() const { return false; } |
687 virtual bool IsTableRow() const { return false; } | 689 virtual bool IsTableRow() const { return false; } |
688 virtual bool IsTextControl() const { return false; } | 690 virtual bool IsTextControl() const { return false; } |
689 virtual bool IsTableCol() const { return false; } | 691 virtual bool IsTableCol() const { return false; } |
690 bool IsTree() const { return RoleValue() == kTreeRole; } | 692 bool IsTree() const { return RoleValue() == kTreeRole; } |
691 bool IsWebArea() const { return RoleValue() == kWebAreaRole; } | 693 bool IsWebArea() const { return RoleValue() == kWebAreaRole; } |
692 | 694 |
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1142 | 1144 |
1143 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); | 1145 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); |
1144 | 1146 |
1145 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 1147 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
1146 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ | 1148 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ |
1147 object.predicate) | 1149 object.predicate) |
1148 | 1150 |
1149 } // namespace blink | 1151 } // namespace blink |
1150 | 1152 |
1151 #endif // AXObjectImpl_h | 1153 #endif // AXObjectImpl_h |
OLD | NEW |