| 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 13 matching lines...) Expand all Loading... |
| 24 #include "core/html/HTMLElement.h" | 24 #include "core/html/HTMLElement.h" |
| 25 #include "wtf/HashCountedSet.h" | 25 #include "wtf/HashCountedSet.h" |
| 26 | 26 |
| 27 namespace WebCore { | 27 namespace WebCore { |
| 28 | 28 |
| 29 class DOMWindow; | 29 class DOMWindow; |
| 30 class ExceptionState; | 30 class ExceptionState; |
| 31 class Frame; | 31 class Frame; |
| 32 class RenderPart; | 32 class RenderPart; |
| 33 class SVGDocument; | 33 class SVGDocument; |
| 34 class Widget; |
| 34 | 35 |
| 35 class HTMLFrameOwnerElement : public HTMLElement { | 36 class HTMLFrameOwnerElement : public HTMLElement { |
| 36 public: | 37 public: |
| 37 virtual ~HTMLFrameOwnerElement(); | 38 virtual ~HTMLFrameOwnerElement(); |
| 38 | 39 |
| 39 Frame* contentFrame() const { return m_contentFrame; } | 40 Frame* contentFrame() const { return m_contentFrame; } |
| 40 DOMWindow* contentWindow() const; | 41 DOMWindow* contentWindow() const; |
| 41 Document* contentDocument() const; | 42 Document* contentDocument() const; |
| 42 | 43 |
| 43 void setContentFrame(Frame&); | 44 void setContentFrame(Frame&); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 55 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } | 56 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } |
| 56 | 57 |
| 57 SandboxFlags sandboxFlags() const { return m_sandboxFlags; } | 58 SandboxFlags sandboxFlags() const { return m_sandboxFlags; } |
| 58 | 59 |
| 59 virtual bool loadedNonEmptyDocument() const { return false; } | 60 virtual bool loadedNonEmptyDocument() const { return false; } |
| 60 virtual void didLoadNonEmptyDocument() { } | 61 virtual void didLoadNonEmptyDocument() { } |
| 61 | 62 |
| 62 virtual void renderFallbackContent() { } | 63 virtual void renderFallbackContent() { } |
| 63 | 64 |
| 64 virtual bool isObjectElement() const { return false; } | 65 virtual bool isObjectElement() const { return false; } |
| 66 void setWidget(PassRefPtr<Widget>); |
| 67 Widget* widget() const; |
| 65 | 68 |
| 66 protected: | 69 protected: |
| 67 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); | 70 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); |
| 68 void setSandboxFlags(SandboxFlags); | 71 void setSandboxFlags(SandboxFlags); |
| 69 | 72 |
| 70 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
lockBackForwardList); | 73 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
lockBackForwardList); |
| 71 | 74 |
| 72 private: | 75 private: |
| 73 virtual bool isKeyboardFocusable() const OVERRIDE; | 76 virtual bool isKeyboardFocusable() const OVERRIDE; |
| 74 virtual bool isFrameOwnerElement() const OVERRIDE { return true; } | 77 virtual bool isFrameOwnerElement() const OVERRIDE { return true; } |
| 75 | 78 |
| 76 Frame* m_contentFrame; | 79 Frame* m_contentFrame; |
| 80 RefPtr<Widget> m_widget; |
| 77 SandboxFlags m_sandboxFlags; | 81 SandboxFlags m_sandboxFlags; |
| 78 }; | 82 }; |
| 79 | 83 |
| 80 DEFINE_NODE_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); | 84 DEFINE_NODE_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); |
| 81 | 85 |
| 82 class SubframeLoadingDisabler { | 86 class SubframeLoadingDisabler { |
| 83 public: | 87 public: |
| 84 explicit SubframeLoadingDisabler(Node& root) | 88 explicit SubframeLoadingDisabler(Node& root) |
| 85 : m_root(root) | 89 : m_root(root) |
| 86 { | 90 { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 107 DEFINE_STATIC_LOCAL(HashCountedSet<Node*>, nodes, ()); | 111 DEFINE_STATIC_LOCAL(HashCountedSet<Node*>, nodes, ()); |
| 108 return nodes; | 112 return nodes; |
| 109 } | 113 } |
| 110 | 114 |
| 111 Node& m_root; | 115 Node& m_root; |
| 112 }; | 116 }; |
| 113 | 117 |
| 114 } // namespace WebCore | 118 } // namespace WebCore |
| 115 | 119 |
| 116 #endif // HTMLFrameOwnerElement_h | 120 #endif // HTMLFrameOwnerElement_h |
| OLD | NEW |