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