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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } | 188 void setIsCursorVisible(bool isVisible) { m_isCursorVisible = isVisible; } |
189 | 189 |
190 #if ENABLE(ASSERT) | 190 #if ENABLE(ASSERT) |
191 void setIsPainting(bool painting) { m_isPainting = painting; } | 191 void setIsPainting(bool painting) { m_isPainting = painting; } |
192 bool isPainting() const { return m_isPainting; } | 192 bool isPainting() const { return m_isPainting; } |
193 #endif | 193 #endif |
194 | 194 |
195 void didCommitLoad(LocalFrame*); | 195 void didCommitLoad(LocalFrame*); |
196 | 196 |
197 void acceptLanguagesChanged(); | 197 void acceptLanguagesChanged(); |
| 198 void purgeMemory(); |
198 | 199 |
| 200 static void onMemoryPressure(); |
199 static void networkStateChanged(bool online); | 201 static void networkStateChanged(bool online); |
200 | 202 |
201 DECLARE_TRACE(); | 203 DECLARE_TRACE(); |
202 | 204 |
203 void layerTreeViewInitialized(WebLayerTreeView&); | 205 void layerTreeViewInitialized(WebLayerTreeView&); |
204 void willCloseLayerTreeView(WebLayerTreeView&); | 206 void willCloseLayerTreeView(WebLayerTreeView&); |
205 | 207 |
206 void willBeDestroyed(); | 208 void willBeDestroyed(); |
207 | 209 |
208 private: | 210 private: |
209 explicit Page(PageClients&); | 211 explicit Page(PageClients&); |
210 | 212 |
211 void initGroup(); | 213 void initGroup(); |
212 | 214 |
213 // SettingsDelegate overrides. | 215 // SettingsDelegate overrides. |
214 void settingsChanged(SettingsDelegate::ChangeType) override; | 216 void settingsChanged(SettingsDelegate::ChangeType) override; |
215 | 217 |
216 void compressStrings(Timer<Page>*); | |
217 | |
218 Member<PageAnimator> m_animator; | 218 Member<PageAnimator> m_animator; |
219 const Member<AutoscrollController> m_autoscrollController; | 219 const Member<AutoscrollController> m_autoscrollController; |
220 Member<ChromeClient> m_chromeClient; | 220 Member<ChromeClient> m_chromeClient; |
221 const Member<DragCaretController> m_dragCaretController; | 221 const Member<DragCaretController> m_dragCaretController; |
222 const Member<DragController> m_dragController; | 222 const Member<DragController> m_dragController; |
223 const Member<FocusController> m_focusController; | 223 const Member<FocusController> m_focusController; |
224 const Member<ContextMenuController> m_contextMenuController; | 224 const Member<ContextMenuController> m_contextMenuController; |
225 const Member<PointerLockController> m_pointerLockController; | 225 const Member<PointerLockController> m_pointerLockController; |
226 Member<ScrollingCoordinator> m_scrollingCoordinator; | 226 Member<ScrollingCoordinator> m_scrollingCoordinator; |
227 | 227 |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
260 | 260 |
261 bool m_isCursorVisible; | 261 bool m_isCursorVisible; |
262 | 262 |
263 #if ENABLE(ASSERT) | 263 #if ENABLE(ASSERT) |
264 bool m_isPainting; | 264 bool m_isPainting; |
265 #endif | 265 #endif |
266 | 266 |
267 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. | 267 // A pointer to all the interfaces provided to in-process Frames for this Pa
ge. |
268 // FIXME: Most of the members of Page should move onto FrameHost. | 268 // FIXME: Most of the members of Page should move onto FrameHost. |
269 Member<FrameHost> m_frameHost; | 269 Member<FrameHost> m_frameHost; |
270 | |
271 Timer<Page> m_timerForCompressStrings; | |
272 }; | 270 }; |
273 | 271 |
274 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; | 272 extern template class CORE_EXTERN_TEMPLATE_EXPORT Supplement<Page>; |
275 | 273 |
276 } // namespace blink | 274 } // namespace blink |
277 | 275 |
278 #endif // Page_h | 276 #endif // Page_h |
OLD | NEW |