| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 FrameConsole& console() const; | 98 FrameConsole& console() const; |
| 99 | 99 |
| 100 void didChangeVisibilityState(); | 100 void didChangeVisibilityState(); |
| 101 | 101 |
| 102 FrameLoaderClient* loaderClient() const; | 102 FrameLoaderClient* loaderClient() const; |
| 103 | 103 |
| 104 // ======== All public functions below this point are candidates to move out
of LocalFrame into another class. ======== | 104 // ======== All public functions below this point are candidates to move out
of LocalFrame into another class. ======== |
| 105 | 105 |
| 106 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& t
otalObjects, bool& isPartial); | 106 void countObjectsNeedingLayout(unsigned& needsLayoutObjects, unsigned& t
otalObjects, bool& isPartial); |
| 107 | 107 |
| 108 // See GraphicsLayerClient.h for accepted flags. | |
| 109 String layerTreeAsText(unsigned flags = 0) const; | |
| 110 | |
| 111 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con
st FloatSize& expectedSize); | 108 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con
st FloatSize& expectedSize); |
| 112 | 109 |
| 113 void deviceOrPageScaleFactorChanged(); | 110 void deviceOrPageScaleFactorChanged(); |
| 114 double devicePixelRatio() const; | 111 double devicePixelRatio() const; |
| 115 | 112 |
| 116 String selectedText() const; | 113 String selectedText() const; |
| 117 | 114 |
| 118 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint); | 115 VisiblePosition visiblePositionForPoint(const IntPoint& framePoint); |
| 119 Document* documentAtPoint(const IntPoint& windowPoint); | 116 Document* documentAtPoint(const IntPoint& windowPoint); |
| 120 PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint); | 117 PassRefPtr<Range> rangeForPoint(const IntPoint& framePoint); |
| 121 | 118 |
| 122 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 119 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
| 123 | 120 |
| 124 // ======== | 121 // ======== |
| 125 | 122 |
| 126 private: | 123 private: |
| 127 LocalFrame(FrameLoaderClient*, FrameHost*); | 124 LocalFrame(FrameLoaderClient*, FrameHost*); |
| 128 | 125 |
| 129 String localLayerTreeAsText(unsigned flags) const; | |
| 130 | |
| 131 HashSet<FrameDestructionObserver*> m_destructionObservers; | 126 HashSet<FrameDestructionObserver*> m_destructionObservers; |
| 132 mutable FrameLoader m_deprecatedLoader; | 127 mutable FrameLoader m_deprecatedLoader; |
| 133 OwnPtr<MojoLoader> m_mojoLoader; | 128 OwnPtr<MojoLoader> m_mojoLoader; |
| 134 | 129 |
| 135 RefPtr<FrameView> m_view; | 130 RefPtr<FrameView> m_view; |
| 136 | 131 |
| 137 OwnPtr<ScriptController> m_script; | 132 OwnPtr<ScriptController> m_script; |
| 138 const OwnPtr<Editor> m_editor; | 133 const OwnPtr<Editor> m_editor; |
| 139 const OwnPtr<SpellChecker> m_spellChecker; | 134 const OwnPtr<SpellChecker> m_spellChecker; |
| 140 const OwnPtr<FrameSelection> m_selection; | 135 const OwnPtr<FrameSelection> m_selection; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true); | 182 DEFINE_TYPE_CASTS(LocalFrame, Frame, localFrame, true, true); |
| 188 | 183 |
| 189 } // namespace blink | 184 } // namespace blink |
| 190 | 185 |
| 191 // During refactoring, there are some places where we need to do type conversion
s that | 186 // During refactoring, there are some places where we need to do type conversion
s that |
| 192 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. | 187 // will not be needed once all instances of LocalFrame and RemoteFrame are sorte
d out. |
| 193 // At that time this #define will be removed and all the uses of it will need to
be corrected. | 188 // At that time this #define will be removed and all the uses of it will need to
be corrected. |
| 194 #define toLocalFrameTemporary toLocalFrame | 189 #define toLocalFrameTemporary toLocalFrame |
| 195 | 190 |
| 196 #endif // SKY_ENGINE_CORE_FRAME_LOCALFRAME_H_ | 191 #endif // SKY_ENGINE_CORE_FRAME_LOCALFRAME_H_ |
| OLD | NEW |