| 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 "core/dom/Fullscreen.h" | 7 #include "core/dom/Fullscreen.h" |
| 8 #include "core/dom/RemoteSecurityContext.h" | 8 #include "core/dom/RemoteSecurityContext.h" |
| 9 #include "core/dom/SecurityContext.h" | 9 #include "core/dom/SecurityContext.h" |
| 10 #include "core/frame/FrameView.h" | 10 #include "core/frame/FrameView.h" |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 WebLocalFrameImpl* parentFrame = | 493 WebLocalFrameImpl* parentFrame = |
| 494 toWebLocalFrameImpl(parent()->toWebLocalFrame()); | 494 toWebLocalFrameImpl(parent()->toWebLocalFrame()); |
| 495 parentFrame->frame()->loader().checkCompleted(); | 495 parentFrame->frame()->loader().checkCompleted(); |
| 496 } | 496 } |
| 497 } | 497 } |
| 498 | 498 |
| 499 bool WebRemoteFrameImpl::isIgnoredForHitTest() const { | 499 bool WebRemoteFrameImpl::isIgnoredForHitTest() const { |
| 500 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); | 500 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); |
| 501 if (!owner || !owner->layoutObject()) | 501 if (!owner || !owner->layoutObject()) |
| 502 return false; | 502 return false; |
| 503 return owner->layoutObject()->style()->pointerEvents() == PE_NONE; | 503 return owner->layoutObject()->style()->pointerEvents() == |
| 504 EPointerEvents::PE_NONE; |
| 504 } | 505 } |
| 505 | 506 |
| 506 void WebRemoteFrameImpl::willEnterFullscreen() { | 507 void WebRemoteFrameImpl::willEnterFullscreen() { |
| 507 // This should only ever be called when the FrameOwner is local. | 508 // This should only ever be called when the FrameOwner is local. |
| 508 HTMLFrameOwnerElement* ownerElement = | 509 HTMLFrameOwnerElement* ownerElement = |
| 509 toHTMLFrameOwnerElement(frame()->owner()); | 510 toHTMLFrameOwnerElement(frame()->owner()); |
| 510 | 511 |
| 511 // Call requestFullscreen() on |ownerElement| to make it the provisional | 512 // Call requestFullscreen() on |ownerElement| to make it the provisional |
| 512 // fullscreen element in FullscreenController, and to prepare | 513 // fullscreen element in FullscreenController, and to prepare |
| 513 // fullscreenchange events that will need to fire on it and its (local) | 514 // fullscreenchange events that will need to fire on it and its (local) |
| (...skipping 15 matching lines...) Expand all Loading... |
| 529 } | 530 } |
| 530 | 531 |
| 531 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 532 WebRemoteFrameClient* client) | 533 WebRemoteFrameClient* client) |
| 533 : WebRemoteFrame(scope), | 534 : WebRemoteFrame(scope), |
| 534 m_frameClient(RemoteFrameClientImpl::create(this)), | 535 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 535 m_client(client), | 536 m_client(client), |
| 536 m_selfKeepAlive(this) {} | 537 m_selfKeepAlive(this) {} |
| 537 | 538 |
| 538 } // namespace blink | 539 } // namespace blink |
| OLD | NEW |