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 override { return "LocalFrame"; } |
pdr.
2015/12/05 21:39:19
Should this be final?
Xianzhu
2015/12/07 17:14:00
Yes. Done.
| |
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 | 189 |
190 void updateSecurityOrigin(SecurityOrigin*); | 190 void updateSecurityOrigin(SecurityOrigin*); |
191 | 191 |
192 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 192 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
193 | 193 |
194 private: | 194 private: |
195 friend class FrameNavigationDisabler; | 195 friend class FrameNavigationDisabler; |
196 | 196 |
197 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); | 197 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); |
198 | 198 |
199 // Internal Frame helper overrides: | 199 // Internal Frame helper overrides: |
200 WindowProxyManager* windowProxyManager() const override; | 200 WindowProxyManager* windowProxyManager() const override; |
201 | 201 |
202 String localLayerTreeAsText(unsigned flags) const; | 202 String localLayerTreeAsText(unsigned flags) const; |
203 | 203 |
204 // Paints the area for the given rect into a DragImage, with the given displ ayItemClient id attached. | 204 // Paints the area for the given rect into a DragImage, with the given displ ayItemClient id attached. |
205 // The rect is in the coordinate space of the frame. | 205 // The rect is in the coordinate space of the frame. |
206 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClientWrapper&, | 206 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClient&, |
207 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP aintFlags, | 207 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP aintFlags, |
208 IntRect paintingRect, float opacity = 1); | 208 IntRect paintingRect, float opacity = 1); |
209 | 209 |
210 void enableNavigation() { --m_navigationDisableCount; } | 210 void enableNavigation() { --m_navigationDisableCount; } |
211 void disableNavigation() { ++m_navigationDisableCount; } | 211 void disableNavigation() { ++m_navigationDisableCount; } |
212 | 212 |
213 mutable FrameLoader m_loader; | 213 mutable FrameLoader m_loader; |
214 OwnPtrWillBeMember<NavigationScheduler> m_navigationScheduler; | 214 OwnPtrWillBeMember<NavigationScheduler> m_navigationScheduler; |
215 | 215 |
216 RefPtrWillBeMember<FrameView> m_view; | 216 RefPtrWillBeMember<FrameView> m_view; |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
341 explicit FrameNavigationDisabler(LocalFrame&); | 341 explicit FrameNavigationDisabler(LocalFrame&); |
342 ~FrameNavigationDisabler(); | 342 ~FrameNavigationDisabler(); |
343 | 343 |
344 private: | 344 private: |
345 RawPtrWillBeMember<LocalFrame> m_frame; | 345 RawPtrWillBeMember<LocalFrame> m_frame; |
346 }; | 346 }; |
347 | 347 |
348 } // namespace blink | 348 } // namespace blink |
349 | 349 |
350 #endif // LocalFrame_h | 350 #endif // LocalFrame_h |
OLD | NEW |