| 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 29 matching lines...) Expand all Loading... |
| 40 class Element; | 40 class Element; |
| 41 class FrameView; | 41 class FrameView; |
| 42 class HTMLAreaElement; | 42 class HTMLAreaElement; |
| 43 class IntPoint; | 43 class IntPoint; |
| 44 class Node; | 44 class Node; |
| 45 class VisibleSelection; | 45 class VisibleSelection; |
| 46 class Widget; | 46 class Widget; |
| 47 | 47 |
| 48 class AXRenderObject : public AXNodeObject { | 48 class AXRenderObject : public AXNodeObject { |
| 49 protected: | 49 protected: |
| 50 AXRenderObject(RenderObject*, AXObjectCacheImpl*); | 50 AXRenderObject(LayoutObject*, AXObjectCacheImpl*); |
| 51 | 51 |
| 52 public: | 52 public: |
| 53 static PassRefPtr<AXRenderObject> create(RenderObject*, AXObjectCacheImpl*); | 53 static PassRefPtr<AXRenderObject> create(LayoutObject*, AXObjectCacheImpl*); |
| 54 virtual ~AXRenderObject(); | 54 virtual ~AXRenderObject(); |
| 55 | 55 |
| 56 // Public, overridden from AXObject. | 56 // Public, overridden from AXObject. |
| 57 virtual RenderObject* renderer() const override final { return m_renderer; } | 57 virtual LayoutObject* renderer() const override final { return m_renderer; } |
| 58 virtual LayoutRect elementRect() const override; | 58 virtual LayoutRect elementRect() const override; |
| 59 | 59 |
| 60 void setRenderer(RenderObject*); | 60 void setRenderer(LayoutObject*); |
| 61 RenderBoxModelObject* renderBoxModelObject() const; | 61 RenderBoxModelObject* renderBoxModelObject() const; |
| 62 Document* topDocument() const; | 62 Document* topDocument() const; |
| 63 bool shouldNotifyActiveDescendant() const; | 63 bool shouldNotifyActiveDescendant() const; |
| 64 virtual ScrollableArea* getScrollableAreaIfScrollable() const override final
; | 64 virtual ScrollableArea* getScrollableAreaIfScrollable() const override final
; |
| 65 virtual AccessibilityRole determineAccessibilityRole() override; | 65 virtual AccessibilityRole determineAccessibilityRole() override; |
| 66 void checkCachedElementRect() const; | 66 void checkCachedElementRect() const; |
| 67 void updateCachedElementRect() const; | 67 void updateCachedElementRect() const; |
| 68 | 68 |
| 69 protected: | 69 protected: |
| 70 RenderObject* m_renderer; | 70 LayoutObject* m_renderer; |
| 71 mutable LayoutRect m_cachedElementRect; | 71 mutable LayoutRect m_cachedElementRect; |
| 72 mutable LayoutRect m_cachedFrameRect; | 72 mutable LayoutRect m_cachedFrameRect; |
| 73 mutable IntPoint m_cachedScrollPosition; | 73 mutable IntPoint m_cachedScrollPosition; |
| 74 mutable bool m_cachedElementRectDirty; | 74 mutable bool m_cachedElementRectDirty; |
| 75 | 75 |
| 76 // | 76 // |
| 77 // Overridden from AXObject. | 77 // Overridden from AXObject. |
| 78 // | 78 // |
| 79 | 79 |
| 80 virtual void init() override; | 80 virtual void init() override; |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 192 virtual VisiblePosition visiblePositionForIndex(int) const override; | 192 virtual VisiblePosition visiblePositionForIndex(int) const override; |
| 193 virtual void lineBreaks(Vector<int>&) const override; | 193 virtual void lineBreaks(Vector<int>&) const override; |
| 194 | 194 |
| 195 private: | 195 private: |
| 196 bool isAllowedChildOfTree() const; | 196 bool isAllowedChildOfTree() const; |
| 197 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); | 197 void ariaListboxSelectedChildren(AccessibilityChildrenVector&); |
| 198 PlainTextRange ariaSelectedTextRange() const; | 198 PlainTextRange ariaSelectedTextRange() const; |
| 199 bool nodeIsTextControl(const Node*) const; | 199 bool nodeIsTextControl(const Node*) const; |
| 200 bool isTabItemSelected() const; | 200 bool isTabItemSelected() const; |
| 201 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co
nst; | 201 AXObject* accessibilityImageMapHitTest(HTMLAreaElement*, const IntPoint&) co
nst; |
| 202 bool renderObjectIsObservable(RenderObject*) const; | 202 bool layoutObjectIsObservable(LayoutObject*) const; |
| 203 RenderObject* renderParentObject() const; | 203 LayoutObject* renderParentObject() const; |
| 204 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; | 204 bool isDescendantOfElementType(const HTMLQualifiedName& tagName) const; |
| 205 bool isSVGImage() const; | 205 bool isSVGImage() const; |
| 206 void detachRemoteSVGRoot(); | 206 void detachRemoteSVGRoot(); |
| 207 AXSVGRoot* remoteSVGRootElement() const; | 207 AXSVGRoot* remoteSVGRootElement() const; |
| 208 AXObject* remoteSVGElementHitTest(const IntPoint&) const; | 208 AXObject* remoteSVGElementHitTest(const IntPoint&) const; |
| 209 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; | 209 void offsetBoundingBoxForRemoteSVGElement(LayoutRect&) const; |
| 210 void addHiddenChildren(); | 210 void addHiddenChildren(); |
| 211 void addTextFieldChildren(); | 211 void addTextFieldChildren(); |
| 212 void addImageMapChildren(); | 212 void addImageMapChildren(); |
| 213 void addCanvasChildren(); | 213 void addCanvasChildren(); |
| 214 void addAttachmentChildren(); | 214 void addAttachmentChildren(); |
| 215 void addPopupChildren(); | 215 void addPopupChildren(); |
| 216 void addRemoteSVGChildren(); | 216 void addRemoteSVGChildren(); |
| 217 void addInlineTextBoxChildren(bool force); | 217 void addInlineTextBoxChildren(bool force); |
| 218 | 218 |
| 219 void ariaSelectedRows(AccessibilityChildrenVector&); | 219 void ariaSelectedRows(AccessibilityChildrenVector&); |
| 220 bool elementAttributeValue(const QualifiedName&) const; | 220 bool elementAttributeValue(const QualifiedName&) const; |
| 221 bool inheritsPresentationalRole() const; | 221 bool inheritsPresentationalRole() const; |
| 222 LayoutRect computeElementRect() const; | 222 LayoutRect computeElementRect() const; |
| 223 VisibleSelection selection() const; | 223 VisibleSelection selection() const; |
| 224 int indexForVisiblePosition(const VisiblePosition&) const; | 224 int indexForVisiblePosition(const VisiblePosition&) const; |
| 225 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi
ldrenVector&) const; | 225 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi
ldrenVector&) const; |
| 226 }; | 226 }; |
| 227 | 227 |
| 228 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject()); | 228 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject()); |
| 229 | 229 |
| 230 } // namespace blink | 230 } // namespace blink |
| 231 | 231 |
| 232 #endif // AXRenderObject_h | 232 #endif // AXRenderObject_h |
| OLD | NEW |