| 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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
| 9 * reserved. | 9 * reserved. |
| 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 #include "core/loader/FrameLoaderTypes.h" | 34 #include "core/loader/FrameLoaderTypes.h" |
| 35 #include "core/page/FrameTree.h" | 35 #include "core/page/FrameTree.h" |
| 36 #include "platform/feature_policy/FeaturePolicy.h" | 36 #include "platform/feature_policy/FeaturePolicy.h" |
| 37 #include "platform/heap/Handle.h" | 37 #include "platform/heap/Handle.h" |
| 38 #include "wtf/Forward.h" | 38 #include "wtf/Forward.h" |
| 39 | 39 |
| 40 namespace blink { | 40 namespace blink { |
| 41 | 41 |
| 42 class ChromeClient; | 42 class ChromeClient; |
| 43 class DOMWindow; | 43 class DOMWindow; |
| 44 class DOMWrapperWorld; | |
| 45 class Document; | 44 class Document; |
| 46 class FrameClient; | 45 class FrameClient; |
| 47 class FrameHost; | 46 class FrameHost; |
| 48 class FrameOwner; | 47 class FrameOwner; |
| 49 class HTMLFrameOwnerElement; | 48 class HTMLFrameOwnerElement; |
| 50 class LayoutPart; | 49 class LayoutPart; |
| 51 class LayoutPartItem; | 50 class LayoutPartItem; |
| 52 class KURL; | 51 class KURL; |
| 53 class Page; | 52 class Page; |
| 54 class SecurityContext; | 53 class SecurityContext; |
| 55 class Settings; | 54 class Settings; |
| 56 class WindowProxy; | |
| 57 class WindowProxyManagerBase; | 55 class WindowProxyManagerBase; |
| 58 struct FrameLoadRequest; | 56 struct FrameLoadRequest; |
| 59 | 57 |
| 60 enum class FrameDetachType { Remove, Swap }; | 58 enum class FrameDetachType { Remove, Swap }; |
| 61 | 59 |
| 62 // Status of user gesture. | 60 // Status of user gesture. |
| 63 enum class UserGestureStatus { Active, None }; | 61 enum class UserGestureStatus { Active, None }; |
| 64 | 62 |
| 65 // Frame is the base class of LocalFrame and RemoteFrame and should only contain | 63 // Frame is the base class of LocalFrame and RemoteFrame and should only contain |
| 66 // functionality shared between both. In particular, any method related to | 64 // functionality shared between both. In particular, any method related to |
| 67 // input, layout, or painting probably belongs on LocalFrame. | 65 // input, layout, or painting probably belongs on LocalFrame. |
| 68 class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> { | 66 class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> { |
| 69 public: | 67 public: |
| 70 virtual ~Frame(); | 68 virtual ~Frame(); |
| 71 | 69 |
| 72 DECLARE_VIRTUAL_TRACE(); | 70 DECLARE_VIRTUAL_TRACE(); |
| 73 | 71 |
| 74 virtual bool isLocalFrame() const = 0; | 72 virtual bool isLocalFrame() const = 0; |
| 75 virtual bool isRemoteFrame() const = 0; | 73 virtual bool isRemoteFrame() const = 0; |
| 76 | 74 |
| 77 virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; | |
| 78 | |
| 79 virtual void navigate(Document& originDocument, | 75 virtual void navigate(Document& originDocument, |
| 80 const KURL&, | 76 const KURL&, |
| 81 bool replaceCurrentItem, | 77 bool replaceCurrentItem, |
| 82 UserGestureStatus) = 0; | 78 UserGestureStatus) = 0; |
| 83 // This version of Frame::navigate assumes the resulting navigation is not | 79 // This version of Frame::navigate assumes the resulting navigation is not |
| 84 // to be started on a timer. Use the method above in such cases. | 80 // to be started on a timer. Use the method above in such cases. |
| 85 virtual void navigate(const FrameLoadRequest&) = 0; | 81 virtual void navigate(const FrameLoadRequest&) = 0; |
| 86 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; | 82 virtual void reload(FrameLoadType, ClientRedirectPolicy) = 0; |
| 87 | 83 |
| 88 virtual void detach(FrameDetachType); | 84 virtual void detach(FrameDetachType); |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 return m_treeNode; | 175 return m_treeNode; |
| 180 } | 176 } |
| 181 | 177 |
| 182 // Allow equality comparisons of Frames by reference or pointer, | 178 // Allow equality comparisons of Frames by reference or pointer, |
| 183 // interchangeably. | 179 // interchangeably. |
| 184 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) | 180 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES(Frame) |
| 185 | 181 |
| 186 } // namespace blink | 182 } // namespace blink |
| 187 | 183 |
| 188 #endif // Frame_h | 184 #endif // Frame_h |
| OLD | NEW |