| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #ifndef LocalFrame_h | 28 #ifndef LocalFrame_h |
| 29 #define LocalFrame_h | 29 #define LocalFrame_h |
| 30 | 30 |
| 31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
| 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/loader/FrameLoader.h" | 36 #include "core/loader/FrameLoader.h" |
| 37 #include "core/loader/NavigationScheduler.h" | |
| 38 #include "core/page/FrameTree.h" | 37 #include "core/page/FrameTree.h" |
| 39 #include "core/paint/PaintPhase.h" | 38 #include "core/paint/PaintPhase.h" |
| 40 #include "platform/Supplementable.h" | 39 #include "platform/Supplementable.h" |
| 41 #include "platform/graphics/ImageOrientation.h" | 40 #include "platform/graphics/ImageOrientation.h" |
| 42 #include "platform/graphics/paint/DisplayItem.h" | 41 #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; |
| 53 template <typename Traversal> class EditingAlgorithm; | 52 template <typename Traversal> class EditingAlgorithm; |
| 54 class Element; | 53 class Element; |
| 55 template <typename Strategy> class EphemeralRangeTemplate; | 54 template <typename Strategy> class EphemeralRangeTemplate; |
| 56 class EventHandler; | 55 class EventHandler; |
| 57 class FloatSize; | 56 class FloatSize; |
| 58 class FrameConsole; | 57 class FrameConsole; |
| 59 class FrameSelection; | 58 class FrameSelection; |
| 60 class FrameView; | 59 class FrameView; |
| 61 class HTMLPlugInElement; | 60 class HTMLPlugInElement; |
| 62 class InputMethodController; | 61 class InputMethodController; |
| 63 class IntPoint; | 62 class IntPoint; |
| 64 class IntSize; | 63 class IntSize; |
| 65 class InstrumentingAgents; | 64 class InstrumentingAgents; |
| 66 class LocalDOMWindow; | 65 class LocalDOMWindow; |
| 66 class NavigationScheduler; |
| 67 class Node; | 67 class Node; |
| 68 class NodeTraversal; | 68 class NodeTraversal; |
| 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 template <typename Strategy> class PositionWithAffinityTemplate; | 75 template <typename Strategy> class PositionWithAffinityTemplate; |
| 76 | 76 |
| (...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 String localLayerTreeAsText(unsigned flags) const; | 191 String localLayerTreeAsText(unsigned flags) const; |
| 192 | 192 |
| 193 // Paints the area for the given rect into a DragImage, with the given displ
ayItemClient id attached. | 193 // Paints the area for the given rect into a DragImage, with the given displ
ayItemClient id attached. |
| 194 // The rect is in the coordinate space of the frame. | 194 // The rect is in the coordinate space of the frame. |
| 195 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClientWrapper&, | 195 PassOwnPtr<DragImage> paintIntoDragImage(const DisplayItemClientWrapper&, |
| 196 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP
aintFlags, | 196 RespectImageOrientationEnum shouldRespectImageOrientation, const GlobalP
aintFlags, |
| 197 IntRect paintingRect, float opacity = 1); | 197 IntRect paintingRect, float opacity = 1); |
| 198 | 198 |
| 199 mutable FrameLoader m_loader; | 199 mutable FrameLoader m_loader; |
| 200 mutable NavigationScheduler m_navigationScheduler; | 200 OwnPtrWillBeMember<NavigationScheduler> m_navigationScheduler; |
| 201 | 201 |
| 202 RefPtrWillBeMember<FrameView> m_view; | 202 RefPtrWillBeMember<FrameView> m_view; |
| 203 RefPtrWillBeMember<LocalDOMWindow> m_domWindow; | 203 RefPtrWillBeMember<LocalDOMWindow> m_domWindow; |
| 204 // Usually 0. Non-null if this is the top frame of PagePopup. | 204 // Usually 0. Non-null if this is the top frame of PagePopup. |
| 205 RefPtrWillBeMember<Element> m_pagePopupOwner; | 205 RefPtrWillBeMember<Element> m_pagePopupOwner; |
| 206 | 206 |
| 207 const OwnPtrWillBeMember<ScriptController> m_script; | 207 const OwnPtrWillBeMember<ScriptController> m_script; |
| 208 const OwnPtrWillBeMember<Editor> m_editor; | 208 const OwnPtrWillBeMember<Editor> m_editor; |
| 209 const OwnPtrWillBeMember<SpellChecker> m_spellChecker; | 209 const OwnPtrWillBeMember<SpellChecker> m_spellChecker; |
| 210 const OwnPtrWillBeMember<FrameSelection> m_selection; | 210 const OwnPtrWillBeMember<FrameSelection> m_selection; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 return m_domWindow.get(); | 247 return m_domWindow.get(); |
| 248 } | 248 } |
| 249 | 249 |
| 250 inline FrameLoader& LocalFrame::loader() const | 250 inline FrameLoader& LocalFrame::loader() const |
| 251 { | 251 { |
| 252 return m_loader; | 252 return m_loader; |
| 253 } | 253 } |
| 254 | 254 |
| 255 inline NavigationScheduler& LocalFrame::navigationScheduler() const | 255 inline NavigationScheduler& LocalFrame::navigationScheduler() const |
| 256 { | 256 { |
| 257 return m_navigationScheduler; | 257 ASSERT(m_navigationScheduler); |
| 258 return *m_navigationScheduler.get(); |
| 258 } | 259 } |
| 259 | 260 |
| 260 inline FrameView* LocalFrame::view() const | 261 inline FrameView* LocalFrame::view() const |
| 261 { | 262 { |
| 262 return m_view.get(); | 263 return m_view.get(); |
| 263 } | 264 } |
| 264 | 265 |
| 265 inline ScriptController& LocalFrame::script() const | 266 inline ScriptController& LocalFrame::script() const |
| 266 { | 267 { |
| 267 return *m_script; | 268 return *m_script; |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); | 314 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); |
| 314 | 315 |
| 315 } // namespace blink | 316 } // namespace blink |
| 316 | 317 |
| 317 // During refactoring, there are some places where we need to do type conversion
s that | 318 // During refactoring, there are some places where we need to do type conversion
s that |
| 318 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 319 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
| 319 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 320 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
| 320 #define toLocalFrameTemporary toLocalFrame | 321 #define toLocalFrameTemporary toLocalFrame |
| 321 | 322 |
| 322 #endif // LocalFrame_h | 323 #endif // LocalFrame_h |
| OLD | NEW |