Index: sdk/lib/html/dart2js/html_dart2js.dart |
=================================================================== |
--- sdk/lib/html/dart2js/html_dart2js.dart (revision 26337) |
+++ sdk/lib/html/dart2js/html_dart2js.dart (working copy) |
@@ -1122,11 +1122,6 @@ |
@DocsEditable() |
String globalCompositeOperation; |
- @DomName('CanvasRenderingContext2D.imageSmoothingEnabled') |
- @DocsEditable() |
- @Experimental() // untriaged |
- bool imageSmoothingEnabled; |
- |
@DomName('CanvasRenderingContext2D.lineCap') |
@DocsEditable() |
String lineCap; |
@@ -1181,6 +1176,14 @@ |
@Experimental() |
final num backingStorePixelRatio; |
+ @JSName('webkitImageSmoothingEnabled') |
+ @DomName('CanvasRenderingContext2D.webkitImageSmoothingEnabled') |
+ @DocsEditable() |
+ @SupportedBrowser(SupportedBrowser.CHROME) |
+ @SupportedBrowser(SupportedBrowser.SAFARI) |
+ @Experimental() |
+ bool imageSmoothingEnabled; |
+ |
@JSName('arc') |
@DomName('CanvasRenderingContext2D.arc') |
@DocsEditable() |
@@ -1252,16 +1255,6 @@ |
@DocsEditable() |
CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native; |
- @DomName('CanvasRenderingContext2D.drawCustomFocusRing') |
- @DocsEditable() |
- @Experimental() // untriaged |
- bool drawCustomFocusRing(Element element) native; |
- |
- @DomName('CanvasRenderingContext2D.drawSystemFocusRing') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void drawSystemFocusRing(Element element) native; |
- |
@DomName('CanvasRenderingContext2D.fill') |
@DocsEditable() |
void fill([String winding]) native; |
@@ -6429,7 +6422,7 @@ |
@JSName('getAsString') |
@DomName('DataTransferItem.getAsString') |
@DocsEditable() |
- void _getAsString(_StringCallback callback) native; |
+ void _getAsString([_StringCallback callback]) native; |
@JSName('getAsString') |
@DomName('DataTransferItem.getAsString') |
@@ -7183,6 +7176,12 @@ |
@DocsEditable() |
Event $dom_createEvent(String eventType) native; |
+ @JSName('createNodeIterator') |
+ @DomName('Document.createNodeIterator') |
+ @DocsEditable() |
+ @Unstable() |
+ NodeIterator $dom_createNodeIterator(Node root, [int whatToShow, NodeFilter filter, bool expandEntityReferences]) native; |
+ |
@JSName('createRange') |
@DomName('Document.createRange') |
@DocsEditable() |
@@ -7216,6 +7215,11 @@ |
@Experimental() |
TouchList $dom_createTouchList() native; |
+ @JSName('createTreeWalker') |
+ @DomName('Document.createTreeWalker') |
+ @DocsEditable() |
+ TreeWalker $dom_createTreeWalker(Node root, [int whatToShow, NodeFilter filter, bool expandEntityReferences]) native; |
+ |
@JSName('elementFromPoint') |
@DomName('Document.elementFromPoint') |
@DocsEditable() |
@@ -9851,16 +9855,15 @@ |
@DocsEditable() |
bool hidden; |
+ @DomName('Element.id') |
+ @DocsEditable() |
+ String id; |
+ |
@JSName('innerHTML') |
@DomName('Element.innerHTML') |
@DocsEditable() |
String innerHtml; |
- @DomName('Element.inputMethodContext') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final InputMethodContext inputMethodContext; |
- |
@DomName('Element.isContentEditable') |
@DocsEditable() |
final bool isContentEditable; |
@@ -9907,6 +9910,12 @@ |
@DocsEditable() |
void click() native; |
+ @DomName('Element.getInputContext') |
+ @DocsEditable() |
+ // http://www.w3.org/TR/ime-api/#the-getinputcontext-method |
+ @Experimental() |
+ InputMethodContext getInputContext() native; |
+ |
@DomName('Element.ALLOW_KEYBOARD_INPUT') |
@DocsEditable() |
// https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-requestfullscreen |
@@ -9938,10 +9947,6 @@ |
@DocsEditable() |
final int clientWidth; |
- @DomName('Element.id') |
- @DocsEditable() |
- String id; |
- |
@DomName('Element.offsetHeight') |
@DocsEditable() |
final int offsetHeight; |
@@ -10034,13 +10039,6 @@ |
@Creates('_ClientRectList') |
List<Rect> getClientRects() native; |
- @DomName('Element.getDestinationInsertionPoints') |
- @DocsEditable() |
- @Experimental() // untriaged |
- @Returns('NodeList') |
- @Creates('NodeList') |
- List<Node> getDestinationInsertionPoints() native; |
- |
@DomName('Element.getElementsByClassName') |
@DocsEditable() |
@Returns('NodeList') |
@@ -10786,16 +10784,6 @@ |
// To suppress missing implicit constructor warnings. |
factory ErrorEvent._() { throw new UnsupportedError("Not supported"); } |
- @DomName('ErrorEvent.colno') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int colno; |
- |
- @DomName('ErrorEvent.error') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final Object error; |
- |
@DomName('ErrorEvent.filename') |
@DocsEditable() |
final String filename; |
@@ -12497,19 +12485,7 @@ |
@DocsEditable() |
final Element activeElement; |
- @DomName('HTMLDocument.captureEvents') |
- @DocsEditable() |
- // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture |
- @deprecated // deprecated |
- void captureEvents() native; |
- @DomName('HTMLDocument.releaseEvents') |
- @DocsEditable() |
- // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture |
- @deprecated // deprecated |
- void releaseEvents() native; |
- |
- |
@DomName('Document.body') |
BodyElement body; |
@@ -13416,6 +13392,16 @@ |
@Experimental() // untriaged |
final int width; |
} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+// WARNING: Do not edit - generated code. |
+ |
+ |
+@DomName('ImageBitmapCallback') |
+@Experimental() // untriaged |
+typedef void ImageBitmapCallback(ImageBitmap bitmap); |
// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -13772,6 +13758,8 @@ |
@SupportedBrowser(SupportedBrowser.SAFARI) |
@Experimental() |
// http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#concept-input-type-file-selected |
+ @Returns('_EntryArray') |
+ @Creates('_EntryArray') |
final List<Entry> entries; |
@JSName('webkitGrammar') |
@@ -14497,26 +14485,6 @@ |
// To suppress missing implicit constructor warnings. |
factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); } |
- @DomName('KeyboardEvent.DOM_KEY_LOCATION_LEFT') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int DOM_KEY_LOCATION_LEFT = 0x01; |
- |
- @DomName('KeyboardEvent.DOM_KEY_LOCATION_NUMPAD') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int DOM_KEY_LOCATION_NUMPAD = 0x03; |
- |
- @DomName('KeyboardEvent.DOM_KEY_LOCATION_RIGHT') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int DOM_KEY_LOCATION_RIGHT = 0x02; |
- |
- @DomName('KeyboardEvent.DOM_KEY_LOCATION_STANDARD') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int DOM_KEY_LOCATION_STANDARD = 0x00; |
- |
@DomName('KeyboardEvent.altGraphKey') |
@DocsEditable() |
@Experimental() // nonstandard |
@@ -14541,11 +14509,6 @@ |
@Experimental() // nonstandard |
final int keyLocation; |
- @DomName('KeyboardEvent.location') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int location; |
- |
@DomName('KeyboardEvent.metaKey') |
@DocsEditable() |
final bool metaKey; |
@@ -14554,11 +14517,6 @@ |
@DocsEditable() |
final bool shiftKey; |
- @DomName('KeyboardEvent.getModifierState') |
- @DocsEditable() |
- @Experimental() // untriaged |
- bool getModifierState(String keyArgument) native; |
- |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -17891,6 +17849,47 @@ |
@DocsEditable() |
static const int SHOW_TEXT = 0x00000004; |
} |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DomName('NodeIterator') |
+@Unstable() |
+class NodeIterator extends Interceptor native "NodeIterator" { |
+ factory NodeIterator(Node root, int whatToShow) { |
+ return document.$dom_createNodeIterator(root, whatToShow, null, false); |
+ } |
+ |
+ @DomName('NodeIterator.pointerBeforeReferenceNode') |
+ @DocsEditable() |
+ final bool pointerBeforeReferenceNode; |
+ |
+ @DomName('NodeIterator.referenceNode') |
+ @DocsEditable() |
+ final Node referenceNode; |
+ |
+ @DomName('NodeIterator.root') |
+ @DocsEditable() |
+ final Node root; |
+ |
+ @DomName('NodeIterator.whatToShow') |
+ @DocsEditable() |
+ final int whatToShow; |
+ |
+ @DomName('NodeIterator.detach') |
+ @DocsEditable() |
+ void detach() native; |
+ |
+ @DomName('NodeIterator.nextNode') |
+ @DocsEditable() |
+ Node nextNode() native; |
+ |
+ @DomName('NodeIterator.previousNode') |
+ @DocsEditable() |
+ Node previousNode() native; |
+ |
+} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -18122,6 +18121,11 @@ |
@DocsEditable() |
int checkPermission() native; |
+ @JSName('createHTMLNotification') |
+ @DomName('NotificationCenter.createHTMLNotification') |
+ @DocsEditable() |
+ Notification createHtmlNotification(String url) native; |
+ |
@DomName('NotificationCenter.createNotification') |
@DocsEditable() |
Notification createNotification(String iconUrl, String title, String body) native; |
@@ -18601,9 +18605,7 @@ |
@SupportedBrowser(SupportedBrowser.CHROME) |
@SupportedBrowser(SupportedBrowser.FIREFOX) |
@SupportedBrowser(SupportedBrowser.IE) |
-class Performance extends EventTarget native "Performance" { |
- // To suppress missing implicit constructor warnings. |
- factory Performance._() { throw new UnsupportedError("Not supported"); } |
+class Performance extends Interceptor native "Performance" { |
/// Checks if this type is supported on the current platform. |
static bool get supported => JS('bool', '!!(window.performance)'); |
@@ -19565,45 +19567,6 @@ |
@DocsEditable() |
-@DomName('RsaKeyGenParams') |
-@Experimental() // untriaged |
-class RsaKeyGenParams extends Algorithm native "RsaKeyGenParams" { |
- // To suppress missing implicit constructor warnings. |
- factory RsaKeyGenParams._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('RsaKeyGenParams.modulusLength') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int modulusLength; |
- |
- @DomName('RsaKeyGenParams.publicExponent') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final Uint8List publicExponent; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
-@DomName('RsaSsaParams') |
-@Experimental() // untriaged |
-class RsaSsaParams extends Algorithm native "RsaSsaParams" { |
- // To suppress missing implicit constructor warnings. |
- factory RsaSsaParams._() { throw new UnsupportedError("Not supported"); } |
- |
- @DomName('RsaSsaParams.hash') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final Algorithm hash; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
- |
- |
-@DocsEditable() |
@DomName('RTCDataChannel') |
// http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel |
@Experimental() |
@@ -19635,40 +19598,10 @@ |
@DocsEditable() |
final int bufferedAmount; |
- @DomName('RTCDataChannel.id') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int id; |
- |
@DomName('RTCDataChannel.label') |
@DocsEditable() |
final String label; |
- @DomName('RTCDataChannel.maxRetransmitTime') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int maxRetransmitTime; |
- |
- @DomName('RTCDataChannel.maxRetransmits') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final int maxRetransmits; |
- |
- @DomName('RTCDataChannel.negotiated') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final bool negotiated; |
- |
- @DomName('RTCDataChannel.ordered') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final bool ordered; |
- |
- @DomName('RTCDataChannel.protocol') |
- @DocsEditable() |
- @Experimental() // untriaged |
- final String protocol; |
- |
@DomName('RTCDataChannel.readyState') |
@DocsEditable() |
final String readyState; |
@@ -20865,16 +20798,6 @@ |
// To suppress missing implicit constructor warnings. |
factory SourceBuffer._() { throw new UnsupportedError("Not supported"); } |
- @DomName('SourceBuffer.appendWindowEnd') |
- @DocsEditable() |
- @Experimental() // untriaged |
- num appendWindowEnd; |
- |
- @DomName('SourceBuffer.appendWindowStart') |
- @DocsEditable() |
- @Experimental() // untriaged |
- num appendWindowStart; |
- |
@DomName('SourceBuffer.buffered') |
@DocsEditable() |
final TimeRanges buffered; |
@@ -20902,11 +20825,6 @@ |
@DocsEditable() |
@Experimental() // untriaged |
void appendBufferView(TypedData data) native; |
- |
- @DomName('SourceBuffer.remove') |
- @DocsEditable() |
- @Experimental() // untriaged |
- void remove(num start, num end) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -22033,15 +21951,15 @@ |
@DomName('SubtleCrypto.decrypt') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation decrypt(Map algorithm, CryptoKey key) { |
+ CryptoOperation decrypt(Map algorithm) { |
var algorithm_1 = convertDartToNative_Dictionary(algorithm); |
- return _decrypt_1(algorithm_1, key); |
+ return _decrypt_1(algorithm_1); |
} |
@JSName('decrypt') |
@DomName('SubtleCrypto.decrypt') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation _decrypt_1(algorithm, CryptoKey key) native; |
+ CryptoOperation _decrypt_1(algorithm) native; |
@DomName('SubtleCrypto.digest') |
@DocsEditable() |
@@ -22059,29 +21977,16 @@ |
@DomName('SubtleCrypto.encrypt') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation encrypt(Map algorithm, CryptoKey key) { |
+ CryptoOperation encrypt(Map algorithm) { |
var algorithm_1 = convertDartToNative_Dictionary(algorithm); |
- return _encrypt_1(algorithm_1, key); |
+ return _encrypt_1(algorithm_1); |
} |
@JSName('encrypt') |
@DomName('SubtleCrypto.encrypt') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation _encrypt_1(algorithm, CryptoKey key) native; |
+ CryptoOperation _encrypt_1(algorithm) native; |
- @DomName('SubtleCrypto.generateKey') |
- @DocsEditable() |
- @Experimental() // untriaged |
- Object generateKey(Map algorithm, bool extractable, List<String> keyUsages) { |
- var algorithm_1 = convertDartToNative_Dictionary(algorithm); |
- return _generateKey_1(algorithm_1, extractable, keyUsages); |
- } |
- @JSName('generateKey') |
- @DomName('SubtleCrypto.generateKey') |
- @DocsEditable() |
- @Experimental() // untriaged |
- Object _generateKey_1(algorithm, extractable, List<String> keyUsages) native; |
- |
@DomName('SubtleCrypto.importKey') |
@DocsEditable() |
@Experimental() // untriaged |
@@ -22098,28 +22003,28 @@ |
@DomName('SubtleCrypto.sign') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation sign(Map algorithm, CryptoKey key) { |
+ CryptoOperation sign(Map algorithm) { |
var algorithm_1 = convertDartToNative_Dictionary(algorithm); |
- return _sign_1(algorithm_1, key); |
+ return _sign_1(algorithm_1); |
} |
@JSName('sign') |
@DomName('SubtleCrypto.sign') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation _sign_1(algorithm, CryptoKey key) native; |
+ CryptoOperation _sign_1(algorithm) native; |
@DomName('SubtleCrypto.verify') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation verify(Map algorithm, CryptoKey key, TypedData signature) { |
+ CryptoOperation verify(Map algorithm) { |
var algorithm_1 = convertDartToNative_Dictionary(algorithm); |
- return _verify_1(algorithm_1, key, signature); |
+ return _verify_1(algorithm_1); |
} |
@JSName('verify') |
@DomName('SubtleCrypto.verify') |
@DocsEditable() |
@Experimental() // untriaged |
- CryptoOperation _verify_1(algorithm, CryptoKey key, TypedData signature) native; |
+ CryptoOperation _verify_1(algorithm) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -22706,13 +22611,6 @@ |
@DocsEditable() |
final String wholeText; |
- @DomName('Text.getDestinationInsertionPoints') |
- @DocsEditable() |
- @Experimental() // untriaged |
- @Returns('NodeList') |
- @Creates('NodeList') |
- List<Node> getDestinationInsertionPoints() native; |
- |
@DomName('Text.replaceWholeText') |
@DocsEditable() |
// http://dom.spec.whatwg.org/#dom-text-replacewholetext |
@@ -23596,6 +23494,69 @@ |
@DocsEditable() |
final String pseudoElement; |
} |
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DomName('TreeWalker') |
+@Unstable() |
+class TreeWalker extends Interceptor native "TreeWalker" { |
+ factory TreeWalker(Node root, int whatToShow) { |
+ return document.$dom_createTreeWalker(root, whatToShow, null, false); |
+ } |
+ |
+ @DomName('TreeWalker.currentNode') |
+ @DocsEditable() |
+ Node currentNode; |
+ |
+ @DomName('TreeWalker.expandEntityReferences') |
+ @DocsEditable() |
+ // http://dom.spec.whatwg.org/#dom-traversal |
+ @deprecated // deprecated |
+ final bool expandEntityReferences; |
+ |
+ @DomName('TreeWalker.filter') |
+ @DocsEditable() |
+ final NodeFilter filter; |
+ |
+ @DomName('TreeWalker.root') |
+ @DocsEditable() |
+ final Node root; |
+ |
+ @DomName('TreeWalker.whatToShow') |
+ @DocsEditable() |
+ final int whatToShow; |
+ |
+ @DomName('TreeWalker.firstChild') |
+ @DocsEditable() |
+ Node firstChild() native; |
+ |
+ @DomName('TreeWalker.lastChild') |
+ @DocsEditable() |
+ Node lastChild() native; |
+ |
+ @DomName('TreeWalker.nextNode') |
+ @DocsEditable() |
+ Node nextNode() native; |
+ |
+ @DomName('TreeWalker.nextSibling') |
+ @DocsEditable() |
+ Node nextSibling() native; |
+ |
+ @DomName('TreeWalker.parentNode') |
+ @DocsEditable() |
+ Node parentNode() native; |
+ |
+ @DomName('TreeWalker.previousNode') |
+ @DocsEditable() |
+ Node previousNode() native; |
+ |
+ @DomName('TreeWalker.previousSibling') |
+ @DocsEditable() |
+ Node previousSibling() native; |
+ |
+} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -24979,12 +24940,6 @@ |
@DocsEditable() |
void alert(String message) native; |
- @DomName('Window.captureEvents') |
- @DocsEditable() |
- // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture |
- @deprecated // deprecated |
- void captureEvents() native; |
- |
@DomName('Window.close') |
@DocsEditable() |
void close() native; |
@@ -24993,6 +24948,123 @@ |
@DocsEditable() |
bool confirm(String message) native; |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, ImageBitmapCallback callback, [int sx, int sy, int sw, int sh]) { |
+ if ((bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is ImageElement || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null) && sx == null && sy == null && sw == null && sh == null) { |
+ _createImageBitmap_1(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback); |
+ return; |
+ } |
+ if (sh != null && sw != null && sy != null && sx != null && (bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is ImageElement || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null)) { |
+ _createImageBitmap_2(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback, sx, sy, sw, sh); |
+ return; |
+ } |
+ if ((bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is VideoElement || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null) && sx == null && sy == null && sw == null && sh == null) { |
+ _createImageBitmap_3(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback); |
+ return; |
+ } |
+ if (sh != null && sw != null && sy != null && sx != null && (bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is VideoElement || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null)) { |
+ _createImageBitmap_4(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback, sx, sy, sw, sh); |
+ return; |
+ } |
+ if ((bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is CanvasRenderingContext2D || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null) && sx == null && sy == null && sw == null && sh == null) { |
+ _createImageBitmap_5(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback); |
+ return; |
+ } |
+ if (sh != null && sw != null && sy != null && sx != null && (bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is CanvasRenderingContext2D || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null)) { |
+ _createImageBitmap_6(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback, sx, sy, sw, sh); |
+ return; |
+ } |
+ if ((bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is CanvasElement || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null) && sx == null && sy == null && sw == null && sh == null) { |
+ _createImageBitmap_7(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback); |
+ return; |
+ } |
+ if (sh != null && sw != null && sy != null && sx != null && (bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is CanvasElement || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null)) { |
+ _createImageBitmap_8(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback, sx, sy, sw, sh); |
+ return; |
+ } |
+ if ((bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is ImageData || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null) && sx == null && sy == null && sw == null && sh == null) { |
+ var data_1 = convertDartToNative_ImageData(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video); |
+ _createImageBitmap_9(data_1, callback); |
+ return; |
+ } |
+ if (sh != null && sw != null && sy != null && sx != null && (bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is ImageData || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null)) { |
+ var data_2 = convertDartToNative_ImageData(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video); |
+ _createImageBitmap_10(data_2, callback, sx, sy, sw, sh); |
+ return; |
+ } |
+ if ((bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is ImageBitmap || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null) && sx == null && sy == null && sw == null && sh == null) { |
+ _createImageBitmap_11(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback); |
+ return; |
+ } |
+ if (sh != null && sw != null && sy != null && sx != null && (bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video is ImageBitmap || bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video == null)) { |
+ _createImageBitmap_12(bitmap_OR_canvas_OR_context_OR_data_OR_image_OR_video, callback, sx, sy, sw, sh); |
+ return; |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
+ } |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_1(ImageElement image, ImageBitmapCallback callback) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_2(ImageElement image, ImageBitmapCallback callback, sx, sy, sw, sh) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_3(VideoElement video, ImageBitmapCallback callback) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_4(VideoElement video, ImageBitmapCallback callback, sx, sy, sw, sh) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_5(CanvasRenderingContext2D context, ImageBitmapCallback callback) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_6(CanvasRenderingContext2D context, ImageBitmapCallback callback, sx, sy, sw, sh) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_7(CanvasElement canvas, ImageBitmapCallback callback) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_8(CanvasElement canvas, ImageBitmapCallback callback, sx, sy, sw, sh) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_9(data, ImageBitmapCallback callback) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_10(data, ImageBitmapCallback callback, sx, sy, sw, sh) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_11(ImageBitmap bitmap, ImageBitmapCallback callback) native; |
+ @JSName('createImageBitmap') |
+ @DomName('Window.createImageBitmap') |
+ @DocsEditable() |
+ @Experimental() // untriaged |
+ void _createImageBitmap_12(ImageBitmap bitmap, ImageBitmapCallback callback, sx, sy, sw, sh) native; |
+ |
@DomName('Window.find') |
@DocsEditable() |
@Experimental() // non-standard |
@@ -25063,12 +25135,6 @@ |
@DocsEditable() |
void print() native; |
- @DomName('Window.releaseEvents') |
- @DocsEditable() |
- // http://www.w3.org/TR/DOM-Level-2-Events/events.html#Events-flow-capture |
- @deprecated // deprecated |
- void releaseEvents() native; |
- |
@DomName('Window.resizeBy') |
@DocsEditable() |
void resizeBy(num x, num y) native; |
@@ -26525,6 +26591,132 @@ |
@DocsEditable() |
+@DomName('EntryArray') |
+// http://www.w3.org/TR/file-system-api/#the-entry-interface |
+@Experimental() |
+class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin<Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { |
+ |
+ @DomName('EntryArray.length') |
+ @DocsEditable() |
+ int get length => JS("int", "#.length", this); |
+ |
+ Entry operator[](int index) { |
+ if (JS("bool", "# >>> 0 !== # || # >= #", index, |
+ index, index, length)) |
+ throw new RangeError.range(index, 0, length); |
+ return JS("Entry", "#[#]", this, index); |
+ } |
+ void operator[]=(int index, Entry value) { |
+ throw new UnsupportedError("Cannot assign element of immutable List."); |
+ } |
+ // -- start List<Entry> mixins. |
+ // Entry is the element type. |
+ |
+ |
+ void set length(int value) { |
+ throw new UnsupportedError("Cannot resize immutable List."); |
+ } |
+ |
+ Entry get first { |
+ if (this.length > 0) { |
+ return JS('Entry', '#[0]', this); |
+ } |
+ throw new StateError("No elements"); |
+ } |
+ |
+ Entry get last { |
+ int len = this.length; |
+ if (len > 0) { |
+ return JS('Entry', '#[#]', this, len - 1); |
+ } |
+ throw new StateError("No elements"); |
+ } |
+ |
+ Entry get single { |
+ int len = this.length; |
+ if (len == 1) { |
+ return JS('Entry', '#[0]', this); |
+ } |
+ if (len == 0) throw new StateError("No elements"); |
+ throw new StateError("More than one element"); |
+ } |
+ |
+ Entry elementAt(int index) => this[index]; |
+ // -- end List<Entry> mixins. |
+ |
+ @DomName('EntryArray.item') |
+ @DocsEditable() |
+ Entry item(int index) native; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('EntryArraySync') |
+// http://www.w3.org/TR/file-system-api/#idl-def-EntrySync |
+@Experimental() |
+class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableListMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> native "EntryArraySync" { |
+ |
+ @DomName('EntryArraySync.length') |
+ @DocsEditable() |
+ int get length => JS("int", "#.length", this); |
+ |
+ _EntrySync operator[](int index) { |
+ if (JS("bool", "# >>> 0 !== # || # >= #", index, |
+ index, index, length)) |
+ throw new RangeError.range(index, 0, length); |
+ return JS("_EntrySync", "#[#]", this, index); |
+ } |
+ void operator[]=(int index, _EntrySync value) { |
+ throw new UnsupportedError("Cannot assign element of immutable List."); |
+ } |
+ // -- start List<_EntrySync> mixins. |
+ // _EntrySync is the element type. |
+ |
+ |
+ void set length(int value) { |
+ throw new UnsupportedError("Cannot resize immutable List."); |
+ } |
+ |
+ _EntrySync get first { |
+ if (this.length > 0) { |
+ return JS('_EntrySync', '#[0]', this); |
+ } |
+ throw new StateError("No elements"); |
+ } |
+ |
+ _EntrySync get last { |
+ int len = this.length; |
+ if (len > 0) { |
+ return JS('_EntrySync', '#[#]', this, len - 1); |
+ } |
+ throw new StateError("No elements"); |
+ } |
+ |
+ _EntrySync get single { |
+ int len = this.length; |
+ if (len == 1) { |
+ return JS('_EntrySync', '#[0]', this); |
+ } |
+ if (len == 0) throw new StateError("No elements"); |
+ throw new StateError("More than one element"); |
+ } |
+ |
+ _EntrySync elementAt(int index) => this[index]; |
+ // -- end List<_EntrySync> mixins. |
+ |
+ @DomName('EntryArraySync.item') |
+ @DocsEditable() |
+ _EntrySync item(int index) native; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
@DomName('EntrySync') |
// http://www.w3.org/TR/file-system-api/#idl-def-EntrySync |
@Experimental() |