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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 class Range; | 69 class Range; |
70 class LayoutView; | 70 class LayoutView; |
71 class TreeScope; | 71 class TreeScope; |
72 class ScriptController; | 72 class ScriptController; |
73 class SpellChecker; | 73 class SpellChecker; |
74 class TreeScope; | 74 class TreeScope; |
75 class WebFrameHostScheduler; | 75 class WebFrameHostScheduler; |
76 class WebFrameScheduler; | 76 class WebFrameScheduler; |
77 template <typename Strategy> class PositionWithAffinityTemplate; | 77 template <typename Strategy> class PositionWithAffinityTemplate; |
78 | 78 |
79 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier,
public WillBeHeapSupplementable<LocalFrame> { | 79 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier,
public WillBeHeapSupplementable<LocalFrame>, public DisplayItemClient { |
80 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 80 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
81 public: | 81 public: |
82 static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHo
st*, FrameOwner*); | 82 static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHo
st*, FrameOwner*); |
83 | 83 |
84 void init(); | 84 void init(); |
85 void setView(PassRefPtrWillBeRawPtr<FrameView>); | 85 void setView(PassRefPtrWillBeRawPtr<FrameView>); |
86 void createView(const IntSize&, const Color&, bool, | 86 void createView(const IntSize&, const Color&, bool, |
87 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, | 87 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, |
88 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); | 88 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); |
89 | 89 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 // FIXME: once scroll customization is enabled everywhere | 172 // FIXME: once scroll customization is enabled everywhere |
173 // (crbug.com/416862), this should take a ScrollState object. | 173 // (crbug.com/416862), this should take a ScrollState object. |
174 ScrollResult applyScrollDelta(const FloatSize& delta, bool isScrollBegin); | 174 ScrollResult applyScrollDelta(const FloatSize& delta, bool isScrollBegin); |
175 bool shouldScrollTopControls(const FloatSize& delta) const; | 175 bool shouldScrollTopControls(const FloatSize& delta) const; |
176 | 176 |
177 #if ENABLE(OILPAN) | 177 #if ENABLE(OILPAN) |
178 void registerPluginElement(HTMLPlugInElement*); | 178 void registerPluginElement(HTMLPlugInElement*); |
179 void unregisterPluginElement(HTMLPlugInElement*); | 179 void unregisterPluginElement(HTMLPlugInElement*); |
180 void clearWeakMembers(Visitor*); | 180 void clearWeakMembers(Visitor*); |
181 #endif | 181 #endif |
182 DisplayItemClient displayItemClient() const { return toDisplayItemClient(thi
s); } | 182 |
183 String debugName() const { return "LocalFrame"; } | 183 String debugName() const final { return "LocalFrame"; } |
184 | 184 |
185 bool shouldThrottleRendering() const; | 185 bool shouldThrottleRendering() const; |
186 | 186 |
187 // Returns the frame scheduler, creating one if needed. | 187 // Returns the frame scheduler, creating one if needed. |
188 WebFrameScheduler* frameScheduler(); | 188 WebFrameScheduler* frameScheduler(); |
189 void scheduleVisualUpdateUnlessThrottled(); | 189 void scheduleVisualUpdateUnlessThrottled(); |
190 | 190 |
191 void updateSecurityOrigin(SecurityOrigin*); | 191 void updateSecurityOrigin(SecurityOrigin*); |
192 | 192 |
193 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 193 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
194 | 194 |
195 private: | 195 private: |
196 friend class FrameNavigationDisabler; | 196 friend class FrameNavigationDisabler; |
197 | 197 |
198 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); | 198 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); |
199 | 199 |
200 // Internal Frame helper overrides: | 200 // Internal Frame helper overrides: |
201 WindowProxyManager* windowProxyManager() const override; | 201 WindowProxyManager* windowProxyManager() const override; |
202 | 202 |
203 String localLayerTreeAsText(unsigned flags) const; | 203 String localLayerTreeAsText(unsigned flags) const; |
204 | 204 |
205 // Paints the area for the given rect into a DragImage, with the given displ
ayItemClient id attached. | 205 // Paints the area for the given rect into a DragImage, with the given displ
ayItemClient id attached. |
206 // The rect is in the coordinate space of the frame. | 206 // The rect is in the coordinate space of the frame. |
207 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClientWrapper&, | 207 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClient&, |
208 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP
aintFlags, | 208 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP
aintFlags, |
209 IntRect paintingRect, float opacity = 1); | 209 IntRect paintingRect, float opacity = 1); |
210 | 210 |
211 void enableNavigation() { --m_navigationDisableCount; } | 211 void enableNavigation() { --m_navigationDisableCount; } |
212 void disableNavigation() { ++m_navigationDisableCount; } | 212 void disableNavigation() { ++m_navigationDisableCount; } |
213 | 213 |
214 mutable FrameLoader m_loader; | 214 mutable FrameLoader m_loader; |
215 OwnPtrWillBeMember<NavigationScheduler> m_navigationScheduler; | 215 OwnPtrWillBeMember<NavigationScheduler> m_navigationScheduler; |
216 | 216 |
217 RefPtrWillBeMember<FrameView> m_view; | 217 RefPtrWillBeMember<FrameView> m_view; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 explicit FrameNavigationDisabler(LocalFrame&); | 342 explicit FrameNavigationDisabler(LocalFrame&); |
343 ~FrameNavigationDisabler(); | 343 ~FrameNavigationDisabler(); |
344 | 344 |
345 private: | 345 private: |
346 RawPtrWillBeMember<LocalFrame> m_frame; | 346 RawPtrWillBeMember<LocalFrame> m_frame; |
347 }; | 347 }; |
348 | 348 |
349 } // namespace blink | 349 } // namespace blink |
350 | 350 |
351 #endif // LocalFrame_h | 351 #endif // LocalFrame_h |
OLD | NEW |