| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 47 |
| 48 class MODULES_EXPORT AXLayoutObject : public AXNodeObject { | 48 class MODULES_EXPORT AXLayoutObject : public AXNodeObject { |
| 49 protected: | 49 protected: |
| 50 AXLayoutObject(LayoutObject*, AXObjectCacheImpl&); | 50 AXLayoutObject(LayoutObject*, AXObjectCacheImpl&); |
| 51 | 51 |
| 52 public: | 52 public: |
| 53 static AXLayoutObject* create(LayoutObject*, AXObjectCacheImpl&); | 53 static AXLayoutObject* create(LayoutObject*, AXObjectCacheImpl&); |
| 54 ~AXLayoutObject() override; | 54 ~AXLayoutObject() override; |
| 55 | 55 |
| 56 // Public, overridden from AXObject. | 56 // Public, overridden from AXObject. |
| 57 LayoutObject* layoutObject() const final { return m_layoutObject; } | 57 LayoutObject* getLayoutObject() const final { return m_layoutObject; } |
| 58 LayoutRect elementRect() const override; | 58 LayoutRect elementRect() const override; |
| 59 LayoutBoxModelObject* layoutBoxModelObject() const; | 59 LayoutBoxModelObject* getLayoutBoxModelObject() const; |
| 60 bool shouldNotifyActiveDescendant() const; | 60 bool shouldNotifyActiveDescendant() const; |
| 61 ScrollableArea* getScrollableAreaIfScrollable() const final; | 61 ScrollableArea* getScrollableAreaIfScrollable() const final; |
| 62 AccessibilityRole determineAccessibilityRole() override; | 62 AccessibilityRole determineAccessibilityRole() override; |
| 63 AccessibilityRole nativeAccessibilityRoleIgnoringAria() const override; | 63 AccessibilityRole nativeAccessibilityRoleIgnoringAria() const override; |
| 64 void checkCachedElementRect() const; | 64 void checkCachedElementRect() const; |
| 65 void updateCachedElementRect() const; | 65 void updateCachedElementRect() const; |
| 66 | 66 |
| 67 protected: | 67 protected: |
| 68 LayoutObject* m_layoutObject; | 68 LayoutObject* m_layoutObject; |
| 69 mutable LayoutRect m_cachedElementRect; | 69 mutable LayoutRect m_cachedElementRect; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 bool canHaveChildren() const override; | 169 bool canHaveChildren() const override; |
| 170 void updateChildrenIfNecessary() override; | 170 void updateChildrenIfNecessary() override; |
| 171 bool needsToUpdateChildren() const override { return m_childrenDirty; } | 171 bool needsToUpdateChildren() const override { return m_childrenDirty; } |
| 172 void setNeedsToUpdateChildren() override { m_childrenDirty = true; } | 172 void setNeedsToUpdateChildren() override { m_childrenDirty = true; } |
| 173 void clearChildren() override; | 173 void clearChildren() override; |
| 174 | 174 |
| 175 // Properties of the object's owning document or page. | 175 // Properties of the object's owning document or page. |
| 176 double estimatedLoadingProgress() const override; | 176 double estimatedLoadingProgress() const override; |
| 177 | 177 |
| 178 // DOM and layout tree access. | 178 // DOM and layout tree access. |
| 179 Node* node() const override; | 179 Node* getNode() const override; |
| 180 Document* document() const override; | 180 Document* getDocument() const override; |
| 181 FrameView* documentFrameView() const override; | 181 FrameView* documentFrameView() const override; |
| 182 Element* anchorElement() const override; | 182 Element* anchorElement() const override; |
| 183 | 183 |
| 184 void setValue(const String&) override; | 184 void setValue(const String&) override; |
| 185 | 185 |
| 186 // Notifications that this object may have changed. | 186 // Notifications that this object may have changed. |
| 187 void handleActiveDescendantChanged() override; | 187 void handleActiveDescendantChanged() override; |
| 188 void handleAriaExpandedChanged() override; | 188 void handleAriaExpandedChanged() override; |
| 189 void textChanged() override; | 189 void textChanged() override; |
| 190 | 190 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 218 AXRange textControlSelection() const; | 218 AXRange textControlSelection() const; |
| 219 int indexForVisiblePosition(const VisiblePosition&) const; | 219 int indexForVisiblePosition(const VisiblePosition&) const; |
| 220 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; | 220 AXLayoutObject* getUnignoredObjectFromNode(Node&) const; |
| 221 }; | 221 }; |
| 222 | 222 |
| 223 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); | 223 DEFINE_AX_OBJECT_TYPE_CASTS(AXLayoutObject, isAXLayoutObject()); |
| 224 | 224 |
| 225 } // namespace blink | 225 } // namespace blink |
| 226 | 226 |
| 227 #endif // AXLayoutObject_h | 227 #endif // AXLayoutObject_h |
| OLD | NEW |