| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2011 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2008 Nuanti Ltd. | 4 * Copyright (C) 2008 Nuanti Ltd. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * | 9 * |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 | 701 |
| 702 // High-level accessibility tree access. Other modules should only use these | 702 // High-level accessibility tree access. Other modules should only use these |
| 703 // functions. | 703 // functions. |
| 704 const AXObjectVector& Children(); | 704 const AXObjectVector& Children(); |
| 705 AXObjectImpl* ParentObject() const; | 705 AXObjectImpl* ParentObject() const; |
| 706 AXObjectImpl* ParentObjectIfExists() const; | 706 AXObjectImpl* ParentObjectIfExists() const; |
| 707 virtual AXObjectImpl* ComputeParent() const = 0; | 707 virtual AXObjectImpl* ComputeParent() const = 0; |
| 708 virtual AXObjectImpl* ComputeParentIfExists() const { return 0; } | 708 virtual AXObjectImpl* ComputeParentIfExists() const { return 0; } |
| 709 AXObjectImpl* CachedParentObject() const { return parent_; } | 709 AXObjectImpl* CachedParentObject() const { return parent_; } |
| 710 AXObjectImpl* ParentObjectUnignored() const; | 710 AXObjectImpl* ParentObjectUnignored() const; |
| 711 AXObjectImpl* ContainerWidget() const; |
| 712 bool IsContainerWidget() const; |
| 711 | 713 |
| 712 // Low-level accessibility tree exploration, only for use within the | 714 // Low-level accessibility tree exploration, only for use within the |
| 713 // accessibility module. | 715 // accessibility module. |
| 714 virtual AXObjectImpl* RawFirstChild() const { return 0; } | 716 virtual AXObjectImpl* RawFirstChild() const { return 0; } |
| 715 virtual AXObjectImpl* RawNextSibling() const { return 0; } | 717 virtual AXObjectImpl* RawNextSibling() const { return 0; } |
| 716 virtual void AddChildren() {} | 718 virtual void AddChildren() {} |
| 717 virtual bool CanHaveChildren() const { return true; } | 719 virtual bool CanHaveChildren() const { return true; } |
| 718 bool HasChildren() const { return have_children_; } | 720 bool HasChildren() const { return have_children_; } |
| 719 virtual void UpdateChildrenIfNecessary(); | 721 virtual void UpdateChildrenIfNecessary(); |
| 720 virtual bool NeedsToUpdateChildren() const { return false; } | 722 virtual bool NeedsToUpdateChildren() const { return false; } |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 883 | 885 |
| 884 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); | 886 DEFINE_TYPE_CASTS(AXObjectImpl, AXObject, obj, true, true); |
| 885 | 887 |
| 886 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ | 888 #define DEFINE_AX_OBJECT_TYPE_CASTS(thisType, predicate) \ |
| 887 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ | 889 DEFINE_TYPE_CASTS(thisType, AXObjectImpl, object, object->predicate, \ |
| 888 object.predicate) | 890 object.predicate) |
| 889 | 891 |
| 890 } // namespace blink | 892 } // namespace blink |
| 891 | 893 |
| 892 #endif // AXObjectImpl_h | 894 #endif // AXObjectImpl_h |
| OLD | NEW |