OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv
ed. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserv
ed. |
3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class DragController; | 55 class DragController; |
56 class EditorClient; | 56 class EditorClient; |
57 class FocusController; | 57 class FocusController; |
58 class Frame; | 58 class Frame; |
59 class FrameHost; | 59 class FrameHost; |
60 class PluginData; | 60 class PluginData; |
61 class PointerLockController; | 61 class PointerLockController; |
62 class ScrollingCoordinator; | 62 class ScrollingCoordinator; |
63 class Settings; | 63 class Settings; |
64 class SpellCheckerClient; | 64 class SpellCheckerClient; |
| 65 class UndoStack; |
65 class ValidationMessageClient; | 66 class ValidationMessageClient; |
66 class WebLayerTreeView; | 67 class WebLayerTreeView; |
67 | 68 |
68 typedef uint64_t LinkHash; | 69 typedef uint64_t LinkHash; |
69 | 70 |
70 float deviceScaleFactor(LocalFrame*); | 71 float deviceScaleFactor(LocalFrame*); |
71 | 72 |
72 class CORE_EXPORT Page final : public GarbageCollectedFinalized<Page>, public Su
pplementable<Page>, public PageLifecycleNotifier, public SettingsDelegate { | 73 class CORE_EXPORT Page final : public GarbageCollectedFinalized<Page>, public Su
pplementable<Page>, public PageLifecycleNotifier, public SettingsDelegate { |
73 USING_GARBAGE_COLLECTED_MIXIN(Page); | 74 USING_GARBAGE_COLLECTED_MIXIN(Page); |
74 WTF_MAKE_NONCOPYABLE(Page); | 75 WTF_MAKE_NONCOPYABLE(Page); |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void setNeedsRecalcStyleInAllFrames(); | 117 void setNeedsRecalcStyleInAllFrames(); |
117 void updateAcceleratedCompositingSettings(); | 118 void updateAcceleratedCompositingSettings(); |
118 | 119 |
119 ViewportDescription viewportDescription() const; | 120 ViewportDescription viewportDescription() const; |
120 | 121 |
121 static void refreshPlugins(); | 122 static void refreshPlugins(); |
122 PluginData* pluginData() const; | 123 PluginData* pluginData() const; |
123 | 124 |
124 EditorClient& editorClient() const { return *m_editorClient; } | 125 EditorClient& editorClient() const { return *m_editorClient; } |
125 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien
t; } | 126 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien
t; } |
| 127 UndoStack& undoStack() const { return *m_undoStack; } |
126 | 128 |
127 void setMainFrame(Frame*); | 129 void setMainFrame(Frame*); |
128 Frame* mainFrame() const { return m_mainFrame; } | 130 Frame* mainFrame() const { return m_mainFrame; } |
129 // Escape hatch for existing code that assumes that the root frame is | 131 // Escape hatch for existing code that assumes that the root frame is |
130 // always a LocalFrame. With OOPI, this is not always the case. Code that | 132 // always a LocalFrame. With OOPI, this is not always the case. Code that |
131 // depends on this will generally have to be rewritten to propagate any | 133 // depends on this will generally have to be rewritten to propagate any |
132 // necessary state through all renderer processes for that page and/or | 134 // necessary state through all renderer processes for that page and/or |
133 // coordinate/rely on the browser process to help dispatch/coordinate work. | 135 // coordinate/rely on the browser process to help dispatch/coordinate work. |
134 LocalFrame* deprecatedLocalMainFrame() const { return toLocalFrame(m_mainFra
me); } | 136 LocalFrame* deprecatedLocalMainFrame() const { return toLocalFrame(m_mainFra
me); } |
135 | 137 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 219 |
218 Member<PageAnimator> m_animator; | 220 Member<PageAnimator> m_animator; |
219 const Member<AutoscrollController> m_autoscrollController; | 221 const Member<AutoscrollController> m_autoscrollController; |
220 Member<ChromeClient> m_chromeClient; | 222 Member<ChromeClient> m_chromeClient; |
221 const Member<DragCaretController> m_dragCaretController; | 223 const Member<DragCaretController> m_dragCaretController; |
222 const Member<DragController> m_dragController; | 224 const Member<DragController> m_dragController; |
223 const Member<FocusController> m_focusController; | 225 const Member<FocusController> m_focusController; |
224 const Member<ContextMenuController> m_contextMenuController; | 226 const Member<ContextMenuController> m_contextMenuController; |
225 const Member<PointerLockController> m_pointerLockController; | 227 const Member<PointerLockController> m_pointerLockController; |
226 Member<ScrollingCoordinator> m_scrollingCoordinator; | 228 Member<ScrollingCoordinator> m_scrollingCoordinator; |
| 229 const Member<UndoStack> m_undoStack; |
227 | 230 |
228 // Typically, the main frame and Page should both be owned by the embedder, | 231 // Typically, the main frame and Page should both be owned by the embedder, |
229 // which must call Page::willBeDestroyed() prior to destroying Page. This | 232 // which must call Page::willBeDestroyed() prior to destroying Page. This |
230 // call detaches the main frame and clears this pointer, thus ensuring that | 233 // call detaches the main frame and clears this pointer, thus ensuring that |
231 // this field only references a live main frame. | 234 // this field only references a live main frame. |
232 // | 235 // |
233 // However, there are several locations (InspectorOverlay, SVGImage, and | 236 // However, there are several locations (InspectorOverlay, SVGImage, and |
234 // WebPagePopupImpl) which don't hold a reference to the main frame at all | 237 // WebPagePopupImpl) which don't hold a reference to the main frame at all |
235 // after creating it. These are still safe because they always create a | 238 // after creating it. These are still safe because they always create a |
236 // Frame with a FrameView. FrameView and Frame hold references to each | 239 // Frame with a FrameView. FrameView and Frame hold references to each |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 Member<FrameHost> m_frameHost; | 272 Member<FrameHost> m_frameHost; |
270 | 273 |
271 Timer<Page> m_timerForCompressStrings; | 274 Timer<Page> m_timerForCompressStrings; |
272 }; | 275 }; |
273 | 276 |
274 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 277 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
275 | 278 |
276 } // namespace blink | 279 } // namespace blink |
277 | 280 |
278 #endif // Page_h | 281 #endif // Page_h |
OLD | NEW |