| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> | 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org> |
| 3 * 1999-2001 Lars Knoll <knoll@kde.org> | 3 * 1999-2001 Lars Knoll <knoll@kde.org> |
| 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> | 4 * 1999-2001 Antti Koivisto <koivisto@kde.org> |
| 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> | 5 * 2000-2001 Simon Hausmann <hausmann@kde.org> |
| 6 * 2000-2001 Dirk Mueller <mueller@kde.org> | 6 * 2000-2001 Dirk Mueller <mueller@kde.org> |
| 7 * 2000 Stefan Schimanski <1Stein@gmx.de> | 7 * 2000 Stefan Schimanski <1Stein@gmx.de> |
| 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
reserved. |
| 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 9 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 10 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> { | 53 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> { |
| 54 public: | 54 public: |
| 55 virtual bool isLocalFrame() const { return false; } | 55 virtual bool isLocalFrame() const { return false; } |
| 56 virtual bool isRemoteFrame() const { return false; } | 56 virtual bool isRemoteFrame() const { return false; } |
| 57 | 57 |
| 58 virtual ~Frame(); | 58 virtual ~Frame(); |
| 59 virtual void trace(Visitor*); | 59 virtual void trace(Visitor*); |
| 60 | 60 |
| 61 virtual void navigate(Document& originDocument, const KURL&, const Referrer&
, bool lockBackForwardList) = 0; | 61 virtual void navigate(Document& originDocument, const KURL&, const Referrer&
, bool lockBackForwardList) = 0; |
| 62 virtual void detach(); | 62 virtual void detach() = 0; |
| 63 void detachChildren(); | 63 void detachChildren(); |
| 64 | 64 |
| 65 FrameClient* client() const; | 65 FrameClient* client() const; |
| 66 void clearClient(); |
| 66 | 67 |
| 67 // NOTE: Page is moving out of Blink up into the browser process as | 68 // NOTE: Page is moving out of Blink up into the browser process as |
| 68 // part of the site-isolation (out of process iframes) work. | 69 // part of the site-isolation (out of process iframes) work. |
| 69 // FrameHost should be used instead where possible. | 70 // FrameHost should be used instead where possible. |
| 70 Page* page() const; | 71 Page* page() const; |
| 71 FrameHost* host() const; // Null when the frame is detached. | 72 FrameHost* host() const; // Null when the frame is detached. |
| 72 | 73 |
| 73 bool isMainFrame() const; | 74 bool isMainFrame() const; |
| 74 bool isLocalRoot() const; | 75 bool isLocalRoot() const; |
| 75 | 76 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 private: | 114 private: |
| 114 FrameClient* m_client; | 115 FrameClient* m_client; |
| 115 WebLayer* m_remotePlatformLayer; | 116 WebLayer* m_remotePlatformLayer; |
| 116 }; | 117 }; |
| 117 | 118 |
| 118 inline FrameClient* Frame::client() const | 119 inline FrameClient* Frame::client() const |
| 119 { | 120 { |
| 120 return m_client; | 121 return m_client; |
| 121 } | 122 } |
| 122 | 123 |
| 124 inline void Frame::clearClient() |
| 125 { |
| 126 m_client = 0; |
| 127 } |
| 128 |
| 123 inline LocalDOMWindow* Frame::domWindow() const | 129 inline LocalDOMWindow* Frame::domWindow() const |
| 124 { | 130 { |
| 125 return m_domWindow.get(); | 131 return m_domWindow.get(); |
| 126 } | 132 } |
| 127 | 133 |
| 128 inline FrameOwner* Frame::owner() const | 134 inline FrameOwner* Frame::owner() const |
| 129 { | 135 { |
| 130 return m_owner; | 136 return m_owner; |
| 131 } | 137 } |
| 132 | 138 |
| 133 inline FrameTree& Frame::tree() const | 139 inline FrameTree& Frame::tree() const |
| 134 { | 140 { |
| 135 return m_treeNode; | 141 return m_treeNode; |
| 136 } | 142 } |
| 137 | 143 |
| 138 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 144 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
| 139 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 145 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
| 140 | 146 |
| 141 } // namespace blink | 147 } // namespace blink |
| 142 | 148 |
| 143 #endif // Frame_h | 149 #endif // Frame_h |
| OLD | NEW |