| 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 504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 515 // to :-webkit-full-screen. | 515 // to :-webkit-full-screen. |
| 516 // | 516 // |
| 517 // TODO(alexmos): currently, this assumes prefixed requests, but in the | 517 // TODO(alexmos): currently, this assumes prefixed requests, but in the |
| 518 // future, this should plumb in information about which request type | 518 // future, this should plumb in information about which request type |
| 519 // (prefixed or unprefixed) to use for firing fullscreen events. | 519 // (prefixed or unprefixed) to use for firing fullscreen events. |
| 520 Fullscreen::requestFullscreen( | 520 Fullscreen::requestFullscreen( |
| 521 *ownerElement, | 521 *ownerElement, |
| 522 Fullscreen::RequestType::PrefixedForCrossProcessDescendant); | 522 Fullscreen::RequestType::PrefixedForCrossProcessDescendant); |
| 523 } | 523 } |
| 524 | 524 |
| 525 void WebRemoteFrameImpl::setHasReceivedUserGesture() { |
| 526 frame()->setDocumentHasReceivedUserGesture(); |
| 527 } |
| 528 |
| 525 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 529 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 526 WebRemoteFrameClient* client) | 530 WebRemoteFrameClient* client) |
| 527 : WebRemoteFrame(scope), | 531 : WebRemoteFrame(scope), |
| 528 m_frameClient(RemoteFrameClientImpl::create(this)), | 532 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 529 m_client(client), | 533 m_client(client), |
| 530 m_selfKeepAlive(this) {} | 534 m_selfKeepAlive(this) {} |
| 531 | 535 |
| 532 } // namespace blink | 536 } // namespace blink |
| OLD | NEW |