| 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 19 matching lines...) Expand all Loading... |
| 30 class DOMWindow; | 30 class DOMWindow; |
| 31 class ExceptionState; | 31 class ExceptionState; |
| 32 class Frame; | 32 class Frame; |
| 33 class RenderPart; | 33 class RenderPart; |
| 34 class Widget; | 34 class Widget; |
| 35 | 35 |
| 36 class HTMLFrameOwnerElement : public HTMLElement, public FrameOwner { | 36 class HTMLFrameOwnerElement : public HTMLElement, public FrameOwner { |
| 37 public: | 37 public: |
| 38 virtual ~HTMLFrameOwnerElement(); | 38 virtual ~HTMLFrameOwnerElement(); |
| 39 | 39 |
| 40 // FrameOwner overrides: | |
| 41 virtual bool isLocal() const { return true; } | |
| 42 virtual SandboxFlags sandboxFlags() const OVERRIDE { return m_sandboxFlags;
} | |
| 43 virtual void dispatchLoad() OVERRIDE; | |
| 44 | |
| 45 Frame* contentFrame() const { return m_contentFrame; } | 40 Frame* contentFrame() const { return m_contentFrame; } |
| 46 DOMWindow* contentWindow() const; | 41 DOMWindow* contentWindow() const; |
| 47 Document* contentDocument() const; | 42 Document* contentDocument() const; |
| 48 | 43 |
| 49 void setContentFrame(Frame&); | 44 void setContentFrame(Frame&); |
| 50 void clearContentFrame(); | 45 void clearContentFrame(); |
| 51 | 46 |
| 52 void disconnectContentFrame(); | 47 void disconnectContentFrame(); |
| 53 | 48 |
| 54 // Most subclasses use RenderPart (either RenderEmbeddedObject or RenderIFra
me) | 49 // Most subclasses use RenderPart (either RenderEmbeddedObject or RenderIFra
me) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 81 protected: | 76 protected: |
| 82 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); | 77 HTMLFrameOwnerElement(const QualifiedName& tagName, Document&); |
| 83 void setSandboxFlags(SandboxFlags); | 78 void setSandboxFlags(SandboxFlags); |
| 84 | 79 |
| 85 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
lockBackForwardList); | 80 bool loadOrRedirectSubframe(const KURL&, const AtomicString& frameName, bool
lockBackForwardList); |
| 86 | 81 |
| 87 private: | 82 private: |
| 88 virtual bool isKeyboardFocusable() const OVERRIDE; | 83 virtual bool isKeyboardFocusable() const OVERRIDE; |
| 89 virtual bool isFrameOwnerElement() const OVERRIDE FINAL { return true; } | 84 virtual bool isFrameOwnerElement() const OVERRIDE FINAL { return true; } |
| 90 | 85 |
| 86 // FrameOwner overrides: |
| 87 virtual bool isLocal() const { return true; } |
| 88 virtual SandboxFlags sandboxFlags() const OVERRIDE { return m_sandboxFlags;
} |
| 89 virtual void dispatchLoad() OVERRIDE; |
| 90 |
| 91 Frame* m_contentFrame; | 91 Frame* m_contentFrame; |
| 92 RefPtr<Widget> m_widget; | 92 RefPtr<Widget> m_widget; |
| 93 SandboxFlags m_sandboxFlags; | 93 SandboxFlags m_sandboxFlags; |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); | 96 DEFINE_ELEMENT_TYPE_CASTS(HTMLFrameOwnerElement, isFrameOwnerElement()); |
| 97 | 97 |
| 98 class SubframeLoadingDisabler { | 98 class SubframeLoadingDisabler { |
| 99 public: | 99 public: |
| 100 explicit SubframeLoadingDisabler(Node& root) | 100 explicit SubframeLoadingDisabler(Node& root) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 127 } | 127 } |
| 128 | 128 |
| 129 Node& m_root; | 129 Node& m_root; |
| 130 }; | 130 }; |
| 131 | 131 |
| 132 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); | 132 DEFINE_TYPE_CASTS(HTMLFrameOwnerElement, FrameOwner, owner, owner->isLocal(), ow
ner.isLocal()); |
| 133 | 133 |
| 134 } // namespace WebCore | 134 } // namespace WebCore |
| 135 | 135 |
| 136 #endif // HTMLFrameOwnerElement_h | 136 #endif // HTMLFrameOwnerElement_h |
| OLD | NEW |