OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 30 matching lines...) Expand all Loading... |
41 public: | 41 public: |
42 virtual ~HTMLFrameOwnerElement(); | 42 virtual ~HTMLFrameOwnerElement(); |
43 | 43 |
44 Frame* contentFrame() const { return m_contentFrame; } | 44 Frame* contentFrame() const { return m_contentFrame; } |
45 LocalDOMWindow* contentWindow() const; | 45 LocalDOMWindow* contentWindow() const; |
46 Document* contentDocument() const; | 46 Document* contentDocument() const; |
47 | 47 |
48 void setContentFrame(Frame&); | 48 void setContentFrame(Frame&); |
49 void clearContentFrame(); | 49 void clearContentFrame(); |
50 | 50 |
51 void disconnectContentFrame(); | 51 virtual void disconnectContentFrame(); |
52 | 52 |
53 // Most subclasses use RenderPart (either RenderEmbeddedObject or RenderIFra
me) | 53 // Most subclasses use RenderPart (either RenderEmbeddedObject or RenderIFra
me) |
54 // except for HTMLObjectElement and HTMLEmbedElement which may return any | 54 // except for HTMLObjectElement and HTMLEmbedElement which may return any |
55 // RenderObject when using fallback content. | 55 // RenderObject when using fallback content. |
56 RenderPart* renderPart() const; | 56 RenderPart* renderPart() const; |
57 | 57 |
58 Document* getSVGDocument(ExceptionState&) const; | 58 Document* getSVGDocument(ExceptionState&) const; |
59 | 59 |
60 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } | 60 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } |
61 | 61 |
62 virtual bool loadedNonEmptyDocument() const { return false; } | 62 virtual bool loadedNonEmptyDocument() const { return false; } |
63 virtual void didLoadNonEmptyDocument() { } | 63 virtual void didLoadNonEmptyDocument() { } |
64 | 64 |
65 virtual void renderFallbackContent() { } | 65 virtual void renderFallbackContent() { } |
66 | 66 |
67 virtual bool isObjectElement() const { return false; } | 67 virtual bool isObjectElement() const { return false; } |
68 void setWidget(PassRefPtr<Widget>); | 68 void setWidget(PassRefPtrWillBeRawPtr<Widget>); |
69 Widget* ownedWidget() const; | 69 Widget* ownedWidget() const; |
70 | 70 |
71 class UpdateSuspendScope { | 71 class UpdateSuspendScope { |
72 public: | 72 public: |
73 UpdateSuspendScope(); | 73 UpdateSuspendScope(); |
74 ~UpdateSuspendScope(); | 74 ~UpdateSuspendScope(); |
75 | 75 |
76 private: | 76 private: |
77 void performDeferredWidgetTreeOperations(); | 77 void performDeferredWidgetTreeOperations(); |
78 }; | 78 }; |
79 | 79 |
80 virtual void trace(Visitor*) OVERRIDE; | 80 virtual void trace(Visitor*) OVERRIDE; |
81 | 81 |
| 82 #if ENABLE(OILPAN) |
| 83 static void disposeWidget(Widget*); |
| 84 #endif |
| 85 |
82 protected: | 86 protected: |
83 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); | 87 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); |
84 void setSandboxFlags(SandboxFlags); | 88 void setSandboxFlags(SandboxFlags); |
85 | 89 |
86 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
lockBackForwardList); | 90 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
lockBackForwardList); |
87 | 91 |
88 private: | 92 private: |
89 virtual bool isKeyboardFocusable() const OVERRIDE; | 93 virtual bool isKeyboardFocusable() const OVERRIDE; |
90 virtual bool isFrameOwnerElement() const OVERRIDE FINAL { return true; } | 94 virtual bool isFrameOwnerElement() const OVERRIDE FINAL { return true; } |
91 | 95 |
92 // FrameOwner overrides: | 96 // FrameOwner overrides: |
93 virtual bool isLocal() const { return true; } | 97 virtual bool isLocal() const { return true; } |
94 virtual SandboxFlags sandboxFlags() const OVERRIDE { return m_sandboxFlags;
} | 98 virtual SandboxFlags sandboxFlags() const OVERRIDE { return m_sandboxFlags;
} |
95 virtual void dispatchLoad() OVERRIDE; | 99 virtual void dispatchLoad() OVERRIDE; |
96 | 100 |
97 RawPtrWillBeMember<Frame> m_contentFrame; | 101 RawPtrWillBeMember<Frame> m_contentFrame; |
98 RefPtr<Widget> m_widget; | 102 RefPtrWillBeMember<Widget> m_widget; |
99 SandboxFlags m_sandboxFlags; | 103 SandboxFlags m_sandboxFlags; |
100 }; | 104 }; |
101 | 105 |
102 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); | 106 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); |
103 | 107 |
104 class SubframeLoadingDisabler { | 108 class SubframeLoadingDisabler { |
105 STACK_ALLOCATED(); | 109 STACK_ALLOCATED(); |
106 public: | 110 public: |
107 explicit SubframeLoadingDisabler(Node& root) | 111 explicit SubframeLoadingDisabler(Node& root) |
108 : m_root(root) | 112 : m_root(root) |
(...skipping 21 matching lines...) Expand all Loading... |
130 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node> >& disabledSubtreeR
oots(); | 134 static WillBeHeapHashCountedSet<RawPtrWillBeMember<Node> >& disabledSubtreeR
oots(); |
131 | 135 |
132 RawPtrWillBeMember<Node> m_root; | 136 RawPtrWillBeMember<Node> m_root; |
133 }; | 137 }; |
134 | 138 |
135 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); | 139 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); |
136 | 140 |
137 } // namespace blink | 141 } // namespace blink |
138 | 142 |
139 #endif // HTMLFrameOwnerElement_h | 143 #endif // HTMLFrameOwnerElement_h |
OLD | NEW |