| 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 25 matching lines...) Expand all Loading... |
| 36 #include "core/frame/Settings.h" | 36 #include "core/frame/Settings.h" |
| 37 #include "core/inspector/InspectorController.h" | 37 #include "core/inspector/InspectorController.h" |
| 38 #include "core/inspector/InspectorInstrumentation.h" | 38 #include "core/inspector/InspectorInstrumentation.h" |
| 39 #include "core/loader/FrameLoader.h" | 39 #include "core/loader/FrameLoader.h" |
| 40 #include "core/loader/HistoryItem.h" | 40 #include "core/loader/HistoryItem.h" |
| 41 #include "core/page/AutoscrollController.h" | 41 #include "core/page/AutoscrollController.h" |
| 42 #include "core/page/Chrome.h" | 42 #include "core/page/Chrome.h" |
| 43 #include "core/page/ChromeClient.h" | 43 #include "core/page/ChromeClient.h" |
| 44 #include "core/page/ContextMenuController.h" | 44 #include "core/page/ContextMenuController.h" |
| 45 #include "core/page/DragController.h" | 45 #include "core/page/DragController.h" |
| 46 #include "core/page/EventHandlerRegistry.h" |
| 46 #include "core/page/FocusController.h" | 47 #include "core/page/FocusController.h" |
| 47 #include "core/page/FrameTree.h" | 48 #include "core/page/FrameTree.h" |
| 48 #include "core/page/PageLifecycleNotifier.h" | 49 #include "core/page/PageLifecycleNotifier.h" |
| 49 #include "core/page/PointerLockController.h" | 50 #include "core/page/PointerLockController.h" |
| 50 #include "core/page/StorageClient.h" | 51 #include "core/page/StorageClient.h" |
| 51 #include "core/page/ValidationMessageClient.h" | 52 #include "core/page/ValidationMessageClient.h" |
| 52 #include "core/page/scrolling/ScrollingCoordinator.h" | 53 #include "core/page/scrolling/ScrollingCoordinator.h" |
| 53 #include "core/rendering/FastTextAutosizer.h" | 54 #include "core/rendering/FastTextAutosizer.h" |
| 54 #include "core/rendering/RenderView.h" | 55 #include "core/rendering/RenderView.h" |
| 55 #include "core/rendering/TextAutosizer.h" | 56 #include "core/rendering/TextAutosizer.h" |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 m_mainFrame = mainFrame; | 199 m_mainFrame = mainFrame; |
| 199 } | 200 } |
| 200 | 201 |
| 201 void Page::documentDetached(Document* document) | 202 void Page::documentDetached(Document* document) |
| 202 { | 203 { |
| 203 m_multisamplingChangedObservers.clear(); | 204 m_multisamplingChangedObservers.clear(); |
| 204 m_pointerLockController->documentDetached(document); | 205 m_pointerLockController->documentDetached(document); |
| 205 m_contextMenuController->documentDetached(document); | 206 m_contextMenuController->documentDetached(document); |
| 206 if (m_validationMessageClient) | 207 if (m_validationMessageClient) |
| 207 m_validationMessageClient->documentDetached(*document); | 208 m_validationMessageClient->documentDetached(*document); |
| 209 EventHandlerRegistry::from(*this)->documentDetached(*document); |
| 208 } | 210 } |
| 209 | 211 |
| 210 bool Page::openedByDOM() const | 212 bool Page::openedByDOM() const |
| 211 { | 213 { |
| 212 return m_openedByDOM; | 214 return m_openedByDOM; |
| 213 } | 215 } |
| 214 | 216 |
| 215 void Page::setOpenedByDOM() | 217 void Page::setOpenedByDOM() |
| 216 { | 218 { |
| 217 m_openedByDOM = true; | 219 m_openedByDOM = true; |
| (...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 545 Supplementable<Page>::trace(visitor); | 547 Supplementable<Page>::trace(visitor); |
| 546 } | 548 } |
| 547 | 549 |
| 548 void Page::clearWeakMembers(Visitor* visitor) | 550 void Page::clearWeakMembers(Visitor* visitor) |
| 549 { | 551 { |
| 550 #if ENABLE(INPUT_SPEECH) | 552 #if ENABLE(INPUT_SPEECH) |
| 551 SpeechInput* input = SpeechInput::from(this); | 553 SpeechInput* input = SpeechInput::from(this); |
| 552 if (input) | 554 if (input) |
| 553 input->clearWeakMembers(visitor); | 555 input->clearWeakMembers(visitor); |
| 554 #endif | 556 #endif |
| 557 EventHandlerRegistry::from(*this)->clearWeakMembers(visitor); |
| 555 } | 558 } |
| 556 | 559 |
| 557 void Page::willBeDestroyed() | 560 void Page::willBeDestroyed() |
| 558 { | 561 { |
| 559 // Disable all agents prior to resetting the frame view. | 562 // Disable all agents prior to resetting the frame view. |
| 560 m_inspectorController->willBeDestroyed(); | 563 m_inspectorController->willBeDestroyed(); |
| 561 | 564 |
| 562 m_mainFrame->setView(nullptr); | 565 m_mainFrame->setView(nullptr); |
| 563 | 566 |
| 564 allPages().remove(this); | 567 allPages().remove(this); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 592 , spellCheckerClient(0) | 595 , spellCheckerClient(0) |
| 593 , storageClient(0) | 596 , storageClient(0) |
| 594 { | 597 { |
| 595 } | 598 } |
| 596 | 599 |
| 597 Page::PageClients::~PageClients() | 600 Page::PageClients::~PageClients() |
| 598 { | 601 { |
| 599 } | 602 } |
| 600 | 603 |
| 601 } // namespace WebCore | 604 } // namespace WebCore |
| OLD | NEW |