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 10 matching lines...) Expand all Loading... |
21 * | 21 * |
22 * You should have received a copy of the GNU Library General Public License | 22 * You should have received a copy of the GNU Library General Public License |
23 * along with this library; see the file COPYING.LIB. If not, write to | 23 * along with this library; see the file COPYING.LIB. If not, write to |
24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
26 */ | 26 */ |
27 | 27 |
28 #ifndef Frame_h | 28 #ifndef Frame_h |
29 #define Frame_h | 29 #define Frame_h |
30 | 30 |
31 #include "core/html/HTMLFrameOwnerElement.h" | |
32 #include "core/page/FrameTree.h" | 31 #include "core/page/FrameTree.h" |
33 #include "platform/heap/Handle.h" | 32 #include "platform/heap/Handle.h" |
34 #include "wtf/Forward.h" | 33 #include "wtf/Forward.h" |
35 #include "wtf/HashSet.h" | 34 #include "wtf/HashSet.h" |
36 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
37 | 36 |
38 namespace blink { | 37 namespace blink { |
39 class WebLayer; | 38 class WebLayer; |
40 } | 39 } |
41 | 40 |
42 namespace WebCore { | 41 namespace WebCore { |
43 | 42 |
| 43 class ChromeClient; |
44 class DOMWindow; | 44 class DOMWindow; |
45 class ChromeClient; | |
46 class FrameClient; | 45 class FrameClient; |
47 class FrameDestructionObserver; | 46 class FrameDestructionObserver; |
48 class FrameHost; | 47 class FrameHost; |
49 class FrameOwner; | 48 class FrameOwner; |
| 49 class HTMLFrameOwnerElement; |
50 class Page; | 50 class Page; |
51 class RenderPart; | 51 class RenderPart; |
52 class Settings; | 52 class Settings; |
53 | 53 |
54 class Frame : public RefCounted<Frame> { | 54 class Frame : public RefCounted<Frame> { |
55 public: | 55 public: |
56 virtual bool isLocalFrame() const { return false; } | 56 virtual bool isLocalFrame() const { return false; } |
57 virtual bool isRemoteFrame() const { return false; } | 57 virtual bool isRemoteFrame() const { return false; } |
58 | 58 |
59 virtual ~Frame(); | 59 virtual ~Frame(); |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 inline DOMWindow* Frame::domWindow() const | 132 inline DOMWindow* Frame::domWindow() const |
133 { | 133 { |
134 return m_domWindow.get(); | 134 return m_domWindow.get(); |
135 } | 135 } |
136 | 136 |
137 inline FrameOwner* Frame::owner() const | 137 inline FrameOwner* Frame::owner() const |
138 { | 138 { |
139 return m_owner; | 139 return m_owner; |
140 } | 140 } |
141 | 141 |
142 inline HTMLFrameOwnerElement* Frame::deprecatedLocalOwner() const | |
143 { | |
144 return m_owner && m_owner->isLocal() ? toHTMLFrameOwnerElement(m_owner) : 0; | |
145 } | |
146 | |
147 inline FrameTree& Frame::tree() const | 142 inline FrameTree& Frame::tree() const |
148 { | 143 { |
149 return m_treeNode; | 144 return m_treeNode; |
150 } | 145 } |
151 | 146 |
152 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 147 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
153 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 148 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
154 | 149 |
155 } // namespace WebCore | 150 } // namespace WebCore |
156 | 151 |
157 #endif // Frame_h | 152 #endif // Frame_h |
OLD | NEW |