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 15 matching lines...) Expand all Loading... |
26 */ | 26 */ |
27 | 27 |
28 #ifndef LocalFrame_h | 28 #ifndef LocalFrame_h |
29 #define LocalFrame_h | 29 #define LocalFrame_h |
30 | 30 |
31 #include "core/CoreExport.h" | 31 #include "core/CoreExport.h" |
32 #include "core/dom/WeakIdentifierMap.h" | 32 #include "core/dom/WeakIdentifierMap.h" |
33 #include "core/frame/Frame.h" | 33 #include "core/frame/Frame.h" |
34 #include "core/frame/LocalFrameLifecycleNotifier.h" | 34 #include "core/frame/LocalFrameLifecycleNotifier.h" |
35 #include "core/frame/LocalFrameLifecycleObserver.h" | 35 #include "core/frame/LocalFrameLifecycleObserver.h" |
| 36 #include "core/inspector/InstrumentingSessions.h" |
36 #include "core/loader/FrameLoader.h" | 37 #include "core/loader/FrameLoader.h" |
37 #include "core/page/FrameTree.h" | 38 #include "core/page/FrameTree.h" |
38 #include "core/paint/PaintPhase.h" | 39 #include "core/paint/PaintPhase.h" |
39 #include "platform/Supplementable.h" | 40 #include "platform/Supplementable.h" |
40 #include "platform/graphics/ImageOrientation.h" | 41 #include "platform/graphics/ImageOrientation.h" |
41 #include "platform/graphics/paint/DisplayItem.h" | 42 #include "platform/graphics/paint/DisplayItem.h" |
42 #include "platform/heap/Handle.h" | 43 #include "platform/heap/Handle.h" |
43 #include "platform/scroll/ScrollTypes.h" | 44 #include "platform/scroll/ScrollTypes.h" |
44 #include "wtf/HashSet.h" | 45 #include "wtf/HashSet.h" |
45 | 46 |
46 namespace blink { | 47 namespace blink { |
47 | 48 |
48 class Color; | 49 class Color; |
49 class Document; | 50 class Document; |
50 class DragImage; | 51 class DragImage; |
51 class Editor; | 52 class Editor; |
52 template <typename Traversal> class EditingAlgorithm; | 53 template <typename Traversal> class EditingAlgorithm; |
53 class Element; | 54 class Element; |
54 template <typename Strategy> class EphemeralRangeTemplate; | 55 template <typename Strategy> class EphemeralRangeTemplate; |
55 class EventHandler; | 56 class EventHandler; |
56 class FloatSize; | 57 class FloatSize; |
57 class FrameConsole; | 58 class FrameConsole; |
58 class FrameSelection; | 59 class FrameSelection; |
59 class FrameView; | 60 class FrameView; |
60 class HTMLPlugInElement; | 61 class HTMLPlugInElement; |
61 class InputMethodController; | 62 class InputMethodController; |
62 class IntPoint; | 63 class IntPoint; |
63 class IntSize; | 64 class IntSize; |
64 class InstrumentingAgents; | |
65 class LayoutViewItem; | 65 class LayoutViewItem; |
66 class LocalDOMWindow; | 66 class LocalDOMWindow; |
67 class NavigationScheduler; | 67 class NavigationScheduler; |
68 class Node; | 68 class Node; |
69 class NodeTraversal; | 69 class NodeTraversal; |
70 class Range; | 70 class Range; |
71 class LayoutView; | 71 class LayoutView; |
72 class TreeScope; | 72 class TreeScope; |
73 class ScriptController; | 73 class ScriptController; |
74 class ServiceRegistry; | 74 class ServiceRegistry; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 FrameConsole& console() const; | 127 FrameConsole& console() const; |
128 | 128 |
129 void didChangeVisibilityState(); | 129 void didChangeVisibilityState(); |
130 | 130 |
131 // This method is used to get the highest level LocalFrame in this | 131 // This method is used to get the highest level LocalFrame in this |
132 // frame's in-process subtree. | 132 // frame's in-process subtree. |
133 // FIXME: This is a temporary hack to support RemoteFrames, and callers | 133 // FIXME: This is a temporary hack to support RemoteFrames, and callers |
134 // should be updated to avoid storing things on the main frame. | 134 // should be updated to avoid storing things on the main frame. |
135 LocalFrame* localFrameRoot(); | 135 LocalFrame* localFrameRoot(); |
136 | 136 |
137 InstrumentingAgents* instrumentingAgents() const { return m_instrumentingAge
nts.get(); } | 137 InstrumentingSessions* instrumentingSessions() { return m_instrumentingSessi
ons.get(); } |
138 | 138 |
139 // ======== All public functions below this point are candidates to move out
of LocalFrame into another class. ======== | 139 // ======== All public functions below this point are candidates to move out
of LocalFrame into another class. ======== |
140 | 140 |
141 // See GraphicsLayerClient.h for accepted flags. | 141 // See GraphicsLayerClient.h for accepted flags. |
142 String layerTreeAsText(unsigned flags = 0) const; | 142 String layerTreeAsText(unsigned flags = 0) const; |
143 | 143 |
144 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSize&
originalPageSize, float maximumShrinkRatio); | 144 void setPrinting(bool printing, const FloatSize& pageSize, const FloatSize&
originalPageSize, float maximumShrinkRatio); |
145 bool shouldUsePrintingLayout() const; | 145 bool shouldUsePrintingLayout() const; |
146 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const F
loatSize& expectedSize); | 146 FloatSize resizePageRectsKeepingRatio(const FloatSize& originalSize, const F
loatSize& expectedSize); |
147 | 147 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 const Member<InputMethodController> m_inputMethodController; | 216 const Member<InputMethodController> m_inputMethodController; |
217 OwnPtr<WebFrameScheduler> m_frameScheduler; | 217 OwnPtr<WebFrameScheduler> m_frameScheduler; |
218 | 218 |
219 int m_navigationDisableCount; | 219 int m_navigationDisableCount; |
220 | 220 |
221 float m_pageZoomFactor; | 221 float m_pageZoomFactor; |
222 float m_textZoomFactor; | 222 float m_textZoomFactor; |
223 | 223 |
224 bool m_inViewSourceMode; | 224 bool m_inViewSourceMode; |
225 | 225 |
226 Member<InstrumentingAgents> m_instrumentingAgents; | 226 Member<InstrumentingSessions> m_instrumentingSessions; |
227 | 227 |
228 ServiceRegistry* const m_serviceRegistry; | 228 ServiceRegistry* const m_serviceRegistry; |
229 }; | 229 }; |
230 | 230 |
231 inline void LocalFrame::init() | 231 inline void LocalFrame::init() |
232 { | 232 { |
233 m_loader.init(); | 233 m_loader.init(); |
234 } | 234 } |
235 | 235 |
236 inline LocalDOMWindow* LocalFrame::localDOMWindow() const | 236 inline LocalDOMWindow* LocalFrame::localDOMWindow() const |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
311 explicit FrameNavigationDisabler(LocalFrame&); | 311 explicit FrameNavigationDisabler(LocalFrame&); |
312 ~FrameNavigationDisabler(); | 312 ~FrameNavigationDisabler(); |
313 | 313 |
314 private: | 314 private: |
315 Member<LocalFrame> m_frame; | 315 Member<LocalFrame> m_frame; |
316 }; | 316 }; |
317 | 317 |
318 } // namespace blink | 318 } // namespace blink |
319 | 319 |
320 #endif // LocalFrame_h | 320 #endif // LocalFrame_h |
OLD | NEW |