OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc. All |
3 * Rights Reserved. | 3 * Rights Reserved. |
4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 4 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
5 * (http://www.torchmobile.com/) | 5 * (http://www.torchmobile.com/) |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 | 179 |
180 void Page::setMainFrame(Frame* mainFrame) { | 180 void Page::setMainFrame(Frame* mainFrame) { |
181 // Should only be called during initialization or swaps between local and | 181 // Should only be called during initialization or swaps between local and |
182 // remote frames. | 182 // remote frames. |
183 // FIXME: Unfortunately we can't assert on this at the moment, because this | 183 // FIXME: Unfortunately we can't assert on this at the moment, because this |
184 // is called in the base constructor for both LocalFrame and RemoteFrame, | 184 // is called in the base constructor for both LocalFrame and RemoteFrame, |
185 // when the vtables for the derived classes have not yet been setup. | 185 // when the vtables for the derived classes have not yet been setup. |
186 m_mainFrame = mainFrame; | 186 m_mainFrame = mainFrame; |
187 } | 187 } |
188 | 188 |
| 189 void Page::willUnloadDocument(const Document& document) { |
| 190 if (m_validationMessageClient) |
| 191 m_validationMessageClient->willUnloadDocument(document); |
| 192 } |
| 193 |
189 void Page::documentDetached(Document* document) { | 194 void Page::documentDetached(Document* document) { |
190 m_pointerLockController->documentDetached(document); | 195 m_pointerLockController->documentDetached(document); |
191 m_contextMenuController->documentDetached(document); | 196 m_contextMenuController->documentDetached(document); |
192 if (m_validationMessageClient) | 197 if (m_validationMessageClient) |
193 m_validationMessageClient->documentDetached(*document); | 198 m_validationMessageClient->documentDetached(*document); |
194 m_hostsUsingFeatures.documentDetached(*document); | 199 m_hostsUsingFeatures.documentDetached(*document); |
195 } | 200 } |
196 | 201 |
197 bool Page::openedByDOM() const { | 202 bool Page::openedByDOM() const { |
198 return m_openedByDOM; | 203 return m_openedByDOM; |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 : chromeClient(nullptr), | 588 : chromeClient(nullptr), |
584 contextMenuClient(nullptr), | 589 contextMenuClient(nullptr), |
585 editorClient(nullptr), | 590 editorClient(nullptr), |
586 spellCheckerClient(nullptr) {} | 591 spellCheckerClient(nullptr) {} |
587 | 592 |
588 Page::PageClients::~PageClients() {} | 593 Page::PageClients::~PageClients() {} |
589 | 594 |
590 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 595 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
591 | 596 |
592 } // namespace blink | 597 } // namespace blink |
OLD | NEW |