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 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
562 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; | 562 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; |
563 | 563 |
564 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire | 564 // Even though we don't fire an event from here, the LocalDOMWindow's will f
ire |
565 // an event so we keep the frames alive until we are done. | 565 // an event so we keep the frames alive until we are done. |
566 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { | 566 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext()
) { |
567 if (frame->isLocalFrame()) | 567 if (frame->isLocalFrame()) |
568 frames.append(toLocalFrame(frame)); | 568 frames.append(toLocalFrame(frame)); |
569 } | 569 } |
570 | 570 |
571 for (unsigned i = 0; i < frames.size(); ++i) | 571 for (unsigned i = 0; i < frames.size(); ++i) |
572 frames[i]->domWindow()->acceptLanguagesChanged(); | 572 frames[i]->localDOMWindow()->acceptLanguagesChanged(); |
573 } | 573 } |
574 | 574 |
575 PageLifecycleNotifier& Page::lifecycleNotifier() | 575 PageLifecycleNotifier& Page::lifecycleNotifier() |
576 { | 576 { |
577 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); | 577 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle
Notifier()); |
578 } | 578 } |
579 | 579 |
580 PassOwnPtr<LifecycleNotifier<Page>> Page::createLifecycleNotifier() | 580 PassOwnPtr<LifecycleNotifier<Page>> Page::createLifecycleNotifier() |
581 { | 581 { |
582 return PageLifecycleNotifier::create(this); | 582 return PageLifecycleNotifier::create(this); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 , spellCheckerClient(nullptr) | 644 , spellCheckerClient(nullptr) |
645 , storageClient(nullptr) | 645 , storageClient(nullptr) |
646 { | 646 { |
647 } | 647 } |
648 | 648 |
649 Page::PageClients::~PageClients() | 649 Page::PageClients::~PageClients() |
650 { | 650 { |
651 } | 651 } |
652 | 652 |
653 } // namespace blink | 653 } // namespace blink |
OLD | NEW |