| 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 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include "core/frame/FrameTypes.h" | 31 #include "core/frame/FrameTypes.h" |
| 32 #include "core/page/FrameTree.h" | 32 #include "core/page/FrameTree.h" |
| 33 #include "platform/heap/Handle.h" | 33 #include "platform/heap/Handle.h" |
| 34 #include "wtf/Forward.h" | 34 #include "wtf/Forward.h" |
| 35 #include "wtf/RefCounted.h" | 35 #include "wtf/RefCounted.h" |
| 36 | 36 |
| 37 namespace blink { | 37 namespace blink { |
| 38 | 38 |
| 39 class ChromeClient; | 39 class ChromeClient; |
| 40 class DOMWindow; |
| 40 class DOMWrapperWorld; | 41 class DOMWrapperWorld; |
| 41 class Document; | 42 class Document; |
| 42 class FrameClient; | 43 class FrameClient; |
| 43 class FrameHost; | 44 class FrameHost; |
| 44 class FrameOwner; | 45 class FrameOwner; |
| 45 class HTMLFrameOwnerElement; | 46 class HTMLFrameOwnerElement; |
| 46 class DOMWindow; | 47 class LayoutPart; |
| 47 class KURL; | 48 class KURL; |
| 48 class Page; | 49 class Page; |
| 49 class RenderPart; | |
| 50 class SecurityContext; | 50 class SecurityContext; |
| 51 class Settings; | 51 class Settings; |
| 52 class WindowProxy; | 52 class WindowProxy; |
| 53 | 53 |
| 54 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> { | 54 class Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame> { |
| 55 public: | 55 public: |
| 56 virtual ~Frame(); | 56 virtual ~Frame(); |
| 57 | 57 |
| 58 virtual void trace(Visitor*); | 58 virtual void trace(Visitor*); |
| 59 | 59 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 89 ChromeClient& chromeClient() const; | 89 ChromeClient& chromeClient() const; |
| 90 | 90 |
| 91 virtual SecurityContext* securityContext() const = 0; | 91 virtual SecurityContext* securityContext() const = 0; |
| 92 | 92 |
| 93 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame); | 93 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame); |
| 94 Frame* findUnsafeParentScrollPropagationBoundary(); | 94 Frame* findUnsafeParentScrollPropagationBoundary(); |
| 95 | 95 |
| 96 bool canNavigate(const Frame&); | 96 bool canNavigate(const Frame&); |
| 97 virtual void printNavigationErrorMessage(const Frame&, const char* reason) =
0; | 97 virtual void printNavigationErrorMessage(const Frame&, const char* reason) =
0; |
| 98 | 98 |
| 99 RenderPart* ownerRenderer() const; // Renderer for the element that contains
this frame. | 99 LayoutPart* ownerRenderer() const; // Renderer for the element that contains
this frame. |
| 100 | 100 |
| 101 Settings* settings() const; // can be null | 101 Settings* settings() const; // can be null |
| 102 | 102 |
| 103 // isLoading() is true when the embedder should think a load is in progress. | 103 // isLoading() is true when the embedder should think a load is in progress. |
| 104 // In the case of LocalFrames, it means that the frame has sent a didStartLo
ading() | 104 // In the case of LocalFrames, it means that the frame has sent a didStartLo
ading() |
| 105 // callback, but not the matching didStopLoading(). Inside blink, you probab
ly | 105 // callback, but not the matching didStopLoading(). Inside blink, you probab
ly |
| 106 // want Document::loadEventFinished() instead. | 106 // want Document::loadEventFinished() instead. |
| 107 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } | 107 void setIsLoading(bool isLoading) { m_isLoading = isLoading; } |
| 108 bool isLoading() const { return m_isLoading; } | 108 bool isLoading() const { return m_isLoading; } |
| 109 virtual bool isLoadingAsChild() const { return isLoading(); } | 109 virtual bool isLoadingAsChild() const { return isLoading(); } |
| (...skipping 25 matching lines...) Expand all Loading... |
| 135 { | 135 { |
| 136 return m_treeNode; | 136 return m_treeNode; |
| 137 } | 137 } |
| 138 | 138 |
| 139 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. | 139 // Allow equality comparisons of Frames by reference or pointer, interchangeably
. |
| 140 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 140 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
| 141 | 141 |
| 142 } // namespace blink | 142 } // namespace blink |
| 143 | 143 |
| 144 #endif // Frame_h | 144 #endif // Frame_h |
| OLD | NEW |