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 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 bool shouldReuseDefaultView(const KURL&) const; | 168 bool shouldReuseDefaultView(const KURL&) const; |
169 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 169 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
170 | 170 |
171 #if ENABLE(OILPAN) | 171 #if ENABLE(OILPAN) |
172 void registerPluginElement(HTMLPlugInElement*); | 172 void registerPluginElement(HTMLPlugInElement*); |
173 void unregisterPluginElement(HTMLPlugInElement*); | 173 void unregisterPluginElement(HTMLPlugInElement*); |
174 void clearWeakMembers(Visitor*); | 174 void clearWeakMembers(Visitor*); |
175 #endif | 175 #endif |
176 DisplayItemClient displayItemClient() const { return toDisplayItemClient
(this); } | 176 DisplayItemClient displayItemClient() const { return toDisplayItemClient
(this); } |
177 | 177 |
| 178 void setShouldSendDPRHint() { m_shouldSendDPRHint = true; } |
| 179 void setShouldSendRWHint() { m_shouldSendRWHint = true; } |
| 180 bool shouldSendDPRHint() { return m_shouldSendDPRHint; } |
| 181 bool shouldSendRWHint() { return m_shouldSendRWHint; } |
| 182 |
178 // ======== | 183 // ======== |
179 | 184 |
180 private: | 185 private: |
181 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); | 186 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*); |
182 | 187 |
183 String localLayerTreeAsText(unsigned flags) const; | 188 String localLayerTreeAsText(unsigned flags) const; |
184 | 189 |
185 void detachView(); | 190 void detachView(); |
186 | 191 |
187 // Paints the area for the given rect into a DragImage, with the given d
isplayItemClient id attached. | 192 // Paints the area for the given rect into a DragImage, with the given d
isplayItemClient id attached. |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // See LocalFrame::clearWeakMembers(). | 226 // See LocalFrame::clearWeakMembers(). |
222 HashSet<HTMLPlugInElement*> m_pluginElements; | 227 HashSet<HTMLPlugInElement*> m_pluginElements; |
223 #endif | 228 #endif |
224 | 229 |
225 float m_pageZoomFactor; | 230 float m_pageZoomFactor; |
226 float m_textZoomFactor; | 231 float m_textZoomFactor; |
227 | 232 |
228 bool m_inViewSourceMode; | 233 bool m_inViewSourceMode; |
229 | 234 |
230 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; | 235 RefPtrWillBeMember<InstrumentingAgents> m_instrumentingAgents; |
| 236 |
| 237 bool m_shouldSendDPRHint; |
| 238 bool m_shouldSendRWHint; |
231 }; | 239 }; |
232 | 240 |
233 inline void LocalFrame::init() | 241 inline void LocalFrame::init() |
234 { | 242 { |
235 m_loader.init(); | 243 m_loader.init(); |
236 } | 244 } |
237 | 245 |
238 inline LocalDOMWindow* LocalFrame::localDOMWindow() const | 246 inline LocalDOMWindow* LocalFrame::localDOMWindow() const |
239 { | 247 { |
240 return m_domWindow.get(); | 248 return m_domWindow.get(); |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(),
localFrame.isLocalFrame()); | 312 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, localFrame->isLocalFrame(),
localFrame.isLocalFrame()); |
305 | 313 |
306 } // namespace blink | 314 } // namespace blink |
307 | 315 |
308 // During refactoring, there are some places where we need to do type conversion
s that | 316 // During refactoring, there are some places where we need to do type conversion
s that |
309 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 317 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
310 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 318 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
311 #define toLocalFrameTemporary toLocalFrame | 319 #define toLocalFrameTemporary toLocalFrame |
312 | 320 |
313 #endif // LocalFrame_h | 321 #endif // LocalFrame_h |
OLD | NEW |