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

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

Issue 2809733003: Move most of FrameLoader::CheckCompleted() to Document (Closed)
Patch Set: Fix failing android test Created 3 years, 8 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 | « third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | no next file » | 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 "web/WebRemoteFrameImpl.h" 5 #include "web/WebRemoteFrameImpl.h"
6 6
7 #include "bindings/core/v8/DOMWrapperWorld.h" 7 #include "bindings/core/v8/DOMWrapperWorld.h"
8 #include "bindings/core/v8/WindowProxy.h" 8 #include "bindings/core/v8/WindowProxy.h"
9 #include "core/dom/Fullscreen.h" 9 #include "core/dom/Fullscreen.h"
10 #include "core/dom/RemoteSecurityContext.h" 10 #include "core/dom/RemoteSecurityContext.h"
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 480
481 void WebRemoteFrameImpl::DidStartLoading() { 481 void WebRemoteFrameImpl::DidStartLoading() {
482 GetFrame()->SetIsLoading(true); 482 GetFrame()->SetIsLoading(true);
483 } 483 }
484 484
485 void WebRemoteFrameImpl::DidStopLoading() { 485 void WebRemoteFrameImpl::DidStopLoading() {
486 GetFrame()->SetIsLoading(false); 486 GetFrame()->SetIsLoading(false);
487 if (Parent() && Parent()->IsWebLocalFrame()) { 487 if (Parent() && Parent()->IsWebLocalFrame()) {
488 WebLocalFrameImpl* parent_frame = 488 WebLocalFrameImpl* parent_frame =
489 ToWebLocalFrameImpl(Parent()->ToWebLocalFrame()); 489 ToWebLocalFrameImpl(Parent()->ToWebLocalFrame());
490 parent_frame->GetFrame()->Loader().CheckCompleted(); 490 parent_frame->GetFrame()->GetDocument()->CheckCompleted();
491 } 491 }
492 } 492 }
493 493
494 bool WebRemoteFrameImpl::IsIgnoredForHitTest() const { 494 bool WebRemoteFrameImpl::IsIgnoredForHitTest() const {
495 HTMLFrameOwnerElement* owner = GetFrame()->DeprecatedLocalOwner(); 495 HTMLFrameOwnerElement* owner = GetFrame()->DeprecatedLocalOwner();
496 if (!owner || !owner->GetLayoutObject()) 496 if (!owner || !owner->GetLayoutObject())
497 return false; 497 return false;
498 return owner->GetLayoutObject()->Style()->PointerEvents() == 498 return owner->GetLayoutObject()->Style()->PointerEvents() ==
499 EPointerEvents::kNone; 499 EPointerEvents::kNone;
500 } 500 }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
535 } 535 }
536 536
537 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, 537 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope,
538 WebRemoteFrameClient* client) 538 WebRemoteFrameClient* client)
539 : WebRemoteFrame(scope), 539 : WebRemoteFrame(scope),
540 frame_client_(RemoteFrameClientImpl::Create(this)), 540 frame_client_(RemoteFrameClientImpl::Create(this)),
541 client_(client), 541 client_(client),
542 self_keep_alive_(this) {} 542 self_keep_alive_(this) {}
543 543
544 } // namespace blink 544 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/xmlhttprequest/XMLHttpRequest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698