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