| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index ad0864da110958109a1be8a4f2b938c0f437887e..a8fb84096fd0ddc6ccec03db9673e3cc3e3da4da 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -6813,7 +6813,7 @@ class DataTransfer extends NativeFieldWrapperClass2 {
|
| * Gets the data for the specified type.
|
| *
|
| * The data is only available from within a drop operation (such as an
|
| - * [Element.onDrop] event) and will return `null` before the event is
|
| + * [Element.onDrop] event) and will return null before the event is
|
| * triggered.
|
| *
|
| * Data transfer is prohibited across domains. If a drag originates
|
| @@ -11425,7 +11425,7 @@ abstract class Element extends Node implements ParentNode, ChildNode {
|
| *
|
| * ## Other resources
|
| *
|
| - * * [Using the full-screen API]
|
| + * * [Using the fullscreen API]
|
| * (http://docs.webplatform.org/wiki/tutorials/using_the_full-screen_api)
|
| * tutorial from WebPlatform.org.
|
| * * [Fullscreen specification]
|
| @@ -14146,6 +14146,19 @@ class HtmlDocument extends Document {
|
| _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)
|
| @@ -14162,12 +14175,43 @@ class HtmlDocument extends Document {
|
| _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)
|
| @@ -15049,7 +15093,7 @@ class HttpRequest extends HttpRequestEventTarget {
|
| String getAllResponseHeaders() native "XMLHttpRequest_getAllResponseHeaders_Callback";
|
|
|
| /**
|
| - * Return the response header named `header`, or `null` if not found.
|
| + * Return the response header named `header`, or null if not found.
|
| *
|
| * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_header_fields#Responses)
|
| * for a list of common response headers.
|
| @@ -20796,7 +20840,7 @@ class Node extends EventTarget {
|
| /**
|
| * The document this node belongs to.
|
| *
|
| - * Returns `null` if this node does not belong to any document.
|
| + * Returns null if this node does not belong to any document.
|
| *
|
| * ## Other resources
|
| *
|
| @@ -20811,7 +20855,7 @@ class Node extends EventTarget {
|
| /**
|
| * The parent element of this node.
|
| *
|
| - * Returns `null` if this node either does not have a parent or its parent is
|
| + * Returns null if this node either does not have a parent or its parent is
|
| * not an element.
|
| *
|
| * ## Other resources
|
| @@ -27849,13 +27893,13 @@ class Url extends NativeFieldWrapperClass2 {
|
| if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_1(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_2(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is MediaSource || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_3(blob_OR_source_OR_stream);
|
| }
|
| - if ((blob_OR_source_OR_stream is _WebKitMediaSource || blob_OR_source_OR_stream == null)) {
|
| + if ((blob_OR_source_OR_stream is MediaStream || blob_OR_source_OR_stream == null)) {
|
| return _createObjectURL_4(blob_OR_source_OR_stream);
|
| }
|
| throw new ArgumentError("Incorrect number or type of arguments");
|
| @@ -30408,7 +30452,7 @@ class _ClientRect extends NativeFieldWrapperClass2 implements Rectangle {
|
| * The intersection of two axis-aligned rectangles, if any, is always another
|
| * axis-aligned rectangle.
|
| *
|
| - * Returns the intersection of this and `other`, or `null` if they don't
|
| + * Returns the intersection of this and `other`, or null if they don't
|
| * intersect.
|
| */
|
| Rectangle intersection(Rectangle other) {
|
| @@ -32404,10 +32448,10 @@ abstract class CssClassSet implements Set<String> {
|
| * This is the Dart equivalent of jQuery's
|
| * [addClass](http://api.jquery.com/addClass/).
|
| *
|
| - * If this corresponds to one element. Returns `true` if [value] was added to
|
| - * the set, otherwise `false`.
|
| + * If this corresponds to one element. Returns true if [value] was added to
|
| + * the set, otherwise false.
|
| *
|
| - * If this corresponds to many elements, `null` is always returned.
|
| + * If this corresponds to many elements, null is always returned.
|
| */
|
| bool add(String value);
|
|
|
|
|