| 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 506 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 517 // Passing |forCrossProcessAncestor| to requestFullscreen is necessary | 517 // Passing |forCrossProcessAncestor| to requestFullscreen is necessary |
| 518 // because: | 518 // because: |
| 519 // - |ownerElement| will need :-webkit-full-screen-ancestor style in | 519 // - |ownerElement| will need :-webkit-full-screen-ancestor style in |
| 520 // addition to :-webkit-full-screen. | 520 // addition to :-webkit-full-screen. |
| 521 // - there's no need to resend the ToggleFullscreen IPC to the browser | 521 // - there's no need to resend the ToggleFullscreen IPC to the browser |
| 522 // process. | 522 // process. |
| 523 // | 523 // |
| 524 // TODO(alexmos): currently, this assumes prefixed requests, but in the | 524 // TODO(alexmos): currently, this assumes prefixed requests, but in the |
| 525 // future, this should plumb in information about which request type | 525 // future, this should plumb in information about which request type |
| 526 // (prefixed or unprefixed) to use for firing fullscreen events. | 526 // (prefixed or unprefixed) to use for firing fullscreen events. |
| 527 Fullscreen::from(ownerElement->document()) | 527 Fullscreen::requestFullscreen(*ownerElement, |
| 528 .requestFullscreen(*ownerElement, Fullscreen::PrefixedRequest, | 528 Fullscreen::RequestType::Prefixed, |
| 529 true /* forCrossProcessAncestor */); | 529 true /* forCrossProcessAncestor */); |
| 530 } | 530 } |
| 531 | 531 |
| 532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, | 532 WebRemoteFrameImpl::WebRemoteFrameImpl(WebTreeScopeType scope, |
| 533 WebRemoteFrameClient* client) | 533 WebRemoteFrameClient* client) |
| 534 : WebRemoteFrame(scope), | 534 : WebRemoteFrame(scope), |
| 535 m_frameClient(RemoteFrameClientImpl::create(this)), | 535 m_frameClient(RemoteFrameClientImpl::create(this)), |
| 536 m_client(client), | 536 m_client(client), |
| 537 m_selfKeepAlive(this) {} | 537 m_selfKeepAlive(this) {} |
| 538 | 538 |
| 539 } // namespace blink | 539 } // namespace blink |
| OLD | NEW |