Files
shaka-player/externs/screen.js
T
Theodore Abshire 34337ca28d feat(UI): Added polyfill for screen.orientation.
There are some platforms (e.g. iPad) which can be rotated,
but do not support the screen.orientation API. This is relevant
because iPad now supports requestFullscreen, which it did not
before.

Found while investigating #2653

Change-Id: Iacc93433aa1fb50a25d968203dc9fd4f7f16b4ae
2020-06-17 12:31:24 -07:00

58 lines
1.1 KiB
JavaScript

/*! @license
* Shaka Player
* Copyright 2016 Google LLC
* SPDX-License-Identifier: Apache-2.0
*/
/**
* @fileoverview Externs for screen properties not in the Closure compiler.
*
* @externs
*/
/**
* A deprecated method we are using in a polyfill. Use with care!
* @param {string} orientation
* @return {boolean}
*/
screen.lockOrientation = function(orientation) {};
/**
* A deprecated method we are using in a polyfill. Use with care!
* @param {string} orientation
* @return {boolean}
*/
screen.mozLockOrientation = function(orientation) {};
/**
* A deprecated method we are using in a polyfill. Use with care!
* @param {string} orientation
* @return {boolean}
*/
screen.msLockOrientation = function(orientation) {};
/**
* A deprecated method we are using in a polyfill. Use with care!
* @return {boolean}
*/
screen.unlockOrientation = function() {};
/**
* A deprecated method we are using in a polyfill. Use with care!
* @return {boolean}
*/
screen.mozUnlockOrientation = function() {};
/**
* A deprecated method we are using in a polyfill. Use with care!
* @return {boolean}
*/
screen.msUnlockOrientation = function() {};