Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[iOS] Add screen orientation locking / unlocking support outside layo…
…ut tests https://bugs.webkit.org/show_bug.cgi?id=246435 Reviewed by Wenson Hsieh. Add screen orientation locking / unlocking support outside layout tests, on iOS devices. Outside tests, the fullscreen API uses the WKFullScreenWindowController to display a new fullscreen view on top of the current one. This new view has its own UIViewController that WebKit controls. As a result, when locking the screen orientation (which is gated on being in fullscreen), we need to do so via the WKFullScreenWindowController, instead of relying on the client application. * Source/WebKit/UIProcess/WebFullScreenManagerProxy.cpp: (WebKit::WebFullScreenManagerProxy::lockFullscreenOrientation): (WebKit::WebFullScreenManagerProxy::unlockFullscreenOrientation): * Source/WebKit/UIProcess/WebFullScreenManagerProxy.h: (WebKit::WebFullScreenManagerProxyClient::lockFullscreenOrientation): (WebKit::WebFullScreenManagerProxyClient::unlockFullscreenOrientation): * Source/WebKit/UIProcess/WebScreenOrientationManagerProxy.cpp: (WebKit::WebScreenOrientationManagerProxy::lock): (WebKit::WebScreenOrientationManagerProxy::unlock): * Source/WebKit/UIProcess/ios/PageClientImplIOS.h: * Source/WebKit/UIProcess/ios/PageClientImplIOS.mm: (WebKit::toUIInterfaceOrientationMask): (WebKit::PageClientImpl::lockFullscreenOrientation): (WebKit::PageClientImpl::unlockFullscreenOrientation): * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.h: * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenViewController.mm: (-[WKFullScreenViewController initWithWebView:]): (-[WKFullScreenViewController setSupportedOrientation:]): (-[WKFullScreenViewController supportedInterfaceOrientations]): * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.h: * Source/WebKit/UIProcess/ios/fullscreen/WKFullScreenWindowControllerIOS.mm: (-[WKFullScreenWindowController setSupportedOrientations:]): Canonical link: https://commits.webkit.org/255555@main
- Loading branch information
Showing
9 changed files
with
109 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters