| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All R
ights Reserved. |
| 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 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
| 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| (...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 Page::Page(PageClients& pageClients) | 119 Page::Page(PageClients& pageClients) |
| 120 : m_chrome(Chrome::create(this, pageClients.chromeClient)) | 120 : m_chrome(Chrome::create(this, pageClients.chromeClient)) |
| 121 , m_dragCaretController(DragCaretController::create()) | 121 , m_dragCaretController(DragCaretController::create()) |
| 122 #if ENABLE(DRAG_SUPPORT) | 122 #if ENABLE(DRAG_SUPPORT) |
| 123 , m_dragController(DragController::create(this, pageClients.dragClient)) | 123 , m_dragController(DragController::create(this, pageClients.dragClient)) |
| 124 #endif | 124 #endif |
| 125 , m_focusController(FocusController::create(this)) | 125 , m_focusController(FocusController::create(this)) |
| 126 #if ENABLE(CONTEXT_MENUS) | 126 #if ENABLE(CONTEXT_MENUS) |
| 127 , m_contextMenuController(ContextMenuController::create(this, pageClients.co
ntextMenuClient)) | 127 , m_contextMenuController(ContextMenuController::create(this, pageClients.co
ntextMenuClient)) |
| 128 #endif | 128 #endif |
| 129 #if ENABLE(INSPECTOR) | |
| 130 , m_inspectorController(InspectorController::create(this, pageClients.inspec
torClient)) | 129 , m_inspectorController(InspectorController::create(this, pageClients.inspec
torClient)) |
| 131 #endif | |
| 132 #if ENABLE(POINTER_LOCK) | 130 #if ENABLE(POINTER_LOCK) |
| 133 , m_pointerLockController(PointerLockController::create(this)) | 131 , m_pointerLockController(PointerLockController::create(this)) |
| 134 #endif | 132 #endif |
| 135 , m_settings(Settings::create(this)) | 133 , m_settings(Settings::create(this)) |
| 136 , m_progress(ProgressTracker::create()) | 134 , m_progress(ProgressTracker::create()) |
| 137 , m_backForwardController(BackForwardController::create(this, pageClients.ba
ckForwardClient)) | 135 , m_backForwardController(BackForwardController::create(this, pageClients.ba
ckForwardClient)) |
| 138 , m_theme(RenderTheme::themeForPage(this)) | 136 , m_theme(RenderTheme::themeForPage(this)) |
| 139 , m_editorClient(pageClients.editorClient) | 137 , m_editorClient(pageClients.editorClient) |
| 140 , m_plugInClient(pageClients.plugInClient) | 138 , m_plugInClient(pageClients.plugInClient) |
| 141 , m_validationMessageClient(pageClients.validationMessageClient) | 139 , m_validationMessageClient(pageClients.validationMessageClient) |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 frame->willDetachPage(); | 202 frame->willDetachPage(); |
| 205 frame->detachFromPage(); | 203 frame->detachFromPage(); |
| 206 } | 204 } |
| 207 | 205 |
| 208 m_editorClient->pageDestroyed(); | 206 m_editorClient->pageDestroyed(); |
| 209 if (m_plugInClient) | 207 if (m_plugInClient) |
| 210 m_plugInClient->pageDestroyed(); | 208 m_plugInClient->pageDestroyed(); |
| 211 if (m_alternativeTextClient) | 209 if (m_alternativeTextClient) |
| 212 m_alternativeTextClient->pageDestroyed(); | 210 m_alternativeTextClient->pageDestroyed(); |
| 213 | 211 |
| 214 #if ENABLE(INSPECTOR) | |
| 215 m_inspectorController->inspectedPageDestroyed(); | 212 m_inspectorController->inspectedPageDestroyed(); |
| 216 #endif | |
| 217 | 213 |
| 218 if (m_scrollingCoordinator) | 214 if (m_scrollingCoordinator) |
| 219 m_scrollingCoordinator->pageDestroyed(); | 215 m_scrollingCoordinator->pageDestroyed(); |
| 220 | 216 |
| 221 backForward()->close(); | 217 backForward()->close(); |
| 222 | 218 |
| 223 #ifndef NDEBUG | 219 #ifndef NDEBUG |
| 224 pageCounter.decrement(); | 220 pageCounter.decrement(); |
| 225 #endif | 221 #endif |
| 226 | 222 |
| (...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1455 info.addMember(m_chrome, "chrome"); | 1451 info.addMember(m_chrome, "chrome"); |
| 1456 info.addMember(m_dragCaretController, "dragCaretController"); | 1452 info.addMember(m_dragCaretController, "dragCaretController"); |
| 1457 | 1453 |
| 1458 #if ENABLE(DRAG_SUPPORT) | 1454 #if ENABLE(DRAG_SUPPORT) |
| 1459 info.addMember(m_dragController, "dragController"); | 1455 info.addMember(m_dragController, "dragController"); |
| 1460 #endif | 1456 #endif |
| 1461 info.addMember(m_focusController, "focusController"); | 1457 info.addMember(m_focusController, "focusController"); |
| 1462 #if ENABLE(CONTEXT_MENUS) | 1458 #if ENABLE(CONTEXT_MENUS) |
| 1463 info.addMember(m_contextMenuController, "contextMenuController"); | 1459 info.addMember(m_contextMenuController, "contextMenuController"); |
| 1464 #endif | 1460 #endif |
| 1465 #if ENABLE(INSPECTOR) | |
| 1466 info.addMember(m_inspectorController, "inspectorController"); | 1461 info.addMember(m_inspectorController, "inspectorController"); |
| 1467 #endif | |
| 1468 #if ENABLE(POINTER_LOCK) | 1462 #if ENABLE(POINTER_LOCK) |
| 1469 info.addMember(m_pointerLockController, "pointerLockController"); | 1463 info.addMember(m_pointerLockController, "pointerLockController"); |
| 1470 #endif | 1464 #endif |
| 1471 info.addMember(m_scrollingCoordinator, "scrollingCoordinator"); | 1465 info.addMember(m_scrollingCoordinator, "scrollingCoordinator"); |
| 1472 info.addMember(m_settings, "settings"); | 1466 info.addMember(m_settings, "settings"); |
| 1473 info.addMember(m_progress, "progress"); | 1467 info.addMember(m_progress, "progress"); |
| 1474 info.addMember(m_backForwardController, "backForwardController"); | 1468 info.addMember(m_backForwardController, "backForwardController"); |
| 1475 info.addMember(m_mainFrame, "mainFrame"); | 1469 info.addMember(m_mainFrame, "mainFrame"); |
| 1476 info.addMember(m_pluginData, "pluginData"); | 1470 info.addMember(m_pluginData, "pluginData"); |
| 1477 info.addMember(m_theme, "theme"); | 1471 info.addMember(m_theme, "theme"); |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1516 , plugInClient(0) | 1510 , plugInClient(0) |
| 1517 , validationMessageClient(0) | 1511 , validationMessageClient(0) |
| 1518 { | 1512 { |
| 1519 } | 1513 } |
| 1520 | 1514 |
| 1521 Page::PageClients::~PageClients() | 1515 Page::PageClients::~PageClients() |
| 1522 { | 1516 { |
| 1523 } | 1517 } |
| 1524 | 1518 |
| 1525 } // namespace WebCore | 1519 } // namespace WebCore |
| OLD | NEW |