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 | 8 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights |
9 * reserved. | 9 * reserved. |
10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 class IdleSpellCheckCallback; | 61 class IdleSpellCheckCallback; |
62 class InputMethodController; | 62 class InputMethodController; |
63 class InstrumentingAgents; | 63 class InstrumentingAgents; |
64 class InterfaceProvider; | 64 class InterfaceProvider; |
65 class InterfaceRegistry; | 65 class InterfaceRegistry; |
66 class IntPoint; | 66 class IntPoint; |
67 class IntSize; | 67 class IntSize; |
68 class LayoutView; | 68 class LayoutView; |
69 class LayoutViewItem; | 69 class LayoutViewItem; |
70 class LocalDOMWindow; | 70 class LocalDOMWindow; |
| 71 class LocalFrameClient; |
71 class NavigationScheduler; | 72 class NavigationScheduler; |
72 class Node; | 73 class Node; |
73 class NodeTraversal; | 74 class NodeTraversal; |
74 class PerformanceMonitor; | 75 class PerformanceMonitor; |
75 template <typename Strategy> | 76 template <typename Strategy> |
76 class PositionWithAffinityTemplate; | 77 class PositionWithAffinityTemplate; |
77 class PluginData; | 78 class PluginData; |
78 class ScriptController; | 79 class ScriptController; |
79 class SpellChecker; | 80 class SpellChecker; |
80 class WebFrameScheduler; | 81 class WebFrameScheduler; |
81 | 82 |
82 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; | 83 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<LocalFrame>; |
83 | 84 |
84 class CORE_EXPORT LocalFrame final : public Frame, | 85 class CORE_EXPORT LocalFrame final : public Frame, |
85 public Supplementable<LocalFrame> { | 86 public Supplementable<LocalFrame> { |
86 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); | 87 USING_GARBAGE_COLLECTED_MIXIN(LocalFrame); |
87 | 88 |
88 friend class LocalFrameTest; | 89 friend class LocalFrameTest; |
89 | 90 |
90 public: | 91 public: |
91 static LocalFrame* create(FrameLoaderClient*, | 92 static LocalFrame* create(LocalFrameClient*, |
92 FrameHost*, | 93 FrameHost*, |
93 FrameOwner*, | 94 FrameOwner*, |
94 InterfaceProvider* = nullptr, | 95 InterfaceProvider* = nullptr, |
95 InterfaceRegistry* = nullptr); | 96 InterfaceRegistry* = nullptr); |
96 | 97 |
97 void init(); | 98 void init(); |
98 void setView(FrameView*); | 99 void setView(FrameView*); |
99 void createView(const IntSize&, | 100 void createView(const IntSize&, |
100 const Color&, | 101 const Color&, |
101 bool, | 102 bool, |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
211 | 212 |
212 // Returns the frame scheduler, creating one if needed. | 213 // Returns the frame scheduler, creating one if needed. |
213 WebFrameScheduler* frameScheduler(); | 214 WebFrameScheduler* frameScheduler(); |
214 void scheduleVisualUpdateUnlessThrottled(); | 215 void scheduleVisualUpdateUnlessThrottled(); |
215 | 216 |
216 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } | 217 bool isNavigationAllowed() const { return m_navigationDisableCount == 0; } |
217 | 218 |
218 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } | 219 InterfaceProvider* interfaceProvider() { return m_interfaceProvider; } |
219 InterfaceRegistry* interfaceRegistry() { return m_interfaceRegistry; } | 220 InterfaceRegistry* interfaceRegistry() { return m_interfaceRegistry; } |
220 | 221 |
221 FrameLoaderClient* client() const; | 222 LocalFrameClient* client() const; |
222 | 223 |
223 PluginData* pluginData() const; | 224 PluginData* pluginData() const; |
224 | 225 |
225 PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; } | 226 PerformanceMonitor* performanceMonitor() { return m_performanceMonitor; } |
226 | 227 |
227 private: | 228 private: |
228 friend class FrameNavigationDisabler; | 229 friend class FrameNavigationDisabler; |
229 | 230 |
230 LocalFrame(FrameLoaderClient*, | 231 LocalFrame(LocalFrameClient*, |
231 FrameHost*, | 232 FrameHost*, |
232 FrameOwner*, | 233 FrameOwner*, |
233 InterfaceProvider*, | 234 InterfaceProvider*, |
234 InterfaceRegistry*); | 235 InterfaceRegistry*); |
235 | 236 |
236 // Internal Frame helper overrides: | 237 // Internal Frame helper overrides: |
237 WindowProxyManagerBase* getWindowProxyManager() const override; | 238 WindowProxyManagerBase* getWindowProxyManager() const override; |
238 // Intentionally private to prevent redundant checks when the type is | 239 // Intentionally private to prevent redundant checks when the type is |
239 // already LocalFrame. | 240 // already LocalFrame. |
240 bool isLocalFrame() const override { return true; } | 241 bool isLocalFrame() const override { return true; } |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 explicit ScopedFrameBlamer(LocalFrame*); | 379 explicit ScopedFrameBlamer(LocalFrame*); |
379 ~ScopedFrameBlamer(); | 380 ~ScopedFrameBlamer(); |
380 | 381 |
381 private: | 382 private: |
382 Member<LocalFrame> m_frame; | 383 Member<LocalFrame> m_frame; |
383 }; | 384 }; |
384 | 385 |
385 } // namespace blink | 386 } // namespace blink |
386 | 387 |
387 #endif // LocalFrame_h | 388 #endif // LocalFrame_h |
OLD | NEW |