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 17 matching lines...) Expand all Loading... |
28 | 28 |
29 #ifndef AXRenderObject_h | 29 #ifndef AXRenderObject_h |
30 #define AXRenderObject_h | 30 #define AXRenderObject_h |
31 | 31 |
32 #include "modules/accessibility/AXNodeObject.h" | 32 #include "modules/accessibility/AXNodeObject.h" |
33 #include "platform/geometry/LayoutRect.h" | 33 #include "platform/geometry/LayoutRect.h" |
34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
| 38 class AXObjectCache; |
38 class AXSVGRoot; | 39 class AXSVGRoot; |
39 class Element; | 40 class Element; |
40 class FrameView; | 41 class FrameView; |
41 class HTMLAreaElement; | 42 class HTMLAreaElement; |
42 class IntPoint; | 43 class IntPoint; |
43 class Node; | 44 class Node; |
44 class VisibleSelection; | 45 class VisibleSelection; |
45 class Widget; | 46 class Widget; |
46 | 47 |
47 class AXRenderObject : public AXNodeObject { | 48 class AXRenderObject : public AXNodeObject { |
48 protected: | 49 protected: |
49 explicit AXRenderObject(RenderObject*); | 50 AXRenderObject(RenderObject*, AXObjectCache*); |
| 51 |
50 public: | 52 public: |
51 static PassRefPtr<AXRenderObject> create(RenderObject*); | 53 static PassRefPtr<AXRenderObject> create(RenderObject*, AXObjectCache*); |
52 virtual ~AXRenderObject(); | 54 virtual ~AXRenderObject(); |
53 | 55 |
54 // Public, overridden from AXObject. | 56 // Public, overridden from AXObject. |
55 virtual RenderObject* renderer() const override final { return m_renderer; } | 57 virtual RenderObject* renderer() const override final { return m_renderer; } |
56 virtual LayoutRect elementRect() const override; | 58 virtual LayoutRect elementRect() const override; |
57 | 59 |
58 void setRenderer(RenderObject*); | 60 void setRenderer(RenderObject*); |
59 RenderBoxModelObject* renderBoxModelObject() const; | 61 RenderBoxModelObject* renderBoxModelObject() const; |
60 Document* topDocument() const; | 62 Document* topDocument() const; |
61 bool shouldNotifyActiveDescendant() const; | 63 bool shouldNotifyActiveDescendant() const; |
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 VisibleSelection selection() const; | 223 VisibleSelection selection() const; |
222 int indexForVisiblePosition(const VisiblePosition&) const; | 224 int indexForVisiblePosition(const VisiblePosition&) const; |
223 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi
ldrenVector&) const; | 225 void accessibilityChildrenFromAttribute(QualifiedName attr, AccessibilityChi
ldrenVector&) const; |
224 }; | 226 }; |
225 | 227 |
226 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject()); | 228 DEFINE_AX_OBJECT_TYPE_CASTS(AXRenderObject, isAXRenderObject()); |
227 | 229 |
228 } // namespace blink | 230 } // namespace blink |
229 | 231 |
230 #endif // AXRenderObject_h | 232 #endif // AXRenderObject_h |
OLD | NEW |