Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: Source/core/page/Page.cpp

Issue 683013002: Extract a DOMWindow interface from LocalDOMWindow and use it in the idl. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix incorrect assumption Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 552 matching lines...) Expand 10 before | Expand all | Expand 10 after
563 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames; 563 WillBeHeapVector<RefPtrWillBeMember<LocalFrame>> frames;
564 564
565 // Even though we don't fire an event from here, the LocalDOMWindow's will f ire 565 // Even though we don't fire an event from here, the LocalDOMWindow's will f ire
566 // an event so we keep the frames alive until we are done. 566 // an event so we keep the frames alive until we are done.
567 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) { 567 for (Frame* frame = mainFrame(); frame; frame = frame->tree().traverseNext() ) {
568 if (frame->isLocalFrame()) 568 if (frame->isLocalFrame())
569 frames.append(toLocalFrame(frame)); 569 frames.append(toLocalFrame(frame));
570 } 570 }
571 571
572 for (unsigned i = 0; i < frames.size(); ++i) 572 for (unsigned i = 0; i < frames.size(); ++i)
573 frames[i]->domWindow()->acceptLanguagesChanged(); 573 frames[i]->localDOMWindow()->acceptLanguagesChanged();
574 } 574 }
575 575
576 PageLifecycleNotifier& Page::lifecycleNotifier() 576 PageLifecycleNotifier& Page::lifecycleNotifier()
577 { 577 {
578 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle Notifier()); 578 return static_cast<PageLifecycleNotifier&>(LifecycleContext<Page>::lifecycle Notifier());
579 } 579 }
580 580
581 PassOwnPtr<LifecycleNotifier<Page>> Page::createLifecycleNotifier() 581 PassOwnPtr<LifecycleNotifier<Page>> Page::createLifecycleNotifier()
582 { 582 {
583 return PageLifecycleNotifier::create(this); 583 return PageLifecycleNotifier::create(this);
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
646 , spellCheckerClient(nullptr) 646 , spellCheckerClient(nullptr)
647 , storageClient(nullptr) 647 , storageClient(nullptr)
648 { 648 {
649 } 649 }
650 650
651 Page::PageClients::~PageClients() 651 Page::PageClients::~PageClients()
652 { 652 {
653 } 653 }
654 654
655 } // namespace blink 655 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698