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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 class ClientRectList; | 45 class ClientRectList; |
46 class ContextMenuClient; | 46 class ContextMenuClient; |
47 class ContextMenuController; | 47 class ContextMenuController; |
48 class Document; | 48 class Document; |
49 class DragCaretController; | 49 class DragCaretController; |
50 class DragClient; | 50 class DragClient; |
51 class DragController; | 51 class DragController; |
52 class EditorClient; | 52 class EditorClient; |
53 class FocusController; | 53 class FocusController; |
54 class Frame; | 54 class Frame; |
| 55 class FrameHost; |
55 class FrameSelection; | 56 class FrameSelection; |
56 class HaltablePlugin; | 57 class HaltablePlugin; |
57 class HistoryItem; | 58 class HistoryItem; |
58 class InspectorClient; | 59 class InspectorClient; |
59 class InspectorController; | 60 class InspectorController; |
60 class Node; | 61 class Node; |
61 class PageConsole; | 62 class PageConsole; |
62 class PageGroup; | 63 class PageGroup; |
63 class PageLifecycleNotifier; | 64 class PageLifecycleNotifier; |
64 class PlatformMouseEvent; | 65 class PlatformMouseEvent; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 EditorClient* editorClient; | 102 EditorClient* editorClient; |
102 DragClient* dragClient; | 103 DragClient* dragClient; |
103 InspectorClient* inspectorClient; | 104 InspectorClient* inspectorClient; |
104 BackForwardClient* backForwardClient; | 105 BackForwardClient* backForwardClient; |
105 SpellCheckerClient* spellCheckerClient; | 106 SpellCheckerClient* spellCheckerClient; |
106 }; | 107 }; |
107 | 108 |
108 explicit Page(PageClients&); | 109 explicit Page(PageClients&); |
109 ~Page(); | 110 ~Page(); |
110 | 111 |
| 112 FrameHost& frameHost() { return *m_frameHost; } |
| 113 |
111 void setNeedsRecalcStyleInAllFrames(); | 114 void setNeedsRecalcStyleInAllFrames(); |
112 | 115 |
113 ViewportDescription viewportDescription() const; | 116 ViewportDescription viewportDescription() const; |
114 | 117 |
115 static void refreshPlugins(bool reload); | 118 static void refreshPlugins(bool reload); |
116 PluginData* pluginData() const; | 119 PluginData* pluginData() const; |
117 | 120 |
118 EditorClient& editorClient() const { return *m_editorClient; } | 121 EditorClient& editorClient() const { return *m_editorClient; } |
119 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien
t; } | 122 SpellCheckerClient& spellCheckerClient() const { return *m_spellCheckerClien
t; } |
120 UndoStack& undoStack() const { return *m_undoStack; } | 123 UndoStack& undoStack() const { return *m_undoStack; } |
121 | 124 |
122 HistoryController& historyController() const { return *m_historyController;
} | 125 HistoryController& historyController() const { return *m_historyController;
} |
123 | 126 |
124 void setMainFrame(PassRefPtr<Frame>); | 127 void setMainFrame(PassRefPtr<Frame>); |
125 Frame* mainFrame() const { return m_mainFrame.get(); } | 128 Frame* mainFrame() const { return m_mainFrame.get(); } |
126 | 129 |
127 void documentDetached(Document*); | 130 void documentDetached(Document*); |
128 | 131 |
129 bool openedByDOM() const; | 132 bool openedByDOM() const; |
130 void setOpenedByDOM(); | 133 void setOpenedByDOM(); |
131 | 134 |
| 135 // FIXME: PageGroup should probably just be removed, see comment in PageGrou
p.h |
132 enum PageGroupType { PrivatePageGroup, SharedPageGroup }; | 136 enum PageGroupType { PrivatePageGroup, SharedPageGroup }; |
133 void setGroupType(PageGroupType); | 137 void setGroupType(PageGroupType); |
134 void clearPageGroup(); | 138 void clearPageGroup(); |
135 PageGroup& group() | 139 PageGroup& group() |
136 { | 140 { |
137 if (!m_group) | 141 if (!m_group) |
138 setGroupType(PrivatePageGroup); | 142 setGroupType(PrivatePageGroup); |
139 return *m_group; | 143 return *m_group; |
140 } | 144 } |
141 | 145 |
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 296 |
293 bool m_isCursorVisible; | 297 bool m_isCursorVisible; |
294 | 298 |
295 #ifndef NDEBUG | 299 #ifndef NDEBUG |
296 bool m_isPainting; | 300 bool m_isPainting; |
297 #endif | 301 #endif |
298 | 302 |
299 const OwnPtr<PageConsole> m_console; | 303 const OwnPtr<PageConsole> m_console; |
300 | 304 |
301 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; | 305 HashSet<MultisamplingChangedObserver*> m_multisamplingChangedObservers; |
| 306 |
| 307 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
| 308 // FIXME: Most of the members of Page should move onto FrameHost. |
| 309 OwnPtr<FrameHost> m_frameHost; |
302 }; | 310 }; |
303 | 311 |
304 } // namespace WebCore | 312 } // namespace WebCore |
305 | 313 |
306 #endif // Page_h | 314 #endif // Page_h |
OLD | NEW |