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 12 matching lines...) Expand all Loading... |
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/CoreExport.h" | 31 #include "core/CoreExport.h" |
32 #include "core/frame/FrameTypes.h" | 32 #include "core/frame/FrameTypes.h" |
| 33 #include "core/loader/FrameLoaderTypes.h" |
33 #include "core/page/FrameTree.h" | 34 #include "core/page/FrameTree.h" |
34 #include "platform/heap/Handle.h" | 35 #include "platform/heap/Handle.h" |
35 #include "wtf/Forward.h" | 36 #include "wtf/Forward.h" |
36 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
37 | 38 |
38 namespace blink { | 39 namespace blink { |
39 | 40 |
40 class ChromeClient; | 41 class ChromeClient; |
41 class DOMWindow; | 42 class DOMWindow; |
42 class DOMWrapperWorld; | 43 class DOMWrapperWorld; |
(...skipping 23 matching lines...) Expand all Loading... |
66 virtual bool isLocalFrame() const { return false; } | 67 virtual bool isLocalFrame() const { return false; } |
67 virtual bool isRemoteFrame() const { return false; } | 68 virtual bool isRemoteFrame() const { return false; } |
68 | 69 |
69 virtual DOMWindow* domWindow() const = 0; | 70 virtual DOMWindow* domWindow() const = 0; |
70 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; | 71 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; |
71 | 72 |
72 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo
rwardList, UserGestureStatus) = 0; | 73 virtual void navigate(Document& originDocument, const KURL&, bool lockBackFo
rwardList, UserGestureStatus) = 0; |
73 // This version of Frame::navigate assumes the resulting navigation is not | 74 // This version of Frame::navigate assumes the resulting navigation is not |
74 // to be started on a timer. Use the method above in such cases. | 75 // to be started on a timer. Use the method above in such cases. |
75 virtual void navigate(const FrameLoadRequest&) = 0; | 76 virtual void navigate(const FrameLoadRequest&) = 0; |
76 virtual void reload(ReloadPolicy, ClientRedirectPolicy) = 0; | 77 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; |
77 | 78 |
78 virtual void detach(); | 79 virtual void detach(); |
79 void detachChildren(); | 80 void detachChildren(); |
80 virtual void disconnectOwnerElement(); | 81 virtual void disconnectOwnerElement(); |
81 | 82 |
82 FrameClient* client() const; | 83 FrameClient* client() const; |
83 | 84 |
84 // NOTE: Page is moving out of Blink up into the browser process as | 85 // NOTE: Page is moving out of Blink up into the browser process as |
85 // part of the site-isolation (out of process iframes) work. | 86 // part of the site-isolation (out of process iframes) work. |
86 // FrameHost should be used instead where possible. | 87 // FrameHost should be used instead where possible. |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 { | 152 { |
152 return m_treeNode; | 153 return m_treeNode; |
153 } | 154 } |
154 | 155 |
155 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 156 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
156 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 157 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
157 | 158 |
158 } // namespace blink | 159 } // namespace blink |
159 | 160 |
160 #endif // Frame_h | 161 #endif // Frame_h |
OLD | NEW |