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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
73 | 73 |
74 virtual void detach() override; | 74 virtual void detach() override; |
75 | 75 |
76 void addDestructionObserver(FrameDestructionObserver*); | 76 void addDestructionObserver(FrameDestructionObserver*); |
77 void removeDestructionObserver(FrameDestructionObserver*); | 77 void removeDestructionObserver(FrameDestructionObserver*); |
78 | 78 |
79 void willDetachFrameHost(); | 79 void willDetachFrameHost(); |
80 void detachFromFrameHost(); | 80 void detachFromFrameHost(); |
81 | 81 |
82 virtual void setDOMWindow(PassRefPtr<LocalDOMWindow>) override; | 82 virtual void setDOMWindow(PassRefPtr<LocalDOMWindow>) override; |
| 83 void setDocument(Document*); |
83 FrameView* view() const; | 84 FrameView* view() const; |
84 Document* document() const; | 85 Document* document() const; |
85 | 86 |
86 RenderView* contentRenderer() const; // Root of the render tree for the
document contained in this frame. | 87 RenderView* contentRenderer() const; // Root of the render tree for the
document contained in this frame. |
87 | 88 |
88 Editor& editor() const; | 89 Editor& editor() const; |
89 EventHandler& eventHandler() const; | 90 EventHandler& eventHandler() const; |
90 NewEventHandler& newEventHandler() const; | 91 NewEventHandler& newEventHandler() const; |
91 MojoLoader& mojoLoader() const { return *m_mojoLoader; } | 92 MojoLoader& mojoLoader() const { return *m_mojoLoader; } |
92 FrameSelection& selection() const; | 93 FrameSelection& selection() const; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 RefPtr<FrameView> m_view; | 128 RefPtr<FrameView> m_view; |
128 | 129 |
129 OwnPtr<DartController> m_dart; | 130 OwnPtr<DartController> m_dart; |
130 const OwnPtr<Editor> m_editor; | 131 const OwnPtr<Editor> m_editor; |
131 const OwnPtr<SpellChecker> m_spellChecker; | 132 const OwnPtr<SpellChecker> m_spellChecker; |
132 const OwnPtr<FrameSelection> m_selection; | 133 const OwnPtr<FrameSelection> m_selection; |
133 const OwnPtr<EventHandler> m_eventHandler; | 134 const OwnPtr<EventHandler> m_eventHandler; |
134 const OwnPtr<NewEventHandler> m_newEventHandler; | 135 const OwnPtr<NewEventHandler> m_newEventHandler; |
135 const OwnPtr<FrameConsole> m_console; | 136 const OwnPtr<FrameConsole> m_console; |
136 OwnPtr<InputMethodController> m_inputMethodController; | 137 OwnPtr<InputMethodController> m_inputMethodController; |
| 138 |
| 139 Document* m_document; |
137 }; | 140 }; |
138 | 141 |
139 inline FrameView* LocalFrame::view() const | 142 inline FrameView* LocalFrame::view() const |
140 { | 143 { |
141 return m_view.get(); | 144 return m_view.get(); |
142 } | 145 } |
143 | 146 |
144 inline DartController& LocalFrame::dart() | 147 inline DartController& LocalFrame::dart() |
145 { | 148 { |
146 return *m_dart; | 149 return *m_dart; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
186 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true); | 189 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true); |
187 | 190 |
188 } // namespace blink | 191 } // namespace blink |
189 | 192 |
190 // During refactoring, there are some places where we need to do type conversion
s that | 193 // During refactoring, there are some places where we need to do type conversion
s that |
191 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 194 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
192 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 195 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
193 #define toLocalFrameTemporary toLocalFrame | 196 #define toLocalFrameTemporary toLocalFrame |
194 | 197 |
195 #endif // SKY_ENGINE_CORE_FRAME_LOCALFRAME_H_ | 198 #endif // SKY_ENGINE_CORE_FRAME_LOCALFRAME_H_ |
OLD | NEW |