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 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 | 246 |
247 void Page::SetMainFrame(Frame* main_frame) { | 247 void Page::SetMainFrame(Frame* main_frame) { |
248 // Should only be called during initialization or swaps between local and | 248 // Should only be called during initialization or swaps between local and |
249 // remote frames. | 249 // remote frames. |
250 // FIXME: Unfortunately we can't assert on this at the moment, because this | 250 // FIXME: Unfortunately we can't assert on this at the moment, because this |
251 // is called in the base constructor for both LocalFrame and RemoteFrame, | 251 // is called in the base constructor for both LocalFrame and RemoteFrame, |
252 // when the vtables for the derived classes have not yet been setup. | 252 // when the vtables for the derived classes have not yet been setup. |
253 main_frame_ = main_frame; | 253 main_frame_ = main_frame; |
254 } | 254 } |
255 | 255 |
256 void Page::WillUnloadDocument(const Document& document) { | |
257 if (validation_message_client_) | |
258 validation_message_client_->WillUnloadDocument(document); | |
259 } | |
260 | |
261 void Page::DocumentDetached(Document* document) { | 256 void Page::DocumentDetached(Document* document) { |
262 pointer_lock_controller_->DocumentDetached(document); | 257 pointer_lock_controller_->DocumentDetached(document); |
263 context_menu_controller_->DocumentDetached(document); | 258 context_menu_controller_->DocumentDetached(document); |
264 if (validation_message_client_) | |
265 validation_message_client_->DocumentDetached(*document); | |
266 hosts_using_features_.DocumentDetached(*document); | 259 hosts_using_features_.DocumentDetached(*document); |
267 } | 260 } |
268 | 261 |
269 bool Page::OpenedByDOM() const { | 262 bool Page::OpenedByDOM() const { |
270 return opened_by_dom_; | 263 return opened_by_dom_; |
271 } | 264 } |
272 | 265 |
273 void Page::SetOpenedByDOM() { | 266 void Page::SetOpenedByDOM() { |
274 opened_by_dom_ = true; | 267 opened_by_dom_ = true; |
275 } | 268 } |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
682 : chrome_client(nullptr), | 675 : chrome_client(nullptr), |
683 context_menu_client(nullptr), | 676 context_menu_client(nullptr), |
684 editor_client(nullptr), | 677 editor_client(nullptr), |
685 spell_checker_client(nullptr) {} | 678 spell_checker_client(nullptr) {} |
686 | 679 |
687 Page::PageClients::~PageClients() {} | 680 Page::PageClients::~PageClients() {} |
688 | 681 |
689 template class CORE_TEMPLATE_EXPORT Supplement<Page>; | 682 template class CORE_TEMPLATE_EXPORT Supplement<Page>; |
690 | 683 |
691 } // namespace blink | 684 } // namespace blink |
OLD | NEW |