Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(454)

Unified Diff: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate

Issue 68513006: o/~ Y muchos maaaaaaas... o/~ (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)
« no previous file with comments | « tools/dom/templates/html/impl/impl_ClientRect.darttemplate ('k') | tools/dom/templates/html/impl/impl_Window.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698