Supports lock screenOrientation for TWA 1/2
1. Adds the CustomTabOrientationController in SharedActivityCoordinator 2. Calls the setCanControlOrientaton() in the SharedActivityCoordinator#updateUi() 3. Implements the CustomTabOrientationController#setCanControlOrientaton() 4. Modifies the method of mapping orientation from AndroidX (convertOrientationType()) to chromium as we now take int as parameter instead of String 5. Imports ScreenOrientationLockType class to handle lock type 6. Adds a method as ScreenOrientationProviderImpl#setOverrideDefaultOrientation() to get the default screen orientation lock for TWAs or WebAPKs. Bug: 812797,989606 Change-Id: If07122814a7ca0e68f40fa70d9df24c68e3c5ccf Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2276255Reviewed-by:Mounir Lamouri <mlamouri@chromium.org> Reviewed-by:
Peter Conn <peconn@chromium.org> Reviewed-by:
Peter Kotwicz <pkotwicz@chromium.org> Reviewed-by:
Yaron Friedman <yfriedman@chromium.org> Commit-Queue: Sicheng Li <scli@google.com> Auto-Submit: Sicheng Li <scli@google.com> Cr-Commit-Position: refs/heads/master@{#792142}
Showing
Please register or sign in to comment