Chromium Code Reviews| 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; | |
| 78 | 75 |
| 79 virtual void setDOMWindow(PassRefPtr<DOMWindow>) OVERRIDE; | 76 virtual void setDOMWindow(PassRefPtr<DOMWindow>) OVERRIDE; |
| 80 FrameView* view() const; | 77 FrameView* view() const; |
| 81 | 78 |
| 82 Editor& editor() const; | 79 Editor& editor() const; |
| 83 EventHandler& eventHandler() const; | 80 EventHandler& eventHandler() const; |
| 84 FrameLoader& loader() const; | 81 FrameLoader& loader() const; |
| 85 FrameTree& tree() const; | 82 FrameTree& tree() const; |
| 86 NavigationScheduler& navigationScheduler() const; | 83 NavigationScheduler& navigationScheduler() const; |
| 87 FrameSelection& selection() const; | 84 FrameSelection& selection() const; |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 207 inline SpellChecker& LocalFrame::spellChecker() const | 204 inline SpellChecker& LocalFrame::spellChecker() const |
| 208 { | 205 { |
| 209 return *m_spellChecker; | 206 return *m_spellChecker; |
| 210 } | 207 } |
| 211 | 208 |
| 212 inline InputMethodController& LocalFrame::inputMethodController() const | 209 inline InputMethodController& LocalFrame::inputMethodController() const |
| 213 { | 210 { |
| 214 return *m_inputMethodController; | 211 return *m_inputMethodController; |
| 215 } | 212 } |
| 216 | 213 |
| 217 inline HTMLFrameOwnerElement* LocalFrame::ownerElement() const | |
| 218 { | |
| 219 return m_ownerElement; | |
| 220 } | |
| 221 | |
| 222 inline bool LocalFrame::inViewSourceMode() const | 214 inline bool LocalFrame::inViewSourceMode() const |
| 223 { | 215 { |
| 224 return m_inViewSourceMode; | 216 return m_inViewSourceMode; |
| 225 } | 217 } |
| 226 | 218 |
| 227 inline void LocalFrame::setInViewSourceMode(bool mode) | 219 inline void LocalFrame::setInViewSourceMode(bool mode) |
| 228 { | 220 { |
| 229 m_inViewSourceMode = mode; | 221 m_inViewSourceMode = mode; |
| 230 } | 222 } |
| 231 | 223 |
| 232 inline FrameTree& LocalFrame::tree() const | 224 inline FrameTree& LocalFrame::tree() const |
| 233 { | 225 { |
| 234 return m_treeNode; | 226 return m_treeNode; |
| 235 } | 227 } |
| 236 | 228 |
| 237 inline EventHandler& LocalFrame::eventHandler() const | 229 inline EventHandler& LocalFrame::eventHandler() const |
| 238 { | 230 { |
| 239 ASSERT(m_eventHandler); | 231 ASSERT(m_eventHandler); |
| 240 return *m_eventHandler; | 232 return *m_eventHandler; |
| 241 } | 233 } |
| 242 | 234 |
| 243 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); | 235 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(), localFrame.isLocalFrame()); |
| 244 | 236 |
| 245 } // namespace WebCore | 237 } // namespace WebCore |
| 246 | 238 |
| 239 // During refactoring, there are some places where we need to do type conversion s that | |
| 240 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte d out. | |
| 241 // At that time this #define will be removed and all the uses of it will need to be corrected. | |
| 242 #define toLocalFrameTemporary toLocalFrame | |
|
eseidel
2014/03/24 16:12:48
I would have just defined the function:
LocalFram
kenrb
2014/03/24 16:27:40
The DEFINE_TYPE_CASTS macro ends up creating 4 fun
| |
| 243 | |
| 247 #endif // LocalFrame_h | 244 #endif // LocalFrame_h |
| OLD | NEW |