| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |