| 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 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 toWebLocalFrameImpl(parent()->toWebLocalFrame()); | 490 toWebLocalFrameImpl(parent()->toWebLocalFrame()); |
| 491 parentFrame->frame()->loader().checkCompleted(); | 491 parentFrame->frame()->loader().checkCompleted(); |
| 492 } | 492 } |
| 493 } | 493 } |
| 494 | 494 |
| 495 bool WebRemoteFrameImpl::isIgnoredForHitTest() const { | 495 bool WebRemoteFrameImpl::isIgnoredForHitTest() const { |
| 496 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); | 496 HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner(); |
| 497 if (!owner || !owner->layoutObject()) | 497 if (!owner || !owner->layoutObject()) |
| 498 return false; | 498 return false; |
| 499 return owner->layoutObject()->style()->pointerEvents() == | 499 return owner->layoutObject()->style()->pointerEvents() == |
| 500 EPointerEvents::None; | 500 EPointerEvents::kNone; |
| 501 } | 501 } |
| 502 | 502 |
| 503 void WebRemoteFrameImpl::willEnterFullscreen() { | 503 void WebRemoteFrameImpl::willEnterFullscreen() { |
| 504 // This should only ever be called when the FrameOwner is local. | 504 // This should only ever be called when the FrameOwner is local. |
| 505 HTMLFrameOwnerElement* ownerElement = | 505 HTMLFrameOwnerElement* ownerElement = |
| 506 toHTMLFrameOwnerElement(frame()->owner()); | 506 toHTMLFrameOwnerElement(frame()->owner()); |
| 507 | 507 |
| 508 // Call |requestFullscreen()| on |ownerElement| to make it the pending | 508 // Call |requestFullscreen()| on |ownerElement| to make it the pending |
| 509 // fullscreen element in anticipation of the coming |didEnterFullscreen()| | 509 // fullscreen element in anticipation of the coming |didEnterFullscreen()| |
| 510 // call. | 510 // call. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 523 } | 523 } |
| 524 | 524 |
| 525 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 525 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 526 WebRemoteFrameClient* client) | 526 WebRemoteFrameClient* client) |
| 527 : WebRemoteFrame(scope), | 527 : WebRemoteFrame(scope), |
| 528 m_frameClient(RemoteFrameClientImpl::create(this)), | 528 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 529 m_client(client), | 529 m_client(client), |
| 530 m_selfKeepAlive(this) {} | 530 m_selfKeepAlive(this) {} |
| 531 | 531 |
| 532 } // namespace blink | 532 } // namespace blink |
| OLD | NEW |