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" |
34 #include "core/frame/LocalFrameLifecycleNotifier.h" | 35 #include "core/frame/LocalFrameLifecycleNotifier.h" |
35 #include "core/frame/LocalFrameLifecycleObserver.h" | 36 #include "core/frame/LocalFrameLifecycleObserver.h" |
| 37 #include "core/inspector/InstrumentingAgents.h" |
36 #include "core/loader/FrameLoader.h" | 38 #include "core/loader/FrameLoader.h" |
| 39 #include "core/loader/NavigationScheduler.h" |
37 #include "core/page/FrameTree.h" | 40 #include "core/page/FrameTree.h" |
38 #include "core/paint/PaintPhase.h" | 41 #include "core/paint/PaintPhase.h" |
39 #include "platform/Supplementable.h" | 42 #include "platform/Supplementable.h" |
40 #include "platform/graphics/ImageOrientation.h" | 43 #include "platform/graphics/ImageOrientation.h" |
41 #include "platform/graphics/paint/DisplayItem.h" | 44 #include "platform/graphics/paint/DisplayItem.h" |
42 #include "platform/heap/Handle.h" | 45 #include "platform/heap/Handle.h" |
43 #include "platform/scroll/ScrollTypes.h" | 46 #include "platform/scroll/ScrollTypes.h" |
44 #include "wtf/HashSet.h" | 47 #include "wtf/HashSet.h" |
45 | 48 |
46 namespace blink { | 49 namespace blink { |
47 | 50 |
48 class Color; | 51 class Color; |
49 class Document; | 52 class Document; |
50 class DragImage; | 53 class DragImage; |
51 class Editor; | 54 class Editor; |
52 template <typename Traversal> class EditingAlgorithm; | 55 template <typename Traversal> class EditingAlgorithm; |
53 class Element; | 56 class Element; |
54 template <typename Strategy> class EphemeralRangeTemplate; | 57 template <typename Strategy> class EphemeralRangeTemplate; |
55 class EventHandler; | 58 class EventHandler; |
56 class FloatSize; | 59 class FloatSize; |
57 class FrameConsole; | 60 class FrameConsole; |
58 class FrameSelection; | 61 class FrameSelection; |
59 class FrameView; | |
60 class HTMLPlugInElement; | 62 class HTMLPlugInElement; |
61 class InputMethodController; | 63 class InputMethodController; |
62 class IntPoint; | 64 class IntPoint; |
63 class IntSize; | 65 class IntSize; |
64 class InstrumentingAgents; | |
65 class LocalDOMWindow; | 66 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 { return m_pagePopupOwner.get(); } | 113 Element* pagePopupOwner() const; |
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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 // TODO(dcheng): Temporary to try to debug https://crbug.com/531291 | 256 // TODO(dcheng): Temporary to try to debug https://crbug.com/531291 |
257 enum class SupplementStatus { Uncleared, Clearing, Cleared }; | 257 enum class SupplementStatus { Uncleared, Clearing, Cleared }; |
258 SupplementStatus m_supplementStatus = SupplementStatus::Uncleared; | 258 SupplementStatus m_supplementStatus = SupplementStatus::Uncleared; |
259 }; | 259 }; |
260 | 260 |
261 inline void LocalFrame::init() | 261 inline void LocalFrame::init() |
262 { | 262 { |
263 m_loader.init(); | 263 m_loader.init(); |
264 } | 264 } |
265 | 265 |
266 inline LocalDOMWindow* LocalFrame::localDOMWindow() const | |
267 { | |
268 return m_domWindow.get(); | |
269 } | |
270 | |
271 inline FrameLoader& LocalFrame::loader() const | 266 inline FrameLoader& LocalFrame::loader() const |
272 { | 267 { |
273 return m_loader; | 268 return m_loader; |
274 } | 269 } |
275 | 270 |
276 inline NavigationScheduler& LocalFrame::navigationScheduler() const | 271 inline NavigationScheduler& LocalFrame::navigationScheduler() const |
277 { | 272 { |
278 ASSERT(m_navigationScheduler); | 273 ASSERT(m_navigationScheduler); |
279 return *m_navigationScheduler.get(); | 274 return *m_navigationScheduler.get(); |
280 } | 275 } |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
346 }; | 341 }; |
347 | 342 |
348 } // namespace blink | 343 } // namespace blink |
349 | 344 |
350 // During refactoring, there are some places where we need to do type conversion
s that | 345 // During refactoring, there are some places where we need to do type conversion
s that |
351 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 346 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
352 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 347 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
353 #define toLocalFrameTemporary toLocalFrame | 348 #define toLocalFrameTemporary toLocalFrame |
354 | 349 |
355 #endif // LocalFrame_h | 350 #endif // LocalFrame_h |
OLD | NEW |