| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 class InstrumentingAgents; | 64 class InstrumentingAgents; |
| 65 class LocalDOMWindow; | 65 class LocalDOMWindow; |
| 66 class NavigationScheduler; | 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 SnapCoordinator; |
| 74 class TreeScope; | 75 class TreeScope; |
| 75 template <typename Strategy> class PositionWithAffinityTemplate; | 76 template <typename Strategy> class PositionWithAffinityTemplate; |
| 76 | 77 |
| 77 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier,
public WillBeHeapSupplementable<LocalFrame> { | 78 class CORE_EXPORT LocalFrame : public Frame, public LocalFrameLifecycleNotifier,
public WillBeHeapSupplementable<LocalFrame> { |
| 78 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 79 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
| 79 public: | 80 public: |
| 80 static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHo
st*, FrameOwner*); | 81 static PassRefPtrWillBeRawPtr<LocalFrame> create(FrameLoaderClient*, FrameHo
st*, FrameOwner*); |
| 81 | 82 |
| 82 void init(); | 83 void init(); |
| 83 void setView(PassRefPtrWillBeRawPtr<FrameView>); | 84 void setView(PassRefPtrWillBeRawPtr<FrameView>); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 104 void willDetachFrameHost(); | 105 void willDetachFrameHost(); |
| 105 | 106 |
| 106 LocalDOMWindow* localDOMWindow() const; | 107 LocalDOMWindow* localDOMWindow() const; |
| 107 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>); | 108 void setDOMWindow(PassRefPtrWillBeRawPtr<LocalDOMWindow>); |
| 108 FrameView* view() const; | 109 FrameView* view() const; |
| 109 Document* document() const; | 110 Document* document() const; |
| 110 void setPagePopupOwner(Element&); | 111 void setPagePopupOwner(Element&); |
| 111 Element* pagePopupOwner() const { return m_pagePopupOwner.get(); } | 112 Element* pagePopupOwner() const { return m_pagePopupOwner.get(); } |
| 112 | 113 |
| 113 LayoutView* contentLayoutObject() const; // Root of the layout tree for the
document contained in this frame. | 114 LayoutView* contentLayoutObject() const; // Root of the layout tree for the
document contained in this frame. |
| 115 SnapCoordinator* snapCoordinator() const; |
| 114 | 116 |
| 115 Editor& editor() const; | 117 Editor& editor() const; |
| 116 EventHandler& eventHandler() const; | 118 EventHandler& eventHandler() const; |
| 117 FrameLoader& loader() const; | 119 FrameLoader& loader() const; |
| 118 NavigationScheduler& navigationScheduler() const; | 120 NavigationScheduler& navigationScheduler() const; |
| 119 FrameSelection& selection() const; | 121 FrameSelection& selection() const; |
| 120 InputMethodController& inputMethodController() const; | 122 InputMethodController& inputMethodController() const; |
| 121 ScriptController& script() const; | 123 ScriptController& script() const; |
| 122 SpellChecker& spellChecker() const; | 124 SpellChecker& spellChecker() const; |
| 123 FrameConsole& console() const; | 125 FrameConsole& console() const; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 // Usually 0. Non-null if this is the top frame of PagePopup. | 206 // Usually 0. Non-null if this is the top frame of PagePopup. |
| 205 RefPtrWillBeMember<Element> m_pagePopupOwner; | 207 RefPtrWillBeMember<Element> m_pagePopupOwner; |
| 206 | 208 |
| 207 const OwnPtrWillBeMember<ScriptController> m_script; | 209 const OwnPtrWillBeMember<ScriptController> m_script; |
| 208 const OwnPtrWillBeMember<Editor> m_editor; | 210 const OwnPtrWillBeMember<Editor> m_editor; |
| 209 const OwnPtrWillBeMember<SpellChecker> m_spellChecker; | 211 const OwnPtrWillBeMember<SpellChecker> m_spellChecker; |
| 210 const OwnPtrWillBeMember<FrameSelection> m_selection; | 212 const OwnPtrWillBeMember<FrameSelection> m_selection; |
| 211 const OwnPtrWillBeMember<EventHandler> m_eventHandler; | 213 const OwnPtrWillBeMember<EventHandler> m_eventHandler; |
| 212 const OwnPtrWillBeMember<FrameConsole> m_console; | 214 const OwnPtrWillBeMember<FrameConsole> m_console; |
| 213 const OwnPtrWillBeMember<InputMethodController> m_inputMethodController; | 215 const OwnPtrWillBeMember<InputMethodController> m_inputMethodController; |
| 216 OwnPtrWillBeMember<SnapCoordinator> m_snapCoordinator; |
| 217 |
| 214 | 218 |
| 215 #if ENABLE(OILPAN) | 219 #if ENABLE(OILPAN) |
| 216 // Oilpan: in order to reliably finalize plugin elements with | 220 // Oilpan: in order to reliably finalize plugin elements with |
| 217 // renderer-less plugins, the frame keeps track of them. When | 221 // renderer-less plugins, the frame keeps track of them. When |
| 218 // the frame is detached and disposed, these will be disposed | 222 // the frame is detached and disposed, these will be disposed |
| 219 // of in the process. This is needed as the plugin element | 223 // of in the process. This is needed as the plugin element |
| 220 // might not itself be attached to a DOM tree and be | 224 // might not itself be attached to a DOM tree and be |
| 221 // explicitly detached&disposed of. | 225 // explicitly detached&disposed of. |
| 222 // | 226 // |
| 223 // A weak reference is all wanted; the plugin element must | 227 // A weak reference is all wanted; the plugin element must |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 302 { | 306 { |
| 303 m_inViewSourceMode = mode; | 307 m_inViewSourceMode = mode; |
| 304 } | 308 } |
| 305 | 309 |
| 306 inline EventHandler& LocalFrame::eventHandler() const | 310 inline EventHandler& LocalFrame::eventHandler() const |
| 307 { | 311 { |
| 308 ASSERT(m_eventHandler); | 312 ASSERT(m_eventHandler); |
| 309 return *m_eventHandler; | 313 return *m_eventHandler; |
| 310 } | 314 } |
| 311 | 315 |
| 316 inline SnapCoordinator* LocalFrame::snapCoordinator() const |
| 317 { |
| 318 return m_snapCoordinator.get(); |
| 319 } |
| 320 |
| 312 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), loc
alFrame.isLocalFrame()); | 321 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), loc
alFrame.isLocalFrame()); |
| 313 | 322 |
| 314 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); | 323 DECLARE_WEAK_IDENTIFIER_MAP(LocalFrame); |
| 315 | 324 |
| 316 } // namespace blink | 325 } // namespace blink |
| 317 | 326 |
| 318 // During refactoring, there are some places where we need to do type conversion
s that | 327 // During refactoring, there are some places where we need to do type conversion
s that |
| 319 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 328 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
| 320 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 329 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
| 321 #define toLocalFrameTemporary toLocalFrame | 330 #define toLocalFrameTemporary toLocalFrame |
| 322 | 331 |
| 323 #endif // LocalFrame_h | 332 #endif // LocalFrame_h |
| OLD | NEW |