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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
163 String selectedTextForClipboard() const; | 163 String selectedTextForClipboard() const; |
164 | 164 |
165 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> positionForPoi
nt(const IntPoint& framePoint); | 165 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> positionForPoi
nt(const IntPoint& framePoint); |
166 Document* documentAtPoint(const IntPoint&); | 166 Document* documentAtPoint(const IntPoint&); |
167 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> rangeForPoint(const
IntPoint& framePoint); | 167 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> rangeForPoint(const
IntPoint& framePoint); |
168 | 168 |
169 bool isURLAllowed(const KURL&) const; | 169 bool isURLAllowed(const KURL&) const; |
170 bool shouldReuseDefaultView(const KURL&) const; | 170 bool shouldReuseDefaultView(const KURL&) const; |
171 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 171 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
172 | 172 |
173 // FIXME: once scroll customization is enabled everywhere | |
174 // (crbug.com/416862), this should take a ScrollState object. | |
175 ScrollResult applyScrollDelta(ScrollGranularity, const FloatSize& delta, boo
l isScrollBegin); | |
176 | |
177 // DisplayItemClient methods | 173 // DisplayItemClient methods |
178 String debugName() const final { return "LocalFrame"; } | 174 String debugName() const final { return "LocalFrame"; } |
179 // TODO(chrishtr): fix this. | 175 // TODO(chrishtr): fix this. |
180 LayoutRect visualRect() const override { return LayoutRect(); } | 176 LayoutRect visualRect() const override { return LayoutRect(); } |
181 | 177 |
182 bool shouldThrottleRendering() const; | 178 bool shouldThrottleRendering() const; |
183 | 179 |
184 // Returns the frame scheduler, creating one if needed. | 180 // Returns the frame scheduler, creating one if needed. |
185 WebFrameScheduler* frameScheduler(); | 181 WebFrameScheduler* frameScheduler(); |
186 void scheduleVisualUpdateUnlessThrottled(); | 182 void scheduleVisualUpdateUnlessThrottled(); |
187 | 183 |
188 void updateSecurityOrigin(SecurityOrigin*); | 184 void updateSecurityOrigin(SecurityOrigin*); |
189 | 185 |
190 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 186 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
191 | 187 |
192 private: | 188 private: |
193 friend class FrameNavigationDisabler; | 189 friend class FrameNavigationDisabler; |
194 | 190 |
195 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); | 191 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); |
196 | 192 |
197 bool shouldScrollTopControls(ScrollGranularity, const FloatSize& delta) cons
t; | |
198 | |
199 // Internal Frame helper overrides: | 193 // Internal Frame helper overrides: |
200 WindowProxyManager* getWindowProxyManager() const override; | 194 WindowProxyManager* getWindowProxyManager() const override; |
201 | 195 |
202 String localLayerTreeAsText(unsigned flags) const; | 196 String localLayerTreeAsText(unsigned flags) const; |
203 | 197 |
204 void enableNavigation() { --m_navigationDisableCount; } | 198 void enableNavigation() { --m_navigationDisableCount; } |
205 void disableNavigation() { ++m_navigationDisableCount; } | 199 void disableNavigation() { ++m_navigationDisableCount; } |
206 | 200 |
207 mutable FrameLoader m_loader; | 201 mutable FrameLoader m_loader; |
208 Member<NavigationScheduler> m_navigationScheduler; | 202 Member<NavigationScheduler> m_navigationScheduler; |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
314 explicit FrameNavigationDisabler(LocalFrame&); | 308 explicit FrameNavigationDisabler(LocalFrame&); |
315 ~FrameNavigationDisabler(); | 309 ~FrameNavigationDisabler(); |
316 | 310 |
317 private: | 311 private: |
318 Member<LocalFrame> m_frame; | 312 Member<LocalFrame> m_frame; |
319 }; | 313 }; |
320 | 314 |
321 } // namespace blink | 315 } // namespace blink |
322 | 316 |
323 #endif // LocalFrame_h | 317 #endif // LocalFrame_h |
OLD | NEW |