| 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 21 matching lines...) Expand all Loading... |
| 32 #include "core/dom/WeakIdentifierMap.h" | 32 #include "core/dom/WeakIdentifierMap.h" |
| 33 #include "core/frame/Frame.h" | 33 #include "core/frame/Frame.h" |
| 34 #include "core/frame/LocalFrameLifecycleNotifier.h" | 34 #include "core/frame/LocalFrameLifecycleNotifier.h" |
| 35 #include "core/frame/LocalFrameLifecycleObserver.h" | 35 #include "core/frame/LocalFrameLifecycleObserver.h" |
| 36 #include "core/inspector/InstrumentingSessions.h" | 36 #include "core/inspector/InstrumentingSessions.h" |
| 37 #include "core/loader/FrameLoader.h" | 37 #include "core/loader/FrameLoader.h" |
| 38 #include "core/page/FrameTree.h" | 38 #include "core/page/FrameTree.h" |
| 39 #include "core/paint/PaintPhase.h" | 39 #include "core/paint/PaintPhase.h" |
| 40 #include "platform/Supplementable.h" | 40 #include "platform/Supplementable.h" |
| 41 #include "platform/graphics/ImageOrientation.h" | 41 #include "platform/graphics/ImageOrientation.h" |
| 42 #include "platform/graphics/paint/DisplayItem.h" | |
| 43 #include "platform/heap/Handle.h" | 42 #include "platform/heap/Handle.h" |
| 44 #include "platform/scroll/ScrollTypes.h" | 43 #include "platform/scroll/ScrollTypes.h" |
| 45 #include "wtf/HashSet.h" | 44 #include "wtf/HashSet.h" |
| 46 | 45 |
| 47 namespace blink { | 46 namespace blink { |
| 48 | 47 |
| 49 class Color; | 48 class Color; |
| 50 class Document; | 49 class Document; |
| 51 class DragImage; | 50 class DragImage; |
| 52 class Editor; | 51 class Editor; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 71 class LayoutView; | 70 class LayoutView; |
| 72 class TreeScope; | 71 class TreeScope; |
| 73 class ScriptController; | 72 class ScriptController; |
| 74 class ServiceRegistry; | 73 class ServiceRegistry; |
| 75 class SpellChecker; | 74 class SpellChecker; |
| 76 class TreeScope; | 75 class TreeScope; |
| 77 class WebFrameHostScheduler; | 76 class WebFrameHostScheduler; |
| 78 class WebFrameScheduler; | 77 class WebFrameScheduler; |
| 79 template <typename Strategy> class PositionWithAffinityTemplate; | 78 template <typename Strategy> class PositionWithAffinityTemplate; |
| 80 | 79 |
| 81 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier,
public Supplementable<LocalFrame>, public DisplayItemClient { | 80 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier,
public Supplementable<LocalFrame> { |
| 82 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 81 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
| 83 public: | 82 public: |
| 84 static LocalFrame* create(FrameLoaderClient*, FrameHost*, FrameOwner*, Servi
ceRegistry* = nullptr); | 83 static LocalFrame* create(FrameLoaderClient*, FrameHost*, FrameOwner*, Servi
ceRegistry* = nullptr); |
| 85 | 84 |
| 86 void init(); | 85 void init(); |
| 87 void setView(FrameView*); | 86 void setView(FrameView*); |
| 88 void createView(const IntSize&, const Color&, bool, | 87 void createView(const IntSize&, const Color&, bool, |
| 89 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, | 88 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, |
| 90 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); | 89 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); |
| 91 | 90 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 164 String selectedTextForClipboard() const; | 163 String selectedTextForClipboard() const; |
| 165 | 164 |
| 166 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> positionForPoi
nt(const IntPoint& framePoint); | 165 PositionWithAffinityTemplate<EditingAlgorithm<NodeTraversal>> positionForPoi
nt(const IntPoint& framePoint); |
| 167 Document* documentAtPoint(const IntPoint&); | 166 Document* documentAtPoint(const IntPoint&); |
| 168 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> rangeForPoint(const
IntPoint& framePoint); | 167 EphemeralRangeTemplate<EditingAlgorithm<NodeTraversal>> rangeForPoint(const
IntPoint& framePoint); |
| 169 | 168 |
| 170 bool isURLAllowed(const KURL&) const; | 169 bool isURLAllowed(const KURL&) const; |
| 171 bool shouldReuseDefaultView(const KURL&) const; | 170 bool shouldReuseDefaultView(const KURL&) const; |
| 172 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 171 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
| 173 | 172 |
| 174 // DisplayItemClient methods | |
| 175 String debugName() const final { return "LocalFrame"; } | |
| 176 // TODO(chrishtr): fix this. | |
| 177 LayoutRect visualRect() const override { return LayoutRect(); } | |
| 178 | |
| 179 bool shouldThrottleRendering() const; | 173 bool shouldThrottleRendering() const; |
| 180 | 174 |
| 181 // Returns the frame scheduler, creating one if needed. | 175 // Returns the frame scheduler, creating one if needed. |
| 182 WebFrameScheduler* frameScheduler(); | 176 WebFrameScheduler* frameScheduler(); |
| 183 void scheduleVisualUpdateUnlessThrottled(); | 177 void scheduleVisualUpdateUnlessThrottled(); |
| 184 | 178 |
| 185 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 179 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
| 186 | 180 |
| 187 ServiceRegistry* serviceRegistry() { return m_serviceRegistry; } | 181 ServiceRegistry* serviceRegistry() { return m_serviceRegistry; } |
| 188 | 182 |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 explicit FrameNavigationDisabler(LocalFrame&); | 305 explicit FrameNavigationDisabler(LocalFrame&); |
| 312 ~FrameNavigationDisabler(); | 306 ~FrameNavigationDisabler(); |
| 313 | 307 |
| 314 private: | 308 private: |
| 315 Member<LocalFrame> m_frame; | 309 Member<LocalFrame> m_frame; |
| 316 }; | 310 }; |
| 317 | 311 |
| 318 } // namespace blink | 312 } // namespace blink |
| 319 | 313 |
| 320 #endif // LocalFrame_h | 314 #endif // LocalFrame_h |
| OLD | NEW |