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 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
960 | 960 |
961 // High-level accessibility tree access. Other modules should only use these | 961 // High-level accessibility tree access. Other modules should only use these |
962 // functions. | 962 // functions. |
963 const AXObjectVector& Children(); | 963 const AXObjectVector& Children(); |
964 AXObjectImpl* ParentObject() const; | 964 AXObjectImpl* ParentObject() const; |
965 AXObjectImpl* ParentObjectIfExists() const; | 965 AXObjectImpl* ParentObjectIfExists() const; |
966 virtual AXObjectImpl* ComputeParent() const = 0; | 966 virtual AXObjectImpl* ComputeParent() const = 0; |
967 virtual AXObjectImpl* ComputeParentIfExists() const { return 0; } | 967 virtual AXObjectImpl* ComputeParentIfExists() const { return 0; } |
968 AXObjectImpl* CachedParentObject() const { return parent_; } | 968 AXObjectImpl* CachedParentObject() const { return parent_; } |
969 AXObjectImpl* ParentObjectUnignored() const; | 969 AXObjectImpl* ParentObjectUnignored() const; |
| 970 AXObjectImpl* ContainerWidget() const; |
| 971 bool IsContainerWidget() const; |
970 | 972 |
971 // Low-level accessibility tree exploration, only for use within the | 973 // Low-level accessibility tree exploration, only for use within the |
972 // accessibility module. | 974 // accessibility module. |
973 virtual AXObjectImpl* RawFirstChild() const { return 0; } | 975 virtual AXObjectImpl* RawFirstChild() const { return 0; } |
974 virtual AXObjectImpl* RawNextSibling() const { return 0; } | 976 virtual AXObjectImpl* RawNextSibling() const { return 0; } |
975 virtual void AddChildren() {} | 977 virtual void AddChildren() {} |
976 virtual bool CanHaveChildren() const { return true; } | 978 virtual bool CanHaveChildren() const { return true; } |
977 bool HasChildren() const { return have_children_; } | 979 bool HasChildren() const { return have_children_; } |
978 virtual void UpdateChildrenIfNecessary(); | 980 virtual void UpdateChildrenIfNecessary(); |
979 virtual bool NeedsToUpdateChildren() const { return false; } | 981 virtual bool NeedsToUpdateChildren() const { return false; } |
(...skipping 162 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 |