| 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 13 matching lines...) Expand all Loading... |
| 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 24 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
| 25 * Boston, MA 02110-1301, USA. | 25 * Boston, MA 02110-1301, USA. |
| 26 */ | 26 */ |
| 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/FrameView.h" | |
| 35 #include "core/frame/LocalFrameLifecycleNotifier.h" | 34 #include "core/frame/LocalFrameLifecycleNotifier.h" |
| 36 #include "core/frame/LocalFrameLifecycleObserver.h" | 35 #include "core/frame/LocalFrameLifecycleObserver.h" |
| 37 #include "core/inspector/InstrumentingAgents.h" | |
| 38 #include "core/loader/FrameLoader.h" | 36 #include "core/loader/FrameLoader.h" |
| 39 #include "core/loader/NavigationScheduler.h" | |
| 40 #include "core/page/FrameTree.h" | 37 #include "core/page/FrameTree.h" |
| 41 #include "core/paint/PaintPhase.h" | 38 #include "core/paint/PaintPhase.h" |
| 42 #include "platform/Supplementable.h" | 39 #include "platform/Supplementable.h" |
| 43 #include "platform/graphics/ImageOrientation.h" | 40 #include "platform/graphics/ImageOrientation.h" |
| 44 #include "platform/graphics/paint/DisplayItem.h" | 41 #include "platform/graphics/paint/DisplayItem.h" |
| 45 #include "platform/heap/Handle.h" | 42 #include "platform/heap/Handle.h" |
| 46 #include "platform/scroll/ScrollTypes.h" | 43 #include "platform/scroll/ScrollTypes.h" |
| 47 #include "wtf/HashSet.h" | 44 #include "wtf/HashSet.h" |
| 48 | 45 |
| 49 namespace blink { | 46 namespace blink { |
| 50 | 47 |
| 51 class Color; | 48 class Color; |
| 52 class Document; | 49 class Document; |
| 53 class DragImage; | 50 class DragImage; |
| 54 class Editor; | 51 class Editor; |
| 55 template <typename Traversal> class EditingAlgorithm; | 52 template <typename Traversal> class EditingAlgorithm; |
| 56 class Element; | 53 class Element; |
| 57 template <typename Strategy> class EphemeralRangeTemplate; | 54 template <typename Strategy> class EphemeralRangeTemplate; |
| 58 class EventHandler; | 55 class EventHandler; |
| 59 class FloatSize; | 56 class FloatSize; |
| 60 class FrameConsole; | 57 class FrameConsole; |
| 61 class FrameSelection; | 58 class FrameSelection; |
| 59 class FrameView; |
| 62 class HTMLPlugInElement; | 60 class HTMLPlugInElement; |
| 63 class InputMethodController; | 61 class InputMethodController; |
| 64 class IntPoint; | 62 class IntPoint; |
| 65 class IntSize; | 63 class IntSize; |
| 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 class WebFrameHostScheduler; | 75 class WebFrameHostScheduler; |
| 76 class WebFrameScheduler; | 76 class WebFrameScheduler; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 103 void printNavigationErrorMessage(const Frame&, const char* reason) override; | 103 void printNavigationErrorMessage(const Frame&, const char* reason) override; |
| 104 bool prepareForCommit() override; | 104 bool prepareForCommit() override; |
| 105 | 105 |
| 106 void willDetachFrameHost(); | 106 void willDetachFrameHost(); |
| 107 | 107 |
| 108 LocalDOMWindow* localDOMWindow() const; | 108 LocalDOMWindow* localDOMWindow() const; |
| 109 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>); | 109 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>); |
| 110 FrameView* view() const; | 110 FrameView* view() const; |
| 111 Document* document() const; | 111 Document* document() const; |
| 112 void setPagePopupOwner(Element&); | 112 void setPagePopupOwner(Element&); |
| 113 Element* pagePopupOwner() const; | 113 Element* pagePopupOwner() const { return m_pagePopupOwner.get(); } |
| 114 | 114 |
| 115 LayoutView* contentLayoutObject() const; // Root of the layout tree for the
document contained in this frame. | 115 LayoutView* contentLayoutObject() const; // Root of the layout tree for the
document contained in this frame. |
| 116 | 116 |
| 117 Editor& editor() const; | 117 Editor& editor() const; |
| 118 EventHandler& eventHandler() const; | 118 EventHandler& eventHandler() const; |
| 119 FrameLoader& loader() const; | 119 FrameLoader& loader() const; |
| 120 NavigationScheduler& navigationScheduler() const; | 120 NavigationScheduler& navigationScheduler() const; |
| 121 FrameSelection& selection() const; | 121 FrameSelection& selection() const; |
| 122 InputMethodController& inputMethodController() const; | 122 InputMethodController& inputMethodController() const; |
| 123 ScriptController& script() const; | 123 ScriptController& script() const; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 // TODO(dcheng): Temporary to try to debug https://crbug.com/531291 | 255 // TODO(dcheng): Temporary to try to debug https://crbug.com/531291 |
| 256 enum class SupplementStatus { Uncleared, Clearing, Cleared }; | 256 enum class SupplementStatus { Uncleared, Clearing, Cleared }; |
| 257 SupplementStatus m_supplementStatus = SupplementStatus::Uncleared; | 257 SupplementStatus m_supplementStatus = SupplementStatus::Uncleared; |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 inline void LocalFrame::init() | 260 inline void LocalFrame::init() |
| 261 { | 261 { |
| 262 m_loader.init(); | 262 m_loader.init(); |
| 263 } | 263 } |
| 264 | 264 |
| 265 inline LocalDOMWindow* LocalFrame::localDOMWindow() const |
| 266 { |
| 267 return m_domWindow.get(); |
| 268 } |
| 269 |
| 265 inline FrameLoader& LocalFrame::loader() const | 270 inline FrameLoader& LocalFrame::loader() const |
| 266 { | 271 { |
| 267 return m_loader; | 272 return m_loader; |
| 268 } | 273 } |
| 269 | 274 |
| 270 inline NavigationScheduler& LocalFrame::navigationScheduler() const | 275 inline NavigationScheduler& LocalFrame::navigationScheduler() const |
| 271 { | 276 { |
| 272 ASSERT(m_navigationScheduler); | 277 ASSERT(m_navigationScheduler); |
| 273 return *m_navigationScheduler.get(); | 278 return *m_navigationScheduler.get(); |
| 274 } | 279 } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 }; | 345 }; |
| 341 | 346 |
| 342 } // namespace blink | 347 } // namespace blink |
| 343 | 348 |
| 344 // During refactoring, there are some places where we need to do type conversion
s that | 349 // During refactoring, there are some places where we need to do type conversion
s that |
| 345 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 350 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
| 346 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 351 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
| 347 #define toLocalFrameTemporary toLocalFrame | 352 #define toLocalFrameTemporary toLocalFrame |
| 348 | 353 |
| 349 #endif // LocalFrame_h | 354 #endif // LocalFrame_h |
| OLD | NEW |