| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   56 struct FrameLoadRequest; |   56 struct FrameLoadRequest; | 
|   57  |   57  | 
|   58 enum class FrameDetachType { Remove, Swap }; |   58 enum class FrameDetachType { Remove, Swap }; | 
|   59  |   59  | 
|   60 // Status of user gesture. |   60 // Status of user gesture. | 
|   61 enum class UserGestureStatus { Active, None }; |   61 enum class UserGestureStatus { Active, None }; | 
|   62  |   62  | 
|   63 // 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 | 
|   64 // functionality shared between both. In particular, any method related to |   64 // functionality shared between both. In particular, any method related to | 
|   65 // input, layout, or painting probably belongs on LocalFrame. |   65 // input, layout, or painting probably belongs on LocalFrame. | 
|   66 class CORE_EXPORT Frame : public RefCountedWillBeGarbageCollectedFinalized<Frame
     > { |   66 class CORE_EXPORT Frame : public GarbageCollectedFinalized<Frame> { | 
|   67 public: |   67 public: | 
|   68     virtual ~Frame(); |   68     virtual ~Frame(); | 
|   69  |   69  | 
|   70     DECLARE_VIRTUAL_TRACE(); |   70     DECLARE_VIRTUAL_TRACE(); | 
|   71  |   71  | 
|   72     virtual bool isLocalFrame() const { return false; } |   72     virtual bool isLocalFrame() const { return false; } | 
|   73     virtual bool isRemoteFrame() const { return false; } |   73     virtual bool isRemoteFrame() const { return false; } | 
|   74  |   74  | 
|   75     virtual DOMWindow* domWindow() const = 0; |   75     virtual DOMWindow* domWindow() const = 0; | 
|   76     virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; |   76     virtual WindowProxy* windowProxy(DOMWrapperWorld&) = 0; | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  131     void setIsLoading(bool isLoading) { m_isLoading = isLoading; } |  131     void setIsLoading(bool isLoading) { m_isLoading = isLoading; } | 
|  132     bool isLoading() const { return m_isLoading; } |  132     bool isLoading() const { return m_isLoading; } | 
|  133  |  133  | 
|  134     virtual WindowProxyManager* getWindowProxyManager() const = 0; |  134     virtual WindowProxyManager* getWindowProxyManager() const = 0; | 
|  135  |  135  | 
|  136 protected: |  136 protected: | 
|  137     Frame(FrameClient*, FrameHost*, FrameOwner*); |  137     Frame(FrameClient*, FrameHost*, FrameOwner*); | 
|  138  |  138  | 
|  139     mutable FrameTree m_treeNode; |  139     mutable FrameTree m_treeNode; | 
|  140  |  140  | 
|  141     RawPtrWillBeMember<FrameHost> m_host; |  141     Member<FrameHost> m_host; | 
|  142     RawPtrWillBeMember<FrameOwner> m_owner; |  142     Member<FrameOwner> m_owner; | 
|  143  |  143  | 
|  144 private: |  144 private: | 
|  145     RawPtrWillBeMember<FrameClient> m_client; |  145     Member<FrameClient> m_client; | 
|  146     // Needed to identify Frame Timing requests. |  146     // Needed to identify Frame Timing requests. | 
|  147     int64_t m_frameID; |  147     int64_t m_frameID; | 
|  148     bool m_isLoading; |  148     bool m_isLoading; | 
|  149 }; |  149 }; | 
|  150  |  150  | 
|  151 inline FrameClient* Frame::client() const |  151 inline FrameClient* Frame::client() const | 
|  152 { |  152 { | 
|  153     return m_client; |  153     return m_client; | 
|  154 } |  154 } | 
|  155  |  155  | 
|  156 inline FrameOwner* Frame::owner() const |  156 inline FrameOwner* Frame::owner() const | 
|  157 { |  157 { | 
|  158     return m_owner; |  158     return m_owner; | 
|  159 } |  159 } | 
|  160  |  160  | 
|  161 inline FrameTree& Frame::tree() const |  161 inline FrameTree& Frame::tree() const | 
|  162 { |  162 { | 
|  163     return m_treeNode; |  163     return m_treeNode; | 
|  164 } |  164 } | 
|  165  |  165  | 
|  166 // Allow equality comparisons of Frames by reference or pointer, interchangeably
     . |  166 // Allow equality comparisons of Frames by reference or pointer, interchangeably
     . | 
|  167 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |  167 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 
|  168  |  168  | 
|  169 } // namespace blink |  169 } // namespace blink | 
|  170  |  170  | 
|  171 #endif // Frame_h |  171 #endif // Frame_h | 
| OLD | NEW |