| Index: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
|
| diff --git a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
|
| index 53adce9c19e27574c5f65f67e44388d5678826e3..973c9d45e0219fd236128b8ce5343f2044138f7d 100644
|
| --- a/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
|
| +++ b/tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate
|
| @@ -105,6 +105,19 @@ $endif
|
| _title = value;
|
| }
|
|
|
| + /**
|
| + * Returns page to standard layout.
|
| + *
|
| + * Has no effect if the page is not in fullscreen mode.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Using the fullscreen API]
|
| + * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from
|
| + * WebPlatform.org.
|
| + * * [Fullscreen specification]
|
| + * (http://www.w3.org/TR/fullscreen/) from W3C.
|
| + */
|
| @DomName('Document.webkitExitFullscreen')
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @@ -121,12 +134,43 @@ $endif
|
| _webkitExitPointerLock();
|
| }
|
|
|
| + /**
|
| + * Returns the element, if any, that is currently displayed in fullscreen.
|
| + *
|
| + * Returns null if there is currently no fullscreen element. You can use
|
| + * this to determine if the page is in fullscreen mode.
|
| + *
|
| + * myVideo = new VideoElement();
|
| + * if (document.fullscreenElement == null) {
|
| + * myVideo.requestFullscreen();
|
| + * print(document.fullscreenElement == myVideo); // true
|
| + * }
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Using the fullscreen API]
|
| + * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from
|
| + * WebPlatform.org.
|
| + * * [Fullscreen specification]
|
| + * (http://www.w3.org/TR/fullscreen/) from W3C.
|
| + */
|
| @DomName('Document.webkitFullscreenElement')
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
| @Experimental()
|
| Element get fullscreenElement => _webkitFullscreenElement;
|
|
|
| + /**
|
| + * Returns true if this document can display elements in fullscreen mode.
|
| + *
|
| + * ## Other resources
|
| + *
|
| + * * [Using the fullscreen API]
|
| + * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api) from
|
| + * WebPlatform.org.
|
| + * * [Fullscreen specification]
|
| + * (http://www.w3.org/TR/fullscreen/) from W3C.
|
| + */
|
| @DomName('Document.webkitFullscreenEnabled')
|
| @SupportedBrowser(SupportedBrowser.CHROME)
|
| @SupportedBrowser(SupportedBrowser.SAFARI)
|
|
|