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 20 matching lines...) Expand all Loading... |
31 #include "AdjustViewSizeOrNot.h" | 31 #include "AdjustViewSizeOrNot.h" |
32 #include "AnimationController.h" | 32 #include "AnimationController.h" |
33 #include "DragImage.h" | 33 #include "DragImage.h" |
34 #include "Editor.h" | 34 #include "Editor.h" |
35 #include "EventHandler.h" | 35 #include "EventHandler.h" |
36 #include "FrameLoader.h" | 36 #include "FrameLoader.h" |
37 #include "FrameSelection.h" | 37 #include "FrameSelection.h" |
38 #include "FrameTree.h" | 38 #include "FrameTree.h" |
39 #include "NavigationScheduler.h" | 39 #include "NavigationScheduler.h" |
40 #include "ScriptController.h" | 40 #include "ScriptController.h" |
41 #include "UserScriptTypes.h" | |
42 | 41 |
43 namespace WebCore { | 42 namespace WebCore { |
44 | 43 |
45 class Document; | 44 class Document; |
46 class FrameDestructionObserver; | 45 class FrameDestructionObserver; |
47 class FrameView; | 46 class FrameView; |
48 class HTMLTableCellElement; | 47 class HTMLTableCellElement; |
49 class RegularExpression; | 48 class RegularExpression; |
50 class RenderPart; | 49 class RenderPart; |
51 | 50 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 RenderPart* ownerRenderer() const; // Renderer for the element that cont
ains this frame. | 100 RenderPart* ownerRenderer() const; // Renderer for the element that cont
ains this frame. |
102 | 101 |
103 void dispatchVisibilityStateChangeEvent(); | 102 void dispatchVisibilityStateChangeEvent(); |
104 | 103 |
105 void reportMemoryUsage(MemoryObjectInfo*) const; | 104 void reportMemoryUsage(MemoryObjectInfo*) const; |
106 | 105 |
107 // ======== All public functions below this point are candidates to move out
of Frame into another class. ======== | 106 // ======== All public functions below this point are candidates to move out
of Frame into another class. ======== |
108 | 107 |
109 bool inScope(TreeScope*) const; | 108 bool inScope(TreeScope*) const; |
110 | 109 |
111 void injectUserScripts(UserScriptInjectionTime); | |
112 | |
113 String layerTreeAsText(LayerTreeFlags = 0) const; | 110 String layerTreeAsText(LayerTreeFlags = 0) const; |
114 String trackedRepaintRectsAsText() const; | 111 String trackedRepaintRectsAsText() const; |
115 | 112 |
116 static Frame* frameForWidget(const Widget*); | 113 static Frame* frameForWidget(const Widget*); |
117 | 114 |
118 Settings* settings() const; // can be NULL | 115 Settings* settings() const; // can be NULL |
119 | 116 |
120 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi
ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot); | 117 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSi
ze& originalPageSize, float maximumShrinkRatio, AdjustViewSizeOrNot); |
121 bool shouldUsePrintingLayout() const; | 118 bool shouldUsePrintingLayout() const; |
122 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con
st FloatSize& expectedSize); | 119 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, con
st FloatSize& expectedSize); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
167 // Should only be called on the main frame of a page. | 164 // Should only be called on the main frame of a page. |
168 void notifyChromeClientWheelEventHandlerCountChanged() const; | 165 void notifyChromeClientWheelEventHandlerCountChanged() const; |
169 | 166 |
170 bool isURLAllowed(const KURL&) const; | 167 bool isURLAllowed(const KURL&) const; |
171 | 168 |
172 // ======== | 169 // ======== |
173 | 170 |
174 private: | 171 private: |
175 Frame(Page*, HTMLFrameOwnerElement*, FrameLoaderClient*); | 172 Frame(Page*, HTMLFrameOwnerElement*, FrameLoaderClient*); |
176 | 173 |
177 void injectUserScriptsForWorld(DOMWrapperWorld*, const UserScriptVector&
, UserScriptInjectionTime); | |
178 | |
179 HashSet<FrameDestructionObserver*> m_destructionObservers; | 174 HashSet<FrameDestructionObserver*> m_destructionObservers; |
180 | 175 |
181 Page* m_page; | 176 Page* m_page; |
182 mutable FrameTree m_treeNode; | 177 mutable FrameTree m_treeNode; |
183 mutable FrameLoader m_loader; | 178 mutable FrameLoader m_loader; |
184 mutable NavigationScheduler m_navigationScheduler; | 179 mutable NavigationScheduler m_navigationScheduler; |
185 | 180 |
186 HTMLFrameOwnerElement* m_ownerElement; | 181 HTMLFrameOwnerElement* m_ownerElement; |
187 RefPtr<FrameView> m_view; | 182 RefPtr<FrameView> m_view; |
188 RefPtr<Document> m_doc; | 183 RefPtr<Document> m_doc; |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 } | 277 } |
283 | 278 |
284 inline EventHandler* Frame::eventHandler() const | 279 inline EventHandler* Frame::eventHandler() const |
285 { | 280 { |
286 return &m_eventHandler; | 281 return &m_eventHandler; |
287 } | 282 } |
288 | 283 |
289 } // namespace WebCore | 284 } // namespace WebCore |
290 | 285 |
291 #endif // Frame_h | 286 #endif // Frame_h |
OLD | NEW |