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 465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 | 476 |
477 void WebRemoteFrameImpl::DidStartLoading() { | 477 void WebRemoteFrameImpl::DidStartLoading() { |
478 GetFrame()->SetIsLoading(true); | 478 GetFrame()->SetIsLoading(true); |
479 } | 479 } |
480 | 480 |
481 void WebRemoteFrameImpl::DidStopLoading() { | 481 void WebRemoteFrameImpl::DidStopLoading() { |
482 GetFrame()->SetIsLoading(false); | 482 GetFrame()->SetIsLoading(false); |
483 if (Parent() && Parent()->IsWebLocalFrame()) { | 483 if (Parent() && Parent()->IsWebLocalFrame()) { |
484 WebLocalFrameImpl* parent_frame = | 484 WebLocalFrameImpl* parent_frame = |
485 ToWebLocalFrameImpl(Parent()->ToWebLocalFrame()); | 485 ToWebLocalFrameImpl(Parent()->ToWebLocalFrame()); |
486 parent_frame->GetFrame()->Loader().CheckCompleted(); | 486 parent_frame->GetFrame()->GetDocument()->CheckCompleted(); |
487 } | 487 } |
488 } | 488 } |
489 | 489 |
490 bool WebRemoteFrameImpl::IsIgnoredForHitTest() const { | 490 bool WebRemoteFrameImpl::IsIgnoredForHitTest() const { |
491 HTMLFrameOwnerElement* owner = GetFrame()->DeprecatedLocalOwner(); | 491 HTMLFrameOwnerElement* owner = GetFrame()->DeprecatedLocalOwner(); |
492 if (!owner || !owner->GetLayoutObject()) | 492 if (!owner || !owner->GetLayoutObject()) |
493 return false; | 493 return false; |
494 return owner->GetLayoutObject()->Style()->PointerEvents() == | 494 return owner->GetLayoutObject()->Style()->PointerEvents() == |
495 EPointerEvents::kNone; | 495 EPointerEvents::kNone; |
496 } | 496 } |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
531 } | 531 } |
532 | 532 |
533 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 533 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
534 WebRemoteFrameClient* client) | 534 WebRemoteFrameClient* client) |
535 : WebRemoteFrame(scope), | 535 : WebRemoteFrame(scope), |
536 frame_client_(RemoteFrameClientImpl::Create(this)), | 536 frame_client_(RemoteFrameClientImpl::Create(this)), |
537 client_(client), | 537 client_(client), |
538 self_keep_alive_(this) {} | 538 self_keep_alive_(this) {} |
539 | 539 |
540 } // namespace blink | 540 } // namespace blink |
OLD | NEW |