forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Media Controls] Disable rotate-to-fullscren if zero Device Orientation
Rotate-to-fullscreen was previously disabled on devices that don't support the Device Orientation API, in https://chromium-review.googlesource.com/645981 (48a2ccc). But it turns out there are devices that claim to support Device Orientation but then give device orientation values that are always fixed to zero! This patch disables rotate-to-fullscreen on those devices too, for the same reason that after entering fullscreen it wouldn't be possible to rotate-to-exit-fullscreen since the MediaControlsOrientationLockDelegate won't be able to read the Device Orientation, which would give an inconsistent UX. Bug: 760737 Change-Id: I79ce15bde124d5663028a3f2538f4cfe522e0517 Reviewed-on: https://chromium-review.googlesource.com/667379 Commit-Queue: John Mellor <[email protected]> Commit-Queue: Mounir Lamouri <[email protected]> Reviewed-by: Mounir Lamouri <[email protected]> Cr-Commit-Position: refs/heads/master@{#502017}
- Loading branch information
1 parent
fa22b6c
commit d172204
Showing
2 changed files
with
40 additions
and
2 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