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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
92 virtual SecurityContext* securityContext() const = 0; | 92 virtual SecurityContext* securityContext() const = 0; |
93 | 93 |
94 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame); | 94 Frame* findFrameForNavigation(const AtomicString& name, Frame& activeFrame); |
95 Frame* findUnsafeParentScrollPropagationBoundary(); | 95 Frame* findUnsafeParentScrollPropagationBoundary(); |
96 | 96 |
97 bool canNavigate(const Frame&); | 97 bool canNavigate(const Frame&); |
98 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0; | 98 virtual void printNavigationErrorMessage(const Frame&, const char* reason) = 0; |
99 | 99 |
100 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame. | 100 RenderPart* ownerRenderer() const; // Renderer for the element that contains this frame. |
101 | 101 |
102 int64_t frameID() const { return m_frameID; } | |
MikeB
2015/02/06 17:41:31
This was removed in https://codereview.chromium.or
| |
103 | |
102 // FIXME: These should move to RemoteFrame when that is instantiated. | 104 // FIXME: These should move to RemoteFrame when that is instantiated. |
103 void setRemotePlatformLayer(WebLayer*); | 105 void setRemotePlatformLayer(WebLayer*); |
104 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } | 106 WebLayer* remotePlatformLayer() const { return m_remotePlatformLayer; } |
105 | 107 |
106 Settings* settings() const; // can be null | 108 Settings* settings() const; // can be null |
107 | 109 |
108 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e. | 110 // FIXME: This method identifies a LocalFrame that is acting as a RemoteFram e. |
109 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt | 111 // It is necessary only until we can instantiate a RemoteFrame, at which poi nt |
110 // it can be removed and its callers can be converted to use the isRemoteFra me() | 112 // it can be removed and its callers can be converted to use the isRemoteFra me() |
111 // method. | 113 // method. |
(...skipping 10 matching lines...) Expand all Loading... | |
122 protected: | 124 protected: |
123 Frame(FrameClient*, FrameHost*, FrameOwner*); | 125 Frame(FrameClient*, FrameHost*, FrameOwner*); |
124 | 126 |
125 mutable FrameTree m_treeNode; | 127 mutable FrameTree m_treeNode; |
126 | 128 |
127 RawPtrWillBeMember<FrameHost> m_host; | 129 RawPtrWillBeMember<FrameHost> m_host; |
128 RawPtrWillBeMember<FrameOwner> m_owner; | 130 RawPtrWillBeMember<FrameOwner> m_owner; |
129 | 131 |
130 private: | 132 private: |
131 FrameClient* m_client; | 133 FrameClient* m_client; |
134 // Needed to identify Frame Timing requests. | |
135 int64_t m_frameID; | |
132 WebLayer* m_remotePlatformLayer; | 136 WebLayer* m_remotePlatformLayer; |
133 | 137 |
134 bool m_isLoading; | 138 bool m_isLoading; |
135 }; | 139 }; |
136 | 140 |
137 inline FrameClient* Frame::client() const | 141 inline FrameClient* Frame::client() const |
138 { | 142 { |
139 return m_client; | 143 return m_client; |
140 } | 144 } |
141 | 145 |
142 inline FrameOwner* Frame::owner() const | 146 inline FrameOwner* Frame::owner() const |
143 { | 147 { |
144 return m_owner; | 148 return m_owner; |
145 } | 149 } |
146 | 150 |
147 inline FrameTree& Frame::tree() const | 151 inline FrameTree& Frame::tree() const |
148 { | 152 { |
149 return m_treeNode; | 153 return m_treeNode; |
150 } | 154 } |
151 | 155 |
152 // Allow equality comparisons of Frames by reference or pointer, interchangeably . | 156 // Allow equality comparisons of Frames by reference or pointer, interchangeably . |
153 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) | 157 DEFINE_COMPARISON_OPERATORS_WITH_REFERENCES_REFCOUNTED(Frame) |
154 | 158 |
155 } // namespace blink | 159 } // namespace blink |
156 | 160 |
157 #endif // Frame_h | 161 #endif // Frame_h |
OLD | NEW |