-
Notifications
You must be signed in to change notification settings - Fork 50
Expand file tree
/
Copy pathbrowser.d.ts
More file actions
96 lines (87 loc) · 3.14 KB
/
browser.d.ts
File metadata and controls
96 lines (87 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
/**
* Browser Compatibility Types
*/
declare global {
interface HTMLElement {
/**
* Enters fullscreen mode. Used in old Safari.
*/
webkitRequestFullscreen?(): void;
/**
* Enters fullscreen mode. Used in old Safari.
*/
webkitRequestFullScreen?(): void;
/**
* Enters fullscreen mode. Used in old Firefox.
*/
mozRequestFullScreen?(): void;
/**
* Enters fullscreen mode. Used in old IE.
*/
msRequestFullscreen?(): void;
}
interface HTMLVideoElement {
/**
* A Boolean value indicating whether the video is displaying in fullscreen mode.
*
* @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1630493-webkitdisplayingfullscreen}
*/
readonly webkitDisplayingFullscreen?: boolean;
/**
* A Boolean value indicating whether the video can be played in fullscreen mode.
*
* `true` if the device supports fullscreen mode; otherwise, `false`. This property is also
* `false` if the meta data is `loaded` or the `loadedmetadata` event has not fired, and if
* the files are audio-only.
*
* @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1628805-webkitsupportsfullscreen}
*/
readonly webkitSupportsFullscreen?: boolean;
/**
* A property indicating the presentation mode.
*
* @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1631913-webkitpresentationmode}
*/
readonly webkitPresentationMode?: WebKitPresentationMode;
/**
* Enters fullscreen mode.
*
* This method throws an exception if the element is not allowed to enter fullscreen—that is,
* if `webkitSupportsFullscreen` is false.
*
* @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1633500-webkitenterfullscreen}
*/
webkitEnterFullscreen?(): void;
/**
* Exits fullscreen mode.
*
* @see {@link https://developer.apple.com/documentation/webkitjs/htmlvideoelement/1629468-webkitexitfullscreen}
*/
webkitExitFullscreen?(): void;
}
interface Document {
/** Exits fullscreen mode. Used in old Safari. */
webkitExitFullscreen?(): void;
/** Exits fullscreen mode. Used in old Firefox. */
mozCancelFullScreen?(): void;
/** Cancels fullscreen mode. Used in Safari. */
webkitCancelFullScreen?(): void;
/** Exits fullscreen mode. Used in old IE. */
msExitFullscreen?(): void;
/** If fullscreen is enabled. Used in Safari. */
readonly webkitFullscreenEnabled?: boolean;
/** If fullscreen is enabled. Used in old Firefox. */
mozFullScreenEnabled?(): void;
/** If fullscreen is enabled. Used in old IE. */
msFullscreenEnabled?(): void;
/** Current fullscreen element. Used in Safari. */
readonly webkitFullscreenElement?: Element;
/** Element that is fullscreen. Used in Safari. */
webkitCurrentFullScreenElement?: Element;
/** Element that is fullscreen. Used in old IE. */
msFullscreenElement?(): void;
/** Element that is fullscreen. Used in old Firefox. */
mozFullScreenElement?(): void;
}
}
export type {};