| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class RenderPart; | 49 class RenderPart; |
| 50 class Settings; | 50 class Settings; |
| 51 | 51 |
| 52 class Frame : public RefCounted<Frame> { | 52 class Frame : public RefCounted<Frame> { |
| 53 public: | 53 public: |
| 54 virtual bool isLocalFrame() const { return false; } | 54 virtual bool isLocalFrame() const { return false; } |
| 55 virtual bool isRemoteFrame() const { return false; } | 55 virtual bool isRemoteFrame() const { return false; } |
| 56 | 56 |
| 57 virtual ~Frame(); | 57 virtual ~Frame(); |
| 58 | 58 |
| 59 virtual void detach() = 0; | 59 virtual void detach(); |
| 60 void detachChildren(); | 60 void detachChildren(); |
| 61 | 61 |
| 62 FrameClient* client() const; | 62 FrameClient* client() const; |
| 63 void clearClient(); | |
| 64 | 63 |
| 65 // NOTE: Page is moving out of Blink up into the browser process as | 64 // NOTE: Page is moving out of Blink up into the browser process as |
| 66 // part of the site-isolation (out of process iframes) work. | 65 // part of the site-isolation (out of process iframes) work. |
| 67 // FrameHost should be used instead where possible. | 66 // FrameHost should be used instead where possible. |
| 68 Page* page() const; | 67 Page* page() const; |
| 69 FrameHost* host() const; // Null when the frame is detached. | 68 FrameHost* host() const; // Null when the frame is detached. |
| 70 | 69 |
| 71 bool isMainFrame() const; | 70 bool isMainFrame() const; |
| 72 bool isLocalRoot() const; | 71 bool isLocalRoot() const; |
| 73 | 72 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 private: | 110 private: |
| 112 FrameClient* m_client; | 111 FrameClient* m_client; |
| 113 blink::WebLayer* m_remotePlatformLayer; | 112 blink::WebLayer* m_remotePlatformLayer; |
| 114 }; | 113 }; |
| 115 | 114 |
| 116 inline FrameClient* Frame::client() const | 115 inline FrameClient* Frame::client() const |
| 117 { | 116 { |
| 118 return m_client; | 117 return m_client; |
| 119 } | 118 } |
| 120 | 119 |
| 121 inline void Frame::clearClient() | |
| 122 { | |
| 123 m_client = 0; | |
| 124 } | |
| 125 | |
| 126 inline LocalDOMWindow* Frame::domWindow() const | 120 inline LocalDOMWindow* Frame::domWindow() const |
| 127 { | 121 { |
| 128 return m_domWindow.get(); | 122 return m_domWindow.get(); |
| 129 } | 123 } |
| 130 | 124 |
| 131 inline FrameOwner* Frame::owner() const | 125 inline FrameOwner* Frame::owner() const |
| 132 { | 126 { |
| 133 return m_owner; | 127 return m_owner; |
| 134 } | 128 } |
| 135 | 129 |
| 136 inline FrameTree& Frame::tree() const | 130 inline FrameTree& Frame::tree() const |
| 137 { | 131 { |
| 138 return m_treeNode; | 132 return m_treeNode; |
| 139 } | 133 } |
| 140 | 134 |
| 141 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 135 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
| 142 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 136 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
| 143 | 137 |
| 144 } // namespace blink | 138 } // namespace blink |
| 145 | 139 |
| 146 #endif // Frame_h | 140 #endif // Frame_h |
| OLD | NEW |