| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void init(); | 65 void init(); |
| 66 void setView(PassRefPtr<FrameView>); | 66 void setView(PassRefPtr<FrameView>); |
| 67 void createView(const IntSize&, const Color&, bool, | 67 void createView(const IntSize&, const Color&, bool, |
| 68 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, | 68 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, |
| 69 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); | 69 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); |
| 70 | 70 |
| 71 virtual ~LocalFrame(); | 71 virtual ~LocalFrame(); |
| 72 | 72 |
| 73 virtual void willDetachFrameHost() OVERRIDE; | 73 virtual void willDetachFrameHost() OVERRIDE; |
| 74 virtual void detachFromFrameHost() OVERRIDE; | 74 virtual void detachFromFrameHost() OVERRIDE; |
| 75 void disconnectOwnerElement(); |
| 76 |
| 77 HTMLFrameOwnerElement* ownerElement() const; |
| 75 | 78 |
| 76 virtual void setDOMWindow(PassRefPtrWillBeRawPtr<DOMWindow>) OVERRIDE; | 79 virtual void setDOMWindow(PassRefPtrWillBeRawPtr<DOMWindow>) OVERRIDE; |
| 77 FrameView* view() const; | 80 FrameView* view() const; |
| 78 | 81 |
| 79 Editor& editor() const; | 82 Editor& editor() const; |
| 80 EventHandler& eventHandler() const; | 83 EventHandler& eventHandler() const; |
| 81 FrameLoader& loader() const; | 84 FrameLoader& loader() const; |
| 82 FrameTree& tree() const; | 85 FrameTree& tree() const; |
| 83 NavigationScheduler& navigationScheduler() const; | 86 NavigationScheduler& navigationScheduler() const; |
| 84 FrameSelection& selection() const; | 87 FrameSelection& selection() const; |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 inline SpellChecker& LocalFrame::spellChecker() const | 205 inline SpellChecker& LocalFrame::spellChecker() const |
| 203 { | 206 { |
| 204 return *m_spellChecker; | 207 return *m_spellChecker; |
| 205 } | 208 } |
| 206 | 209 |
| 207 inline InputMethodController& LocalFrame::inputMethodController() const | 210 inline InputMethodController& LocalFrame::inputMethodController() const |
| 208 { | 211 { |
| 209 return *m_inputMethodController; | 212 return *m_inputMethodController; |
| 210 } | 213 } |
| 211 | 214 |
| 215 inline HTMLFrameOwnerElement* LocalFrame::ownerElement() const |
| 216 { |
| 217 return m_ownerElement; |
| 218 } |
| 219 |
| 212 inline bool LocalFrame::inViewSourceMode() const | 220 inline bool LocalFrame::inViewSourceMode() const |
| 213 { | 221 { |
| 214 return m_inViewSourceMode; | 222 return m_inViewSourceMode; |
| 215 } | 223 } |
| 216 | 224 |
| 217 inline void LocalFrame::setInViewSourceMode(bool mode) | 225 inline void LocalFrame::setInViewSourceMode(bool mode) |
| 218 { | 226 { |
| 219 m_inViewSourceMode = mode; | 227 m_inViewSourceMode = mode; |
| 220 } | 228 } |
| 221 | 229 |
| 222 inline FrameTree& LocalFrame::tree() const | 230 inline FrameTree& LocalFrame::tree() const |
| 223 { | 231 { |
| 224 return m_treeNode; | 232 return m_treeNode; |
| 225 } | 233 } |
| 226 | 234 |
| 227 inline EventHandler& LocalFrame::eventHandler() const | 235 inline EventHandler& LocalFrame::eventHandler() const |
| 228 { | 236 { |
| 229 ASSERT(m_eventHandler); | 237 ASSERT(m_eventHandler); |
| 230 return *m_eventHandler; | 238 return *m_eventHandler; |
| 231 } | 239 } |
| 232 | 240 |
| 233 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(),
localFrame.isLocalFrame()); | 241 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(),
localFrame.isLocalFrame()); |
| 234 | 242 |
| 235 } // namespace WebCore | 243 } // namespace WebCore |
| 236 | 244 |
| 237 // During refactoring, there are some places where we need to do type conversion
s that | |
| 238 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | |
| 239 // At that time this #define will be removed and all the uses of it will need to
be corrected. | |
| 240 #define toLocalFrameTemporary toLocalFrame | |
| 241 | |
| 242 #endif // LocalFrame_h | 245 #endif // LocalFrame_h |
| OLD | NEW |