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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 template <typename Traversal> class EditingAlgorithm; | 52 template <typename Traversal> class EditingAlgorithm; |
53 class Element; | 53 class Element; |
54 template <typename Strategy> class EphemeralRangeTemplate; | 54 template <typename Strategy> class EphemeralRangeTemplate; |
55 class EventHandler; | 55 class EventHandler; |
56 class FloatSize; | 56 class FloatSize; |
57 class FrameConsole; | 57 class FrameConsole; |
58 class FrameSelection; | 58 class FrameSelection; |
59 class FrameView; | 59 class FrameView; |
60 class HTMLPlugInElement; | 60 class HTMLPlugInElement; |
61 class InputMethodController; | 61 class InputMethodController; |
| 62 class InterfaceProvider; |
62 class IntPoint; | 63 class IntPoint; |
63 class IntSize; | 64 class IntSize; |
64 class InstrumentingAgents; | 65 class InstrumentingAgents; |
65 class JSONObject; | 66 class JSONObject; |
66 class LayoutView; | 67 class LayoutView; |
67 class LayoutViewItem; | 68 class LayoutViewItem; |
68 class LocalDOMWindow; | 69 class LocalDOMWindow; |
69 class NavigationScheduler; | 70 class NavigationScheduler; |
70 class Node; | 71 class Node; |
71 class NodeTraversal; | 72 class NodeTraversal; |
72 template <typename Strategy> class PositionWithAffinityTemplate; | 73 template <typename Strategy> class PositionWithAffinityTemplate; |
73 class PluginData; | 74 class PluginData; |
74 class Range; | 75 class Range; |
75 class ScriptController; | 76 class ScriptController; |
76 class ServiceRegistry; | |
77 class SpellChecker; | 77 class SpellChecker; |
78 class WebFrameHostScheduler; | 78 class WebFrameHostScheduler; |
79 class WebFrameScheduler; | 79 class WebFrameScheduler; |
80 | 80 |
81 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; | 81 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; |
82 | 82 |
83 class CORE_EXPORT LocalFrame final : public Frame, public LocalFrameLifecycleNot
ifier, public Supplementable<LocalFrame> { | 83 class CORE_EXPORT LocalFrame final : public Frame, public LocalFrameLifecycleNot
ifier, public Supplementable<LocalFrame> { |
84 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 84 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
85 public: | 85 public: |
86 static LocalFrame* create(FrameLoaderClient*, FrameHost*, FrameOwner*, Servi
ceRegistry* = nullptr); | 86 static LocalFrame* create(FrameLoaderClient*, FrameHost*, FrameOwner*, Inter
faceProvider* = nullptr); |
87 | 87 |
88 void init(); | 88 void init(); |
89 void setView(FrameView*); | 89 void setView(FrameView*); |
90 void createView(const IntSize&, const Color&, bool, | 90 void createView(const IntSize&, const Color&, bool, |
91 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, | 91 ScrollbarMode = ScrollbarAuto, bool horizontalLock = false, |
92 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); | 92 ScrollbarMode = ScrollbarAuto, bool verticalLock = false); |
93 | 93 |
94 // Frame overrides: | 94 // Frame overrides: |
95 ~LocalFrame() override; | 95 ~LocalFrame() override; |
96 DECLARE_VIRTUAL_TRACE(); | 96 DECLARE_VIRTUAL_TRACE(); |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 void removeSpellingMarkersUnderWords(const Vector<String>& words); | 172 void removeSpellingMarkersUnderWords(const Vector<String>& words); |
173 | 173 |
174 bool shouldThrottleRendering() const; | 174 bool shouldThrottleRendering() const; |
175 | 175 |
176 // Returns the frame scheduler, creating one if needed. | 176 // Returns the frame scheduler, creating one if needed. |
177 WebFrameScheduler* frameScheduler(); | 177 WebFrameScheduler* frameScheduler(); |
178 void scheduleVisualUpdateUnlessThrottled(); | 178 void scheduleVisualUpdateUnlessThrottled(); |
179 | 179 |
180 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 180 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
181 | 181 |
182 ServiceRegistry* serviceRegistry() { return m_serviceRegistry; } | 182 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } |
183 | 183 |
184 FrameLoaderClient* client() const; | 184 FrameLoaderClient* client() const; |
185 | 185 |
186 PluginData* pluginData() const; | 186 PluginData* pluginData() const; |
187 | 187 |
188 private: | 188 private: |
189 friend class FrameNavigationDisabler; | 189 friend class FrameNavigationDisabler; |
190 | 190 |
191 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, ServiceRegistry*); | 191 LocalFrame(FrameLoaderClient*, FrameHost*, FrameOwner*, InterfaceProvider*); |
192 | 192 |
193 // Internal Frame helper overrides: | 193 // Internal Frame helper overrides: |
194 WindowProxyManager* getWindowProxyManager() const override; | 194 WindowProxyManager* getWindowProxyManager() const override; |
195 // Intentionally private to prevent redundant checks when the type is | 195 // Intentionally private to prevent redundant checks when the type is |
196 // already LocalFrame. | 196 // already LocalFrame. |
197 bool isLocalFrame() const override { return true; } | 197 bool isLocalFrame() const override { return true; } |
198 bool isRemoteFrame() const override { return false; } | 198 bool isRemoteFrame() const override { return false; } |
199 | 199 |
200 void enableNavigation() { --m_navigationDisableCount; } | 200 void enableNavigation() { --m_navigationDisableCount; } |
201 void disableNavigation() { ++m_navigationDisableCount; } | 201 void disableNavigation() { ++m_navigationDisableCount; } |
(...skipping 18 matching lines...) Expand all Loading... |
220 | 220 |
221 int m_navigationDisableCount; | 221 int m_navigationDisableCount; |
222 | 222 |
223 float m_pageZoomFactor; | 223 float m_pageZoomFactor; |
224 float m_textZoomFactor; | 224 float m_textZoomFactor; |
225 | 225 |
226 bool m_inViewSourceMode; | 226 bool m_inViewSourceMode; |
227 | 227 |
228 Member<InstrumentingAgents> m_instrumentingAgents; | 228 Member<InstrumentingAgents> m_instrumentingAgents; |
229 | 229 |
230 ServiceRegistry* const m_serviceRegistry; | 230 InterfaceProvider* const m_interfaceProvider; |
231 }; | 231 }; |
232 | 232 |
233 inline void LocalFrame::init() | 233 inline void LocalFrame::init() |
234 { | 234 { |
235 m_loader.init(); | 235 m_loader.init(); |
236 } | 236 } |
237 | 237 |
238 inline LocalDOMWindow* LocalFrame::localDOMWindow() const | 238 inline LocalDOMWindow* LocalFrame::localDOMWindow() const |
239 { | 239 { |
240 return m_domWindow.get(); | 240 return m_domWindow.get(); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
337 explicit ScopedFrameBlamer(LocalFrame*); | 337 explicit ScopedFrameBlamer(LocalFrame*); |
338 ~ScopedFrameBlamer(); | 338 ~ScopedFrameBlamer(); |
339 | 339 |
340 private: | 340 private: |
341 Member<LocalFrame> m_frame; | 341 Member<LocalFrame> m_frame; |
342 }; | 342 }; |
343 | 343 |
344 } // namespace blink | 344 } // namespace blink |
345 | 345 |
346 #endif // LocalFrame_h | 346 #endif // LocalFrame_h |
OLD | NEW |