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

Side by Side Diff: Source/web/WebRemoteFrameImpl.cpp

Issue 937203003: Make load events in iframe elements work with OOPIF (Blink side). (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename DispatchFrameOwnerLoadEvent to DispatchLoadEventForFrameOwner Created 5 years, 10 months 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
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "web/WebRemoteFrameImpl.h" 6 #include "web/WebRemoteFrameImpl.h"
7 7
8 #include "core/frame/FrameView.h" 8 #include "core/frame/FrameView.h"
9 #include "core/frame/RemoteFrame.h" 9 #include "core/frame/RemoteFrame.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 780 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 ASSERT(frame()); 791 ASSERT(frame());
792 frame()->securityContext()->enforceSandboxFlags(static_cast<SandboxFlags>(fl ags)); 792 frame()->securityContext()->enforceSandboxFlags(static_cast<SandboxFlags>(fl ags));
793 } 793 }
794 794
795 void WebRemoteFrameImpl::setReplicatedName(const WebString& name) const 795 void WebRemoteFrameImpl::setReplicatedName(const WebString& name) const
796 { 796 {
797 ASSERT(frame()); 797 ASSERT(frame());
798 frame()->tree().setName(name, nullAtom); 798 frame()->tree().setName(name, nullAtom);
799 } 799 }
800 800
801 void WebRemoteFrameImpl::DispatchLoadEventForFrameOwner() const
802 {
803 ASSERT(frame()->owner()->isLocal());
804 frame()->owner()->dispatchLoad();
805 }
806
801 void WebRemoteFrameImpl::didStartLoading() 807 void WebRemoteFrameImpl::didStartLoading()
802 { 808 {
803 frame()->setIsLoading(true); 809 frame()->setIsLoading(true);
804 } 810 }
805 811
806 void WebRemoteFrameImpl::didStopLoading() 812 void WebRemoteFrameImpl::didStopLoading()
807 { 813 {
808 frame()->setIsLoading(false); 814 frame()->setIsLoading(false);
809 if (parent() && parent()->isWebLocalFrame()) { 815 if (parent() && parent()->isWebLocalFrame()) {
810 WebLocalFrameImpl* parentFrame = 816 WebLocalFrameImpl* parentFrame =
811 toWebLocalFrameImpl(parent()->toWebLocalFrame()); 817 toWebLocalFrameImpl(parent()->toWebLocalFrame());
812 parentFrame->frame()->loader().checkCompleted(); 818 parentFrame->frame()->loader().checkCompleted();
813 } 819 }
814 } 820 }
815 821
816 } // namespace blink 822 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebRemoteFrameImpl.h ('k') | public/web/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698