Chromium Code Reviews| Index: sdk/lib/html/dart2js/html_dart2js.dart |
| diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart |
| index 0e82128678b47b0b0d82e8f243460fe717558d18..68cf4a4fd3cd9076911b7a29fe6306f4626ac0f9 100644 |
| --- a/sdk/lib/html/dart2js/html_dart2js.dart |
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart |
| @@ -1,6 +1,7 @@ |
| library html; |
| import 'dart:html_common'; |
| +import 'dart:indexed_db'; |
| import 'dart:isolate'; |
| import 'dart:json'; |
| import 'dart:svg' as svg; |
| @@ -266,6 +267,74 @@ class AppletElement extends Element implements Element native "*HTMLAppletElemen |
| // BSD-style license that can be found in the LICENSE file. |
| +/// @domName DOMApplicationCache; @docsEditable true |
| +class ApplicationCache extends EventTarget native "*DOMApplicationCache" { |
| + |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + ApplicationCacheEvents get on => |
| + new ApplicationCacheEvents(this); |
| + |
| + static const int CHECKING = 2; |
| + |
| + static const int DOWNLOADING = 3; |
| + |
| + static const int IDLE = 1; |
| + |
| + static const int OBSOLETE = 5; |
| + |
| + static const int UNCACHED = 0; |
| + |
| + static const int UPDATEREADY = 4; |
| + |
| + /// @domName DOMApplicationCache.status; @docsEditable true |
| + final int status; |
| + |
| + /// @domName DOMApplicationCache.abort; @docsEditable true |
| + void abort() native; |
| + |
| + /// @domName DOMApplicationCache.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + |
| + /// @domName DOMApplicationCache.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event evt) native; |
| + |
| + /// @domName DOMApplicationCache.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + |
| + /// @domName DOMApplicationCache.swapCache; @docsEditable true |
| + void swapCache() native; |
| + |
| + /// @domName DOMApplicationCache.update; @docsEditable true |
| + void update() native; |
| +} |
| + |
| +class ApplicationCacheEvents extends Events { |
| + ApplicationCacheEvents(EventTarget _ptr) : super(_ptr); |
| + |
| + EventListenerList get cached => this['cached']; |
| + |
| + EventListenerList get checking => this['checking']; |
| + |
| + EventListenerList get downloading => this['downloading']; |
| + |
| + EventListenerList get error => this['error']; |
| + |
| + EventListenerList get noUpdate => this['noupdate']; |
| + |
| + EventListenerList get obsolete => this['obsolete']; |
| + |
| + EventListenerList get progress => this['progress']; |
| + |
| + EventListenerList get updateReady => this['updateready']; |
| +} |
| +// 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. |
| + |
| + |
| /// @domName HTMLAreaElement; @docsEditable true |
| class AreaElement extends Element implements Element native "*HTMLAreaElement" { |
| @@ -639,4358 +708,4358 @@ class ButtonElement extends Element implements Element native "*HTMLButtonElemen |
| /// @domName CDATASection; @docsEditable true |
| -class CDATASection extends Text native "*CDATASection" { |
| +class CDataSection extends Text native "*CDATASection" { |
| } |
| // 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. |
| -/// @domName CSSCharsetRule; @docsEditable true |
| -class CSSCharsetRule extends CSSRule native "*CSSCharsetRule" { |
| +/// @domName HTMLCanvasElement |
| +class CanvasElement extends Element implements Element native "*HTMLCanvasElement" { |
| - /// @domName CSSCharsetRule.encoding; @docsEditable true |
| - String encoding; |
| -} |
| -// 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. |
| + factory CanvasElement({int width, int height}) { |
| + var e = document.$dom_createElement("canvas"); |
| + if (width != null) e.width = width; |
| + if (height != null) e.height = height; |
| + return e; |
| + } |
| + |
| + /// @domName HTMLCanvasElement.height; @docsEditable true |
| + int height; |
| + /// @domName HTMLCanvasElement.width; @docsEditable true |
| + int width; |
| -/// @domName CSSFontFaceRule; @docsEditable true |
| -class CSSFontFaceRule extends CSSRule native "*CSSFontFaceRule" { |
| + /// @domName HTMLCanvasElement.toDataURL; @docsEditable true |
| + @JSName('toDataURL') |
| + String toDataUrl(String type, [num quality]) native; |
| - /// @domName CSSFontFaceRule.style; @docsEditable true |
| - final CSSStyleDeclaration style; |
| + |
| + CanvasRenderingContext getContext(String contextId) native; |
| + CanvasRenderingContext2D get context2d => getContext('2d'); |
| } |
| // 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. |
| -/// @domName CSSImportRule; @docsEditable true |
| -class CSSImportRule extends CSSRule native "*CSSImportRule" { |
| - |
| - /// @domName CSSImportRule.href; @docsEditable true |
| - final String href; |
| - |
| - /// @domName CSSImportRule.media; @docsEditable true |
| - final MediaList media; |
| +/// @domName CanvasGradient; @docsEditable true |
| +class CanvasGradient native "*CanvasGradient" { |
| - /// @domName CSSImportRule.styleSheet; @docsEditable true |
| - final CSSStyleSheet styleSheet; |
| + /// @domName CanvasGradient.addColorStop; @docsEditable true |
| + void addColorStop(num offset, String color) 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. |
| -/// @domName WebKitCSSKeyframeRule; @docsEditable true |
| -class CSSKeyframeRule extends CSSRule native "*WebKitCSSKeyframeRule" { |
| - |
| - /// @domName WebKitCSSKeyframeRule.keyText; @docsEditable true |
| - String keyText; |
| - |
| - /// @domName WebKitCSSKeyframeRule.style; @docsEditable true |
| - final CSSStyleDeclaration style; |
| +/// @domName CanvasPattern; @docsEditable true |
| +class CanvasPattern native "*CanvasPattern" { |
| } |
| // 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. |
| -/// @domName WebKitCSSKeyframesRule; @docsEditable true |
| -class CSSKeyframesRule extends CSSRule native "*WebKitCSSKeyframesRule" { |
| - |
| - /// @domName WebKitCSSKeyframesRule.cssRules; @docsEditable true |
| - @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
| - final List<CSSRule> cssRules; |
| - |
| - /// @domName WebKitCSSKeyframesRule.name; @docsEditable true |
| - String name; |
| - |
| - /// @domName WebKitCSSKeyframesRule.deleteRule; @docsEditable true |
| - void deleteRule(String key) native; |
| - |
| - /// @domName WebKitCSSKeyframesRule.findRule; @docsEditable true |
| - CSSKeyframeRule findRule(String key) native; |
| +/// @domName CanvasRenderingContext; @docsEditable true |
| +class CanvasRenderingContext native "*CanvasRenderingContext" { |
| - /// @domName WebKitCSSKeyframesRule.insertRule; @docsEditable true |
| - void insertRule(String rule) native; |
| + /// @domName CanvasRenderingContext.canvas; @docsEditable true |
| + final CanvasElement canvas; |
| } |
| // 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. |
| -/// @domName WebKitCSSMatrix; @docsEditable true |
| -class CSSMatrix native "*WebKitCSSMatrix" { |
| - |
| - factory CSSMatrix([String cssValue]) { |
| - if (!?cssValue) { |
| - return _CSSMatrixFactoryProvider.createCSSMatrix(); |
| - } |
| - return _CSSMatrixFactoryProvider.createCSSMatrix(cssValue); |
| - } |
| - |
| - /// @domName WebKitCSSMatrix.a; @docsEditable true |
| - num a; |
| - |
| - /// @domName WebKitCSSMatrix.b; @docsEditable true |
| - num b; |
| - |
| - /// @domName WebKitCSSMatrix.c; @docsEditable true |
| - num c; |
| - |
| - /// @domName WebKitCSSMatrix.d; @docsEditable true |
| - num d; |
| - |
| - /// @domName WebKitCSSMatrix.e; @docsEditable true |
| - num e; |
| +/// @domName CanvasRenderingContext2D |
| +class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRenderingContext2D" { |
| - /// @domName WebKitCSSMatrix.f; @docsEditable true |
| - num f; |
| + /// @domName CanvasRenderingContext2D.fillStyle; @docsEditable true |
| + dynamic fillStyle; |
| - /// @domName WebKitCSSMatrix.m11; @docsEditable true |
| - num m11; |
| + /// @domName CanvasRenderingContext2D.font; @docsEditable true |
| + String font; |
| - /// @domName WebKitCSSMatrix.m12; @docsEditable true |
| - num m12; |
| + /// @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true |
| + num globalAlpha; |
| - /// @domName WebKitCSSMatrix.m13; @docsEditable true |
| - num m13; |
| + /// @domName CanvasRenderingContext2D.globalCompositeOperation; @docsEditable true |
| + String globalCompositeOperation; |
| - /// @domName WebKitCSSMatrix.m14; @docsEditable true |
| - num m14; |
| + /// @domName CanvasRenderingContext2D.lineCap; @docsEditable true |
| + String lineCap; |
| - /// @domName WebKitCSSMatrix.m21; @docsEditable true |
| - num m21; |
| + /// @domName CanvasRenderingContext2D.lineDashOffset; @docsEditable true |
| + num lineDashOffset; |
| - /// @domName WebKitCSSMatrix.m22; @docsEditable true |
| - num m22; |
| + /// @domName CanvasRenderingContext2D.lineJoin; @docsEditable true |
| + String lineJoin; |
| - /// @domName WebKitCSSMatrix.m23; @docsEditable true |
| - num m23; |
| + /// @domName CanvasRenderingContext2D.lineWidth; @docsEditable true |
| + num lineWidth; |
| - /// @domName WebKitCSSMatrix.m24; @docsEditable true |
| - num m24; |
| + /// @domName CanvasRenderingContext2D.miterLimit; @docsEditable true |
| + num miterLimit; |
| - /// @domName WebKitCSSMatrix.m31; @docsEditable true |
| - num m31; |
| + /// @domName CanvasRenderingContext2D.shadowBlur; @docsEditable true |
| + num shadowBlur; |
| - /// @domName WebKitCSSMatrix.m32; @docsEditable true |
| - num m32; |
| + /// @domName CanvasRenderingContext2D.shadowColor; @docsEditable true |
| + String shadowColor; |
| - /// @domName WebKitCSSMatrix.m33; @docsEditable true |
| - num m33; |
| + /// @domName CanvasRenderingContext2D.shadowOffsetX; @docsEditable true |
| + num shadowOffsetX; |
| - /// @domName WebKitCSSMatrix.m34; @docsEditable true |
| - num m34; |
| + /// @domName CanvasRenderingContext2D.shadowOffsetY; @docsEditable true |
| + num shadowOffsetY; |
| - /// @domName WebKitCSSMatrix.m41; @docsEditable true |
| - num m41; |
| + /// @domName CanvasRenderingContext2D.strokeStyle; @docsEditable true |
| + dynamic strokeStyle; |
| - /// @domName WebKitCSSMatrix.m42; @docsEditable true |
| - num m42; |
| + /// @domName CanvasRenderingContext2D.textAlign; @docsEditable true |
| + String textAlign; |
| - /// @domName WebKitCSSMatrix.m43; @docsEditable true |
| - num m43; |
| + /// @domName CanvasRenderingContext2D.textBaseline; @docsEditable true |
| + String textBaseline; |
| - /// @domName WebKitCSSMatrix.m44; @docsEditable true |
| - num m44; |
| + /// @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio; @docsEditable true |
| + final num webkitBackingStorePixelRatio; |
| - /// @domName WebKitCSSMatrix.inverse; @docsEditable true |
| - CSSMatrix inverse() native; |
| + /// @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled; @docsEditable true |
| + bool webkitImageSmoothingEnabled; |
| - /// @domName WebKitCSSMatrix.multiply; @docsEditable true |
| - CSSMatrix multiply(CSSMatrix secondMatrix) native; |
| + /// @domName CanvasRenderingContext2D.webkitLineDash; @docsEditable true |
| + List webkitLineDash; |
| - /// @domName WebKitCSSMatrix.rotate; @docsEditable true |
| - CSSMatrix rotate(num rotX, num rotY, num rotZ) native; |
| + /// @domName CanvasRenderingContext2D.webkitLineDashOffset; @docsEditable true |
| + num webkitLineDashOffset; |
| - /// @domName WebKitCSSMatrix.rotateAxisAngle; @docsEditable true |
| - CSSMatrix rotateAxisAngle(num x, num y, num z, num angle) native; |
| + /// @domName CanvasRenderingContext2D.arc; @docsEditable true |
| + void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native; |
| - /// @domName WebKitCSSMatrix.scale; @docsEditable true |
| - CSSMatrix scale(num scaleX, num scaleY, num scaleZ) native; |
| + /// @domName CanvasRenderingContext2D.arcTo; @docsEditable true |
| + void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
| - /// @domName WebKitCSSMatrix.setMatrixValue; @docsEditable true |
| - void setMatrixValue(String string) native; |
| + /// @domName CanvasRenderingContext2D.beginPath; @docsEditable true |
| + void beginPath() native; |
| - /// @domName WebKitCSSMatrix.skewX; @docsEditable true |
| - CSSMatrix skewX(num angle) native; |
| + /// @domName CanvasRenderingContext2D.bezierCurveTo; @docsEditable true |
| + void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native; |
| - /// @domName WebKitCSSMatrix.skewY; @docsEditable true |
| - CSSMatrix skewY(num angle) native; |
| + /// @domName CanvasRenderingContext2D.clearRect; @docsEditable true |
| + void clearRect(num x, num y, num width, num height) native; |
| - /// @domName WebKitCSSMatrix.toString; @docsEditable true |
| - String toString() native; |
| + /// @domName CanvasRenderingContext2D.clearShadow; @docsEditable true |
| + void clearShadow() native; |
| - /// @domName WebKitCSSMatrix.translate; @docsEditable true |
| - CSSMatrix translate(num x, num y, num z) 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. |
| + /// @domName CanvasRenderingContext2D.clip; @docsEditable true |
| + void clip() native; |
| + /// @domName CanvasRenderingContext2D.closePath; @docsEditable true |
| + void closePath() native; |
| -/// @domName CSSMediaRule; @docsEditable true |
| -class CSSMediaRule extends CSSRule native "*CSSMediaRule" { |
| - |
| - /// @domName CSSMediaRule.cssRules; @docsEditable true |
| - @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
| - final List<CSSRule> cssRules; |
| - |
| - /// @domName CSSMediaRule.media; @docsEditable true |
| - final MediaList media; |
| - |
| - /// @domName CSSMediaRule.deleteRule; @docsEditable true |
| - void deleteRule(int index) native; |
| - |
| - /// @domName CSSMediaRule.insertRule; @docsEditable true |
| - int insertRule(String rule, 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. |
| - |
| + /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true |
| + ImageData createImageData(imagedata_OR_sw, [num sh]) { |
| + if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw == null)) && |
| + !?sh) { |
| + var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); |
| + return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); |
| + } |
| + if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null))) { |
| + return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh)); |
| + } |
| + throw new ArgumentError("Incorrect number or type of arguments"); |
| + } |
| + @JSName('createImageData') |
| + @Creates('ImageData|=Object') |
| + _createImageData_1(imagedata) native; |
| + @JSName('createImageData') |
| + @Creates('ImageData|=Object') |
| + _createImageData_2(num sw, sh) native; |
| -/// @domName CSSPageRule; @docsEditable true |
| -class CSSPageRule extends CSSRule native "*CSSPageRule" { |
| + /// @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true |
| + CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| - /// @domName CSSPageRule.selectorText; @docsEditable true |
| - String selectorText; |
| + /// @domName CanvasRenderingContext2D.createPattern; @docsEditable true |
| + CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
| - /// @domName CSSPageRule.style; @docsEditable true |
| - final CSSStyleDeclaration style; |
| -} |
| -// 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. |
| + /// @domName CanvasRenderingContext2D.createRadialGradient; @docsEditable true |
| + CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native; |
| + /// @domName CanvasRenderingContext2D.drawImage; @docsEditable true |
| + void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; |
| -/// @domName CSSPrimitiveValue; @docsEditable true |
| -class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" { |
| + /// @domName CanvasRenderingContext2D.drawImageFromRect; @docsEditable true |
| + void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, num dx, num dy, num dw, num dh, String compositeOperation]) native; |
| - static const int CSS_ATTR = 22; |
| + /// @domName CanvasRenderingContext2D.fill; @docsEditable true |
| + void fill() native; |
| - static const int CSS_CM = 6; |
| + /// @domName CanvasRenderingContext2D.fillRect; @docsEditable true |
| + void fillRect(num x, num y, num width, num height) native; |
| - static const int CSS_COUNTER = 23; |
| + /// @domName CanvasRenderingContext2D.fillText; @docsEditable true |
| + void fillText(String text, num x, num y, [num maxWidth]) native; |
| - static const int CSS_DEG = 11; |
| + /// @domName CanvasRenderingContext2D.getImageData; @docsEditable true |
| + ImageData getImageData(num sx, num sy, num sw, num sh) { |
| + return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
| + } |
| + @JSName('getImageData') |
| + @Creates('ImageData|=Object') |
| + _getImageData_1(sx, sy, sw, sh) native; |
| - static const int CSS_DIMENSION = 18; |
| + /// @domName CanvasRenderingContext2D.getLineDash; @docsEditable true |
| + List<num> getLineDash() native; |
| - static const int CSS_EMS = 3; |
| + /// @domName CanvasRenderingContext2D.isPointInPath; @docsEditable true |
| + bool isPointInPath(num x, num y) native; |
| - static const int CSS_EXS = 4; |
| + /// @domName CanvasRenderingContext2D.lineTo; @docsEditable true |
| + void lineTo(num x, num y) native; |
| - static const int CSS_GRAD = 13; |
| + /// @domName CanvasRenderingContext2D.measureText; @docsEditable true |
| + TextMetrics measureText(String text) native; |
| - static const int CSS_HZ = 16; |
| + /// @domName CanvasRenderingContext2D.moveTo; @docsEditable true |
| + void moveTo(num x, num y) native; |
| - static const int CSS_IDENT = 21; |
| + /// @domName CanvasRenderingContext2D.putImageData; @docsEditable true |
| + void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) { |
| + if (!?dirtyX && |
| + !?dirtyY && |
| + !?dirtyWidth && |
| + !?dirtyHeight) { |
| + var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| + _putImageData_1(imagedata_1, dx, dy); |
| + return; |
| + } |
| + var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| + _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight); |
| + return; |
| + throw new ArgumentError("Incorrect number or type of arguments"); |
| + } |
| + @JSName('putImageData') |
| + void _putImageData_1(imagedata, dx, dy) native; |
| + @JSName('putImageData') |
| + void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native; |
| - static const int CSS_IN = 8; |
| + /// @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true |
| + void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
| - static const int CSS_KHZ = 17; |
| + /// @domName CanvasRenderingContext2D.rect; @docsEditable true |
| + void rect(num x, num y, num width, num height) native; |
| - static const int CSS_MM = 7; |
| + /// @domName CanvasRenderingContext2D.restore; @docsEditable true |
| + void restore() native; |
| - static const int CSS_MS = 14; |
| + /// @domName CanvasRenderingContext2D.rotate; @docsEditable true |
| + void rotate(num angle) native; |
| - static const int CSS_NUMBER = 1; |
| + /// @domName CanvasRenderingContext2D.save; @docsEditable true |
| + void save() native; |
| - static const int CSS_PC = 10; |
| + /// @domName CanvasRenderingContext2D.scale; @docsEditable true |
| + void scale(num sx, num sy) native; |
| - static const int CSS_PERCENTAGE = 2; |
| + /// @domName CanvasRenderingContext2D.setAlpha; @docsEditable true |
| + void setAlpha(num alpha) native; |
| - static const int CSS_PT = 9; |
| + /// @domName CanvasRenderingContext2D.setCompositeOperation; @docsEditable true |
| + void setCompositeOperation(String compositeOperation) native; |
| - static const int CSS_PX = 5; |
| + /// @domName CanvasRenderingContext2D.setLineCap; @docsEditable true |
| + void setLineCap(String cap) native; |
| - static const int CSS_RAD = 12; |
| + /// @domName CanvasRenderingContext2D.setLineDash; @docsEditable true |
| + void setLineDash(List<num> dash) native; |
| - static const int CSS_RECT = 24; |
| + /// @domName CanvasRenderingContext2D.setLineJoin; @docsEditable true |
| + void setLineJoin(String join) native; |
| - static const int CSS_RGBCOLOR = 25; |
| + /// @domName CanvasRenderingContext2D.setLineWidth; @docsEditable true |
| + void setLineWidth(num width) native; |
| - static const int CSS_S = 15; |
| + /// @domName CanvasRenderingContext2D.setMiterLimit; @docsEditable true |
| + void setMiterLimit(num limit) native; |
| - static const int CSS_STRING = 19; |
| + /// @domName CanvasRenderingContext2D.setShadow; @docsEditable true |
| + void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native; |
| - static const int CSS_UNKNOWN = 0; |
| + /// @domName CanvasRenderingContext2D.setTransform; @docsEditable true |
| + void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| - static const int CSS_URI = 20; |
| + /// @domName CanvasRenderingContext2D.stroke; @docsEditable true |
| + void stroke() native; |
| - static const int CSS_VH = 27; |
| + /// @domName CanvasRenderingContext2D.strokeRect; @docsEditable true |
| + void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; |
| - static const int CSS_VMIN = 28; |
| + /// @domName CanvasRenderingContext2D.strokeText; @docsEditable true |
| + void strokeText(String text, num x, num y, [num maxWidth]) native; |
| - static const int CSS_VW = 26; |
| + /// @domName CanvasRenderingContext2D.transform; @docsEditable true |
| + void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| - /// @domName CSSPrimitiveValue.primitiveType; @docsEditable true |
| - final int primitiveType; |
| + /// @domName CanvasRenderingContext2D.translate; @docsEditable true |
| + void translate(num tx, num ty) native; |
| - /// @domName CSSPrimitiveValue.getCounterValue; @docsEditable true |
| - Counter getCounterValue() native; |
| + /// @domName CanvasRenderingContext2D.webkitGetImageDataHD; @docsEditable true |
| + ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { |
| + return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh)); |
| + } |
| + @JSName('webkitGetImageDataHD') |
| + @Creates('ImageData|=Object') |
| + _webkitGetImageDataHD_1(sx, sy, sw, sh) native; |
| - /// @domName CSSPrimitiveValue.getFloatValue; @docsEditable true |
| - num getFloatValue(int unitType) native; |
| + /// @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true |
| + void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) { |
| + if (!?dirtyX && |
| + !?dirtyY && |
| + !?dirtyWidth && |
| + !?dirtyHeight) { |
| + var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| + _webkitPutImageDataHD_1(imagedata_1, dx, dy); |
| + return; |
| + } |
| + var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| + _webkitPutImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight); |
| + return; |
| + throw new ArgumentError("Incorrect number or type of arguments"); |
| + } |
| + @JSName('webkitPutImageDataHD') |
| + void _webkitPutImageDataHD_1(imagedata, dx, dy) native; |
| + @JSName('webkitPutImageDataHD') |
| + void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native; |
| - /// @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true |
| - @JSName('getRGBColorValue') |
| - RGBColor getRgbColorValue() native; |
| - /// @domName CSSPrimitiveValue.getRectValue; @docsEditable true |
| - Rect getRectValue() native; |
| + /** |
| + * Sets the color used inside shapes. |
| + * [r], [g], [b] are 0-255, [a] is 0-1. |
| + */ |
| + void setFillColorRgb(int r, int g, int b, [num a = 1]) { |
| + this.fillStyle = 'rgba($r, $g, $b, $a)'; |
| + } |
| - /// @domName CSSPrimitiveValue.getStringValue; @docsEditable true |
| - String getStringValue() native; |
| + /** |
| + * Sets the color used inside shapes. |
| + * [h] is in degrees, 0-360. |
| + * [s], [l] are in percent, 0-100. |
| + * [a] is 0-1. |
| + */ |
| + void setFillColorHsl(int h, num s, num l, [num a = 1]) { |
| + this.fillStyle = 'hsla($h, $s%, $l%, $a)'; |
| + } |
| - /// @domName CSSPrimitiveValue.setFloatValue; @docsEditable true |
| - void setFloatValue(int unitType, num floatValue) native; |
| + /** |
| + * Sets the color used for stroking shapes. |
| + * [r], [g], [b] are 0-255, [a] is 0-1. |
| + */ |
| + void setStrokeColorRgb(int r, int g, int b, [num a = 1]) { |
| + this.strokeStyle = 'rgba($r, $g, $b, $a)'; |
| + } |
| - /// @domName CSSPrimitiveValue.setStringValue; @docsEditable true |
| - void setStringValue(int stringType, String stringValue) native; |
| + /** |
| + * Sets the color used for stroking shapes. |
| + * [h] is in degrees, 0-360. |
| + * [s], [l] are in percent, 0-100. |
| + * [a] is 0-1. |
| + */ |
| + void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { |
| + this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; |
| + } |
| } |
| // 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. |
| -/// @domName CSSRule; @docsEditable true |
| -class CSSRule native "*CSSRule" { |
| - |
| - static const int CHARSET_RULE = 2; |
| +/// @domName CharacterData; @docsEditable true |
| +class CharacterData extends Node native "*CharacterData" { |
| - static const int FONT_FACE_RULE = 5; |
| + /// @domName CharacterData.data; @docsEditable true |
| + String data; |
| - static const int IMPORT_RULE = 3; |
| + /// @domName CharacterData.length; @docsEditable true |
| + final int length; |
| - static const int MEDIA_RULE = 4; |
| + /// @domName CharacterData.appendData; @docsEditable true |
| + void appendData(String data) native; |
| - static const int PAGE_RULE = 6; |
| + /// @domName CharacterData.deleteData; @docsEditable true |
| + void deleteData(int offset, int length) native; |
| - static const int STYLE_RULE = 1; |
| + /// @domName CharacterData.insertData; @docsEditable true |
| + void insertData(int offset, String data) native; |
| - static const int UNKNOWN_RULE = 0; |
| + /// @domName CharacterData.remove; @docsEditable true |
| + void remove() native; |
| - static const int WEBKIT_KEYFRAMES_RULE = 7; |
| + /// @domName CharacterData.replaceData; @docsEditable true |
| + void replaceData(int offset, int length, String data) native; |
| - static const int WEBKIT_KEYFRAME_RULE = 8; |
| + /// @domName CharacterData.substringData; @docsEditable true |
| + String substringData(int offset, int length) 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. |
| - /// @domName CSSRule.cssText; @docsEditable true |
| - String cssText; |
| - /// @domName CSSRule.parentRule; @docsEditable true |
| - final CSSRule parentRule; |
| +/// @domName ClientRect; @docsEditable true |
| +class ClientRect native "*ClientRect" { |
| - /// @domName CSSRule.parentStyleSheet; @docsEditable true |
| - final CSSStyleSheet parentStyleSheet; |
| + /// @domName ClientRect.bottom; @docsEditable true |
| + final num bottom; |
| - /// @domName CSSRule.type; @docsEditable true |
| - final int type; |
| + /// @domName ClientRect.height; @docsEditable true |
| + final num height; |
| + |
| + /// @domName ClientRect.left; @docsEditable true |
| + final num left; |
| + |
| + /// @domName ClientRect.right; @docsEditable true |
| + final num right; |
| + |
| + /// @domName ClientRect.top; @docsEditable true |
| + final num top; |
| + |
| + /// @domName ClientRect.width; @docsEditable true |
| + final num 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. |
| -String _cachedBrowserPrefix; |
| +/// @domName Clipboard; @docsEditable true |
| +class Clipboard native "*Clipboard" { |
| -String get _browserPrefix { |
| - if (_cachedBrowserPrefix == null) { |
| - if (_Device.isFirefox) { |
| - _cachedBrowserPrefix = '-moz-'; |
| - } else if (_Device.isIE) { |
| - _cachedBrowserPrefix = '-ms-'; |
| - } else if (_Device.isOpera) { |
| - _cachedBrowserPrefix = '-o-'; |
| - } else { |
| - _cachedBrowserPrefix = '-webkit-'; |
| - } |
| - } |
| - return _cachedBrowserPrefix; |
| -} |
| + /// @domName Clipboard.dropEffect; @docsEditable true |
| + String dropEffect; |
| -/// @domName CSSStyleDeclaration |
| -class CSSStyleDeclaration native "*CSSStyleDeclaration" { |
| - factory CSSStyleDeclaration() => _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration(); |
| - factory CSSStyleDeclaration.css(String css) => |
| - _CSSStyleDeclarationFactoryProvider.createCSSStyleDeclaration_css(css); |
| + /// @domName Clipboard.effectAllowed; @docsEditable true |
| + String effectAllowed; |
| + /// @domName Clipboard.files; @docsEditable true |
| + final FileList files; |
| - /// @domName CSSStyleDeclaration.cssText; @docsEditable true |
| - String cssText; |
| + /// @domName Clipboard.items; @docsEditable true |
| + final DataTransferItemList items; |
| - /// @domName CSSStyleDeclaration.length; @docsEditable true |
| - final int length; |
| + /// @domName Clipboard.types; @docsEditable true |
| + final List types; |
| - /// @domName CSSStyleDeclaration.parentRule; @docsEditable true |
| - final CSSRule parentRule; |
| + /// @domName Clipboard.clearData; @docsEditable true |
| + void clearData([String type]) native; |
| - /// @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true |
| - @JSName('getPropertyCSSValue') |
| - CSSValue getPropertyCssValue(String propertyName) native; |
| + /// @domName Clipboard.getData; @docsEditable true |
| + String getData(String type) native; |
| - /// @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true |
| - String getPropertyPriority(String propertyName) native; |
| + /// @domName Clipboard.setData; @docsEditable true |
| + bool setData(String type, String data) native; |
| - /// @domName CSSStyleDeclaration.getPropertyShorthand; @docsEditable true |
| - String getPropertyShorthand(String propertyName) native; |
| + /// @domName Clipboard.setDragImage; @docsEditable true |
| + void setDragImage(ImageElement image, int x, int y) 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. |
| - /// @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true |
| - @JSName('getPropertyValue') |
| - String _getPropertyValue(String propertyName) native; |
| - /// @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true |
| - bool isPropertyImplicit(String propertyName) native; |
| +/// @domName CloseEvent; @docsEditable true |
| +class CloseEvent extends Event native "*CloseEvent" { |
| - /// @domName CSSStyleDeclaration.item; @docsEditable true |
| - String item(int index) native; |
| + /// @domName CloseEvent.code; @docsEditable true |
| + final int code; |
| - /// @domName CSSStyleDeclaration.removeProperty; @docsEditable true |
| - String removeProperty(String propertyName) native; |
| + /// @domName CloseEvent.reason; @docsEditable true |
| + final String reason; |
| + /// @domName CloseEvent.wasClean; @docsEditable true |
| + final bool wasClean; |
| +} |
| +// 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. |
| - String getPropertyValue(String propertyName) { |
| - var propValue = _getPropertyValue(propertyName); |
| - return propValue != null ? propValue : ''; |
| - } |
| - void setProperty(String propertyName, String value, [String priority]) { |
| - JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); |
| - // Bug #2772, IE9 requires a poke to actually apply the value. |
| - if (JS('bool', '!!#.setAttribute', this)) { |
| - JS('void', '#.setAttribute(#, #)', this, propertyName, value); |
| - } |
| - } |
| +/// @domName Comment; @docsEditable true |
| +class Comment extends CharacterData native "*Comment" { |
| +} |
| +// 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. |
| - // TODO(jacobr): generate this list of properties using the existing script. |
| - /** Gets the value of "align-content" */ |
| - String get alignContent => |
| - getPropertyValue('${_browserPrefix}align-content'); |
| - /** Sets the value of "align-content" */ |
| - void set alignContent(String value) { |
| - setProperty('${_browserPrefix}align-content', value, ''); |
| - } |
| +/// @domName CompositionEvent; @docsEditable true |
| +class CompositionEvent extends UIEvent native "*CompositionEvent" { |
| - /** Gets the value of "align-items" */ |
| - String get alignItems => |
| - getPropertyValue('${_browserPrefix}align-items'); |
| + /// @domName CompositionEvent.data; @docsEditable true |
| + final String data; |
| - /** Sets the value of "align-items" */ |
| - void set alignItems(String value) { |
| - setProperty('${_browserPrefix}align-items', value, ''); |
| - } |
| + /// @domName CompositionEvent.initCompositionEvent; @docsEditable true |
| + void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg) 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. |
| - /** Gets the value of "align-self" */ |
| - String get alignSelf => |
| - getPropertyValue('${_browserPrefix}align-self'); |
| - /** Sets the value of "align-self" */ |
| - void set alignSelf(String value) { |
| - setProperty('${_browserPrefix}align-self', value, ''); |
| - } |
| +/// @domName Console |
| +class Console |
| + // Console is sometimes a singleton bag-of-properties without a prototype. |
| + native "=(typeof console == 'undefined' ? {} : console)" { |
| - /** Gets the value of "animation" */ |
| - String get animation => |
| - getPropertyValue('${_browserPrefix}animation'); |
| + /// @domName Console.memory; @docsEditable true |
| + final MemoryInfo memory; |
| - /** Sets the value of "animation" */ |
| - void set animation(String value) { |
| - setProperty('${_browserPrefix}animation', value, ''); |
| - } |
| + /// @domName Console.profiles; @docsEditable true |
| + final List<ScriptProfile> profiles; |
| - /** Gets the value of "animation-delay" */ |
| - String get animationDelay => |
| - getPropertyValue('${_browserPrefix}animation-delay'); |
| + /// @domName Console.assertCondition; @docsEditable true |
| + void assertCondition(bool condition, Object arg) native; |
| - /** Sets the value of "animation-delay" */ |
| - void set animationDelay(String value) { |
| - setProperty('${_browserPrefix}animation-delay', value, ''); |
| - } |
| + /// @domName Console.count; @docsEditable true |
| + void count(Object arg) native; |
| - /** Gets the value of "animation-direction" */ |
| - String get animationDirection => |
| - getPropertyValue('${_browserPrefix}animation-direction'); |
| + /// @domName Console.debug; @docsEditable true |
| + void debug(Object arg) native; |
| - /** Sets the value of "animation-direction" */ |
| - void set animationDirection(String value) { |
| - setProperty('${_browserPrefix}animation-direction', value, ''); |
| - } |
| + /// @domName Console.dir; @docsEditable true |
| + void dir(Object arg) native; |
| - /** Gets the value of "animation-duration" */ |
| - String get animationDuration => |
| - getPropertyValue('${_browserPrefix}animation-duration'); |
| + /// @domName Console.dirxml; @docsEditable true |
| + void dirxml(Object arg) native; |
| - /** Sets the value of "animation-duration" */ |
| - void set animationDuration(String value) { |
| - setProperty('${_browserPrefix}animation-duration', value, ''); |
| - } |
| + /// @domName Console.error; @docsEditable true |
| + void error(Object arg) native; |
| - /** Gets the value of "animation-fill-mode" */ |
| - String get animationFillMode => |
| - getPropertyValue('${_browserPrefix}animation-fill-mode'); |
| + /// @domName Console.group; @docsEditable true |
| + void group(Object arg) native; |
| - /** Sets the value of "animation-fill-mode" */ |
| - void set animationFillMode(String value) { |
| - setProperty('${_browserPrefix}animation-fill-mode', value, ''); |
| - } |
| + /// @domName Console.groupCollapsed; @docsEditable true |
| + void groupCollapsed(Object arg) native; |
| - /** Gets the value of "animation-iteration-count" */ |
| - String get animationIterationCount => |
| - getPropertyValue('${_browserPrefix}animation-iteration-count'); |
| + /// @domName Console.groupEnd; @docsEditable true |
| + void groupEnd() native; |
| - /** Sets the value of "animation-iteration-count" */ |
| - void set animationIterationCount(String value) { |
| - setProperty('${_browserPrefix}animation-iteration-count', value, ''); |
| - } |
| + /// @domName Console.info; @docsEditable true |
| + void info(Object arg) native; |
| - /** Gets the value of "animation-name" */ |
| - String get animationName => |
| - getPropertyValue('${_browserPrefix}animation-name'); |
| + /// @domName Console.log; @docsEditable true |
| + void log(Object arg) native; |
| - /** Sets the value of "animation-name" */ |
| - void set animationName(String value) { |
| - setProperty('${_browserPrefix}animation-name', value, ''); |
| - } |
| + /// @domName Console.markTimeline; @docsEditable true |
| + void markTimeline(Object arg) native; |
| - /** Gets the value of "animation-play-state" */ |
| - String get animationPlayState => |
| - getPropertyValue('${_browserPrefix}animation-play-state'); |
| + /// @domName Console.profile; @docsEditable true |
| + void profile(String title) native; |
| - /** Sets the value of "animation-play-state" */ |
| - void set animationPlayState(String value) { |
| - setProperty('${_browserPrefix}animation-play-state', value, ''); |
| - } |
| + /// @domName Console.profileEnd; @docsEditable true |
| + void profileEnd(String title) native; |
| - /** Gets the value of "animation-timing-function" */ |
| - String get animationTimingFunction => |
| - getPropertyValue('${_browserPrefix}animation-timing-function'); |
| + /// @domName Console.time; @docsEditable true |
| + void time(String title) native; |
| - /** Sets the value of "animation-timing-function" */ |
| - void set animationTimingFunction(String value) { |
| - setProperty('${_browserPrefix}animation-timing-function', value, ''); |
| - } |
| + /// @domName Console.timeEnd; @docsEditable true |
| + void timeEnd(String title, Object arg) native; |
| - /** Gets the value of "app-region" */ |
| - String get appRegion => |
| - getPropertyValue('${_browserPrefix}app-region'); |
| + /// @domName Console.timeStamp; @docsEditable true |
| + void timeStamp(Object arg) native; |
| - /** Sets the value of "app-region" */ |
| - void set appRegion(String value) { |
| - setProperty('${_browserPrefix}app-region', value, ''); |
| - } |
| + /// @domName Console.trace; @docsEditable true |
| + void trace(Object arg) native; |
| - /** Gets the value of "appearance" */ |
| - String get appearance => |
| - getPropertyValue('${_browserPrefix}appearance'); |
| + /// @domName Console.warn; @docsEditable true |
| + void warn(Object arg) native; |
| - /** Sets the value of "appearance" */ |
| - void set appearance(String value) { |
| - setProperty('${_browserPrefix}appearance', value, ''); |
| - } |
| +} |
| +// 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. |
| - /** Gets the value of "aspect-ratio" */ |
| - String get aspectRatio => |
| - getPropertyValue('${_browserPrefix}aspect-ratio'); |
| - /** Sets the value of "aspect-ratio" */ |
| - void set aspectRatio(String value) { |
| - setProperty('${_browserPrefix}aspect-ratio', value, ''); |
| - } |
| +/// @domName HTMLContentElement; @docsEditable true |
| +class ContentElement extends Element implements Element native "*HTMLContentElement" { |
| - /** Gets the value of "backface-visibility" */ |
| - String get backfaceVisibility => |
| - getPropertyValue('${_browserPrefix}backface-visibility'); |
| + factory ContentElement() => document.$dom_createElement("content"); |
| - /** Sets the value of "backface-visibility" */ |
| - void set backfaceVisibility(String value) { |
| - setProperty('${_browserPrefix}backface-visibility', value, ''); |
| - } |
| + /// @domName HTMLContentElement.resetStyleInheritance; @docsEditable true |
| + bool resetStyleInheritance; |
| - /** Gets the value of "background" */ |
| - String get background => |
| - getPropertyValue('background'); |
| + /// @domName HTMLContentElement.select; @docsEditable true |
| + String select; |
| - /** Sets the value of "background" */ |
| - void set background(String value) { |
| - setProperty('background', value, ''); |
| - } |
| + /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> getDistributedNodes() 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. |
| - /** Gets the value of "background-attachment" */ |
| - String get backgroundAttachment => |
| - getPropertyValue('background-attachment'); |
| - /** Sets the value of "background-attachment" */ |
| - void set backgroundAttachment(String value) { |
| - setProperty('background-attachment', value, ''); |
| - } |
| +/// @domName Coordinates; @docsEditable true |
| +class Coordinates native "*Coordinates" { |
| - /** Gets the value of "background-clip" */ |
| - String get backgroundClip => |
| - getPropertyValue('background-clip'); |
| + /// @domName Coordinates.accuracy; @docsEditable true |
| + final num accuracy; |
| - /** Sets the value of "background-clip" */ |
| - void set backgroundClip(String value) { |
| - setProperty('background-clip', value, ''); |
| - } |
| + /// @domName Coordinates.altitude; @docsEditable true |
| + final num altitude; |
| - /** Gets the value of "background-color" */ |
| - String get backgroundColor => |
| - getPropertyValue('background-color'); |
| + /// @domName Coordinates.altitudeAccuracy; @docsEditable true |
| + final num altitudeAccuracy; |
| - /** Sets the value of "background-color" */ |
| - void set backgroundColor(String value) { |
| - setProperty('background-color', value, ''); |
| - } |
| + /// @domName Coordinates.heading; @docsEditable true |
| + final num heading; |
| - /** Gets the value of "background-composite" */ |
| - String get backgroundComposite => |
| - getPropertyValue('${_browserPrefix}background-composite'); |
| + /// @domName Coordinates.latitude; @docsEditable true |
| + final num latitude; |
| - /** Sets the value of "background-composite" */ |
| - void set backgroundComposite(String value) { |
| - setProperty('${_browserPrefix}background-composite', value, ''); |
| - } |
| + /// @domName Coordinates.longitude; @docsEditable true |
| + final num longitude; |
| - /** Gets the value of "background-image" */ |
| - String get backgroundImage => |
| - getPropertyValue('background-image'); |
| + /// @domName Coordinates.speed; @docsEditable true |
| + final num speed; |
| +} |
| +// 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. |
| - /** Sets the value of "background-image" */ |
| - void set backgroundImage(String value) { |
| - setProperty('background-image', value, ''); |
| - } |
| - /** Gets the value of "background-origin" */ |
| - String get backgroundOrigin => |
| - getPropertyValue('background-origin'); |
| +/// @domName Counter; @docsEditable true |
| +class Counter native "*Counter" { |
| - /** Sets the value of "background-origin" */ |
| - void set backgroundOrigin(String value) { |
| - setProperty('background-origin', value, ''); |
| - } |
| + /// @domName Counter.identifier; @docsEditable true |
| + final String identifier; |
| - /** Gets the value of "background-position" */ |
| - String get backgroundPosition => |
| - getPropertyValue('background-position'); |
| + /// @domName Counter.listStyle; @docsEditable true |
| + final String listStyle; |
| - /** Sets the value of "background-position" */ |
| - void set backgroundPosition(String value) { |
| - setProperty('background-position', value, ''); |
| - } |
| + /// @domName Counter.separator; @docsEditable true |
| + final String separator; |
| +} |
| +// 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. |
| - /** Gets the value of "background-position-x" */ |
| - String get backgroundPositionX => |
| - getPropertyValue('background-position-x'); |
| - /** Sets the value of "background-position-x" */ |
| - void set backgroundPositionX(String value) { |
| - setProperty('background-position-x', value, ''); |
| - } |
| +/// @domName Crypto; @docsEditable true |
| +class Crypto native "*Crypto" { |
| - /** Gets the value of "background-position-y" */ |
| - String get backgroundPositionY => |
| - getPropertyValue('background-position-y'); |
| + /// @domName Crypto.getRandomValues; @docsEditable true |
| + void getRandomValues(ArrayBufferView array) 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. |
| - /** Sets the value of "background-position-y" */ |
| - void set backgroundPositionY(String value) { |
| - setProperty('background-position-y', value, ''); |
| - } |
| - /** Gets the value of "background-repeat" */ |
| - String get backgroundRepeat => |
| - getPropertyValue('background-repeat'); |
| +/// @domName CSSCharsetRule; @docsEditable true |
|
Emily Fortuna
2012/12/04 01:57:19
I'm assuming this is the same as the "deleted" lin
blois
2012/12/04 17:35:36
Yep- alphabetizing changes. There should not be an
|
| +class CssCharsetRule extends CssRule native "*CSSCharsetRule" { |
| - /** Sets the value of "background-repeat" */ |
| - void set backgroundRepeat(String value) { |
| - setProperty('background-repeat', value, ''); |
| - } |
| + /// @domName CSSCharsetRule.encoding; @docsEditable true |
| + String encoding; |
| +} |
| +// 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. |
| - /** Gets the value of "background-repeat-x" */ |
| - String get backgroundRepeatX => |
| - getPropertyValue('background-repeat-x'); |
| - /** Sets the value of "background-repeat-x" */ |
| - void set backgroundRepeatX(String value) { |
| - setProperty('background-repeat-x', value, ''); |
| - } |
| +/// @domName CSSFontFaceRule; @docsEditable true |
| +class CssFontFaceRule extends CssRule native "*CSSFontFaceRule" { |
| - /** Gets the value of "background-repeat-y" */ |
| - String get backgroundRepeatY => |
| - getPropertyValue('background-repeat-y'); |
| + /// @domName CSSFontFaceRule.style; @docsEditable true |
| + final CssStyleDeclaration style; |
| +} |
| +// 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. |
| - /** Sets the value of "background-repeat-y" */ |
| - void set backgroundRepeatY(String value) { |
| - setProperty('background-repeat-y', value, ''); |
| - } |
| - /** Gets the value of "background-size" */ |
| - String get backgroundSize => |
| - getPropertyValue('background-size'); |
| +/// @domName CSSImportRule; @docsEditable true |
| +class CssImportRule extends CssRule native "*CSSImportRule" { |
| - /** Sets the value of "background-size" */ |
| - void set backgroundSize(String value) { |
| - setProperty('background-size', value, ''); |
| - } |
| + /// @domName CSSImportRule.href; @docsEditable true |
| + final String href; |
| - /** Gets the value of "blend-mode" */ |
| - String get blendMode => |
| - getPropertyValue('${_browserPrefix}blend-mode'); |
| + /// @domName CSSImportRule.media; @docsEditable true |
| + final MediaList media; |
| - /** Sets the value of "blend-mode" */ |
| - void set blendMode(String value) { |
| - setProperty('${_browserPrefix}blend-mode', value, ''); |
| - } |
| + /// @domName CSSImportRule.styleSheet; @docsEditable true |
| + final CssStyleSheet styleSheet; |
| +} |
| +// 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. |
| - /** Gets the value of "border" */ |
| - String get border => |
| - getPropertyValue('border'); |
| - /** Sets the value of "border" */ |
| - void set border(String value) { |
| - setProperty('border', value, ''); |
| - } |
| +/// @domName WebKitCSSKeyframeRule; @docsEditable true |
| +class CssKeyframeRule extends CssRule native "*WebKitCSSKeyframeRule" { |
| - /** Gets the value of "border-after" */ |
| - String get borderAfter => |
| - getPropertyValue('${_browserPrefix}border-after'); |
| + /// @domName WebKitCSSKeyframeRule.keyText; @docsEditable true |
| + String keyText; |
| - /** Sets the value of "border-after" */ |
| - void set borderAfter(String value) { |
| - setProperty('${_browserPrefix}border-after', value, ''); |
| - } |
| + /// @domName WebKitCSSKeyframeRule.style; @docsEditable true |
| + final CssStyleDeclaration style; |
| +} |
| +// 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. |
| - /** Gets the value of "border-after-color" */ |
| - String get borderAfterColor => |
| - getPropertyValue('${_browserPrefix}border-after-color'); |
| - /** Sets the value of "border-after-color" */ |
| - void set borderAfterColor(String value) { |
| - setProperty('${_browserPrefix}border-after-color', value, ''); |
| - } |
| +/// @domName WebKitCSSKeyframesRule; @docsEditable true |
| +class CssKeyframesRule extends CssRule native "*WebKitCSSKeyframesRule" { |
| - /** Gets the value of "border-after-style" */ |
| - String get borderAfterStyle => |
| - getPropertyValue('${_browserPrefix}border-after-style'); |
| + /// @domName WebKitCSSKeyframesRule.cssRules; @docsEditable true |
| + @Returns('_CssRuleList') @Creates('_CssRuleList') |
| + final List<CssRule> cssRules; |
| - /** Sets the value of "border-after-style" */ |
| - void set borderAfterStyle(String value) { |
| - setProperty('${_browserPrefix}border-after-style', value, ''); |
| - } |
| + /// @domName WebKitCSSKeyframesRule.name; @docsEditable true |
| + String name; |
| - /** Gets the value of "border-after-width" */ |
| - String get borderAfterWidth => |
| - getPropertyValue('${_browserPrefix}border-after-width'); |
| + /// @domName WebKitCSSKeyframesRule.deleteRule; @docsEditable true |
| + void deleteRule(String key) native; |
| - /** Sets the value of "border-after-width" */ |
| - void set borderAfterWidth(String value) { |
| - setProperty('${_browserPrefix}border-after-width', value, ''); |
| - } |
| + /// @domName WebKitCSSKeyframesRule.findRule; @docsEditable true |
| + CssKeyframeRule findRule(String key) native; |
| - /** Gets the value of "border-before" */ |
| - String get borderBefore => |
| - getPropertyValue('${_browserPrefix}border-before'); |
| + /// @domName WebKitCSSKeyframesRule.insertRule; @docsEditable true |
| + void insertRule(String rule) 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. |
| - /** Sets the value of "border-before" */ |
| - void set borderBefore(String value) { |
| - setProperty('${_browserPrefix}border-before', value, ''); |
| - } |
| - /** Gets the value of "border-before-color" */ |
| - String get borderBeforeColor => |
| - getPropertyValue('${_browserPrefix}border-before-color'); |
| +/// @domName WebKitCSSMatrix; @docsEditable true |
| +class CssMatrix native "*WebKitCSSMatrix" { |
| - /** Sets the value of "border-before-color" */ |
| - void set borderBeforeColor(String value) { |
| - setProperty('${_browserPrefix}border-before-color', value, ''); |
| + factory CssMatrix([String cssValue]) { |
| + if (!?cssValue) { |
| + return _CssMatrixFactoryProvider.createCssMatrix(); |
| + } |
| + return _CssMatrixFactoryProvider.createCssMatrix(cssValue); |
| } |
| - /** Gets the value of "border-before-style" */ |
| - String get borderBeforeStyle => |
| - getPropertyValue('${_browserPrefix}border-before-style'); |
| + /// @domName WebKitCSSMatrix.a; @docsEditable true |
| + num a; |
| - /** Sets the value of "border-before-style" */ |
| - void set borderBeforeStyle(String value) { |
| - setProperty('${_browserPrefix}border-before-style', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.b; @docsEditable true |
| + num b; |
| - /** Gets the value of "border-before-width" */ |
| - String get borderBeforeWidth => |
| - getPropertyValue('${_browserPrefix}border-before-width'); |
| + /// @domName WebKitCSSMatrix.c; @docsEditable true |
| + num c; |
| - /** Sets the value of "border-before-width" */ |
| - void set borderBeforeWidth(String value) { |
| - setProperty('${_browserPrefix}border-before-width', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.d; @docsEditable true |
| + num d; |
| - /** Gets the value of "border-bottom" */ |
| - String get borderBottom => |
| - getPropertyValue('border-bottom'); |
| + /// @domName WebKitCSSMatrix.e; @docsEditable true |
| + num e; |
| - /** Sets the value of "border-bottom" */ |
| - void set borderBottom(String value) { |
| - setProperty('border-bottom', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.f; @docsEditable true |
| + num f; |
| - /** Gets the value of "border-bottom-color" */ |
| - String get borderBottomColor => |
| - getPropertyValue('border-bottom-color'); |
| + /// @domName WebKitCSSMatrix.m11; @docsEditable true |
| + num m11; |
| - /** Sets the value of "border-bottom-color" */ |
| - void set borderBottomColor(String value) { |
| - setProperty('border-bottom-color', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m12; @docsEditable true |
| + num m12; |
| - /** Gets the value of "border-bottom-left-radius" */ |
| - String get borderBottomLeftRadius => |
| - getPropertyValue('border-bottom-left-radius'); |
| + /// @domName WebKitCSSMatrix.m13; @docsEditable true |
| + num m13; |
| - /** Sets the value of "border-bottom-left-radius" */ |
| - void set borderBottomLeftRadius(String value) { |
| - setProperty('border-bottom-left-radius', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m14; @docsEditable true |
| + num m14; |
| - /** Gets the value of "border-bottom-right-radius" */ |
| - String get borderBottomRightRadius => |
| - getPropertyValue('border-bottom-right-radius'); |
| + /// @domName WebKitCSSMatrix.m21; @docsEditable true |
| + num m21; |
| - /** Sets the value of "border-bottom-right-radius" */ |
| - void set borderBottomRightRadius(String value) { |
| - setProperty('border-bottom-right-radius', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m22; @docsEditable true |
| + num m22; |
| - /** Gets the value of "border-bottom-style" */ |
| - String get borderBottomStyle => |
| - getPropertyValue('border-bottom-style'); |
| + /// @domName WebKitCSSMatrix.m23; @docsEditable true |
| + num m23; |
| - /** Sets the value of "border-bottom-style" */ |
| - void set borderBottomStyle(String value) { |
| - setProperty('border-bottom-style', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m24; @docsEditable true |
| + num m24; |
| - /** Gets the value of "border-bottom-width" */ |
| - String get borderBottomWidth => |
| - getPropertyValue('border-bottom-width'); |
| + /// @domName WebKitCSSMatrix.m31; @docsEditable true |
| + num m31; |
| - /** Sets the value of "border-bottom-width" */ |
| - void set borderBottomWidth(String value) { |
| - setProperty('border-bottom-width', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m32; @docsEditable true |
| + num m32; |
| - /** Gets the value of "border-collapse" */ |
| - String get borderCollapse => |
| - getPropertyValue('border-collapse'); |
| + /// @domName WebKitCSSMatrix.m33; @docsEditable true |
| + num m33; |
| - /** Sets the value of "border-collapse" */ |
| - void set borderCollapse(String value) { |
| - setProperty('border-collapse', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m34; @docsEditable true |
| + num m34; |
| - /** Gets the value of "border-color" */ |
| - String get borderColor => |
| - getPropertyValue('border-color'); |
| + /// @domName WebKitCSSMatrix.m41; @docsEditable true |
| + num m41; |
| - /** Sets the value of "border-color" */ |
| - void set borderColor(String value) { |
| - setProperty('border-color', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m42; @docsEditable true |
| + num m42; |
| - /** Gets the value of "border-end" */ |
| - String get borderEnd => |
| - getPropertyValue('${_browserPrefix}border-end'); |
| + /// @domName WebKitCSSMatrix.m43; @docsEditable true |
| + num m43; |
| - /** Sets the value of "border-end" */ |
| - void set borderEnd(String value) { |
| - setProperty('${_browserPrefix}border-end', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.m44; @docsEditable true |
| + num m44; |
| - /** Gets the value of "border-end-color" */ |
| - String get borderEndColor => |
| - getPropertyValue('${_browserPrefix}border-end-color'); |
| + /// @domName WebKitCSSMatrix.inverse; @docsEditable true |
| + CssMatrix inverse() native; |
| - /** Sets the value of "border-end-color" */ |
| - void set borderEndColor(String value) { |
| - setProperty('${_browserPrefix}border-end-color', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.multiply; @docsEditable true |
| + CssMatrix multiply(CssMatrix secondMatrix) native; |
| - /** Gets the value of "border-end-style" */ |
| - String get borderEndStyle => |
| - getPropertyValue('${_browserPrefix}border-end-style'); |
| + /// @domName WebKitCSSMatrix.rotate; @docsEditable true |
| + CssMatrix rotate(num rotX, num rotY, num rotZ) native; |
| - /** Sets the value of "border-end-style" */ |
| - void set borderEndStyle(String value) { |
| - setProperty('${_browserPrefix}border-end-style', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.rotateAxisAngle; @docsEditable true |
| + CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native; |
| - /** Gets the value of "border-end-width" */ |
| - String get borderEndWidth => |
| - getPropertyValue('${_browserPrefix}border-end-width'); |
| + /// @domName WebKitCSSMatrix.scale; @docsEditable true |
| + CssMatrix scale(num scaleX, num scaleY, num scaleZ) native; |
| - /** Sets the value of "border-end-width" */ |
| - void set borderEndWidth(String value) { |
| - setProperty('${_browserPrefix}border-end-width', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.setMatrixValue; @docsEditable true |
| + void setMatrixValue(String string) native; |
| - /** Gets the value of "border-fit" */ |
| - String get borderFit => |
| - getPropertyValue('${_browserPrefix}border-fit'); |
| + /// @domName WebKitCSSMatrix.skewX; @docsEditable true |
| + CssMatrix skewX(num angle) native; |
| - /** Sets the value of "border-fit" */ |
| - void set borderFit(String value) { |
| - setProperty('${_browserPrefix}border-fit', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.skewY; @docsEditable true |
| + CssMatrix skewY(num angle) native; |
| - /** Gets the value of "border-horizontal-spacing" */ |
| - String get borderHorizontalSpacing => |
| - getPropertyValue('${_browserPrefix}border-horizontal-spacing'); |
| + /// @domName WebKitCSSMatrix.toString; @docsEditable true |
| + String toString() native; |
| - /** Sets the value of "border-horizontal-spacing" */ |
| - void set borderHorizontalSpacing(String value) { |
| - setProperty('${_browserPrefix}border-horizontal-spacing', value, ''); |
| - } |
| + /// @domName WebKitCSSMatrix.translate; @docsEditable true |
| + CssMatrix translate(num x, num y, num z) 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. |
| - /** Gets the value of "border-image" */ |
| - String get borderImage => |
| - getPropertyValue('border-image'); |
| - /** Sets the value of "border-image" */ |
| - void set borderImage(String value) { |
| - setProperty('border-image', value, ''); |
| - } |
| +/// @domName CSSMediaRule; @docsEditable true |
| +class CssMediaRule extends CssRule native "*CSSMediaRule" { |
| - /** Gets the value of "border-image-outset" */ |
| - String get borderImageOutset => |
| - getPropertyValue('border-image-outset'); |
| + /// @domName CSSMediaRule.cssRules; @docsEditable true |
| + @Returns('_CssRuleList') @Creates('_CssRuleList') |
| + final List<CssRule> cssRules; |
| - /** Sets the value of "border-image-outset" */ |
| - void set borderImageOutset(String value) { |
| - setProperty('border-image-outset', value, ''); |
| - } |
| + /// @domName CSSMediaRule.media; @docsEditable true |
| + final MediaList media; |
| - /** Gets the value of "border-image-repeat" */ |
| - String get borderImageRepeat => |
| - getPropertyValue('border-image-repeat'); |
| + /// @domName CSSMediaRule.deleteRule; @docsEditable true |
| + void deleteRule(int index) native; |
| - /** Sets the value of "border-image-repeat" */ |
| - void set borderImageRepeat(String value) { |
| - setProperty('border-image-repeat', value, ''); |
| - } |
| + /// @domName CSSMediaRule.insertRule; @docsEditable true |
| + int insertRule(String rule, 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. |
| - /** Gets the value of "border-image-slice" */ |
| - String get borderImageSlice => |
| - getPropertyValue('border-image-slice'); |
| - /** Sets the value of "border-image-slice" */ |
| - void set borderImageSlice(String value) { |
| - setProperty('border-image-slice', value, ''); |
| - } |
| +/// @domName CSSPageRule; @docsEditable true |
| +class CssPageRule extends CssRule native "*CSSPageRule" { |
| - /** Gets the value of "border-image-source" */ |
| - String get borderImageSource => |
| - getPropertyValue('border-image-source'); |
| + /// @domName CSSPageRule.selectorText; @docsEditable true |
| + String selectorText; |
| - /** Sets the value of "border-image-source" */ |
| - void set borderImageSource(String value) { |
| - setProperty('border-image-source', value, ''); |
| - } |
| + /// @domName CSSPageRule.style; @docsEditable true |
| + final CssStyleDeclaration style; |
| +} |
| +// 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. |
| - /** Gets the value of "border-image-width" */ |
| - String get borderImageWidth => |
| - getPropertyValue('border-image-width'); |
| - /** Sets the value of "border-image-width" */ |
| - void set borderImageWidth(String value) { |
| - setProperty('border-image-width', value, ''); |
| - } |
| +/// @domName CSSPrimitiveValue; @docsEditable true |
| +class CssPrimitiveValue extends CssValue native "*CSSPrimitiveValue" { |
| - /** Gets the value of "border-left" */ |
| - String get borderLeft => |
| - getPropertyValue('border-left'); |
| + static const int CSS_ATTR = 22; |
| - /** Sets the value of "border-left" */ |
| - void set borderLeft(String value) { |
| - setProperty('border-left', value, ''); |
| - } |
| + static const int CSS_CM = 6; |
| - /** Gets the value of "border-left-color" */ |
| - String get borderLeftColor => |
| - getPropertyValue('border-left-color'); |
| + static const int CSS_COUNTER = 23; |
| - /** Sets the value of "border-left-color" */ |
| - void set borderLeftColor(String value) { |
| - setProperty('border-left-color', value, ''); |
| - } |
| + static const int CSS_DEG = 11; |
| - /** Gets the value of "border-left-style" */ |
| - String get borderLeftStyle => |
| - getPropertyValue('border-left-style'); |
| + static const int CSS_DIMENSION = 18; |
| - /** Sets the value of "border-left-style" */ |
| - void set borderLeftStyle(String value) { |
| - setProperty('border-left-style', value, ''); |
| - } |
| + static const int CSS_EMS = 3; |
| - /** Gets the value of "border-left-width" */ |
| - String get borderLeftWidth => |
| - getPropertyValue('border-left-width'); |
| + static const int CSS_EXS = 4; |
| - /** Sets the value of "border-left-width" */ |
| - void set borderLeftWidth(String value) { |
| - setProperty('border-left-width', value, ''); |
| - } |
| + static const int CSS_GRAD = 13; |
| - /** Gets the value of "border-radius" */ |
| - String get borderRadius => |
| - getPropertyValue('border-radius'); |
| + static const int CSS_HZ = 16; |
| - /** Sets the value of "border-radius" */ |
| - void set borderRadius(String value) { |
| - setProperty('border-radius', value, ''); |
| - } |
| + static const int CSS_IDENT = 21; |
| - /** Gets the value of "border-right" */ |
| - String get borderRight => |
| - getPropertyValue('border-right'); |
| + static const int CSS_IN = 8; |
| - /** Sets the value of "border-right" */ |
| - void set borderRight(String value) { |
| - setProperty('border-right', value, ''); |
| - } |
| + static const int CSS_KHZ = 17; |
| - /** Gets the value of "border-right-color" */ |
| - String get borderRightColor => |
| - getPropertyValue('border-right-color'); |
| + static const int CSS_MM = 7; |
| - /** Sets the value of "border-right-color" */ |
| - void set borderRightColor(String value) { |
| - setProperty('border-right-color', value, ''); |
| - } |
| + static const int CSS_MS = 14; |
| - /** Gets the value of "border-right-style" */ |
| - String get borderRightStyle => |
| - getPropertyValue('border-right-style'); |
| + static const int CSS_NUMBER = 1; |
| - /** Sets the value of "border-right-style" */ |
| - void set borderRightStyle(String value) { |
| - setProperty('border-right-style', value, ''); |
| - } |
| + static const int CSS_PC = 10; |
| - /** Gets the value of "border-right-width" */ |
| - String get borderRightWidth => |
| - getPropertyValue('border-right-width'); |
| + static const int CSS_PERCENTAGE = 2; |
| - /** Sets the value of "border-right-width" */ |
| - void set borderRightWidth(String value) { |
| - setProperty('border-right-width', value, ''); |
| - } |
| + static const int CSS_PT = 9; |
| - /** Gets the value of "border-spacing" */ |
| - String get borderSpacing => |
| - getPropertyValue('border-spacing'); |
| + static const int CSS_PX = 5; |
| - /** Sets the value of "border-spacing" */ |
| - void set borderSpacing(String value) { |
| - setProperty('border-spacing', value, ''); |
| - } |
| + static const int CSS_RAD = 12; |
| - /** Gets the value of "border-start" */ |
| - String get borderStart => |
| - getPropertyValue('${_browserPrefix}border-start'); |
| + static const int CSS_RECT = 24; |
| - /** Sets the value of "border-start" */ |
| - void set borderStart(String value) { |
| - setProperty('${_browserPrefix}border-start', value, ''); |
| - } |
| + static const int CSS_RGBCOLOR = 25; |
| - /** Gets the value of "border-start-color" */ |
| - String get borderStartColor => |
| - getPropertyValue('${_browserPrefix}border-start-color'); |
| + static const int CSS_S = 15; |
| - /** Sets the value of "border-start-color" */ |
| - void set borderStartColor(String value) { |
| - setProperty('${_browserPrefix}border-start-color', value, ''); |
| - } |
| + static const int CSS_STRING = 19; |
| - /** Gets the value of "border-start-style" */ |
| - String get borderStartStyle => |
| - getPropertyValue('${_browserPrefix}border-start-style'); |
| + static const int CSS_UNKNOWN = 0; |
| - /** Sets the value of "border-start-style" */ |
| - void set borderStartStyle(String value) { |
| - setProperty('${_browserPrefix}border-start-style', value, ''); |
| - } |
| + static const int CSS_URI = 20; |
| - /** Gets the value of "border-start-width" */ |
| - String get borderStartWidth => |
| - getPropertyValue('${_browserPrefix}border-start-width'); |
| + static const int CSS_VH = 27; |
| - /** Sets the value of "border-start-width" */ |
| - void set borderStartWidth(String value) { |
| - setProperty('${_browserPrefix}border-start-width', value, ''); |
| - } |
| + static const int CSS_VMIN = 28; |
| - /** Gets the value of "border-style" */ |
| - String get borderStyle => |
| - getPropertyValue('border-style'); |
| + static const int CSS_VW = 26; |
| - /** Sets the value of "border-style" */ |
| - void set borderStyle(String value) { |
| - setProperty('border-style', value, ''); |
| - } |
| + /// @domName CSSPrimitiveValue.primitiveType; @docsEditable true |
| + final int primitiveType; |
| - /** Gets the value of "border-top" */ |
| - String get borderTop => |
| - getPropertyValue('border-top'); |
| + /// @domName CSSPrimitiveValue.getCounterValue; @docsEditable true |
| + Counter getCounterValue() native; |
| - /** Sets the value of "border-top" */ |
| - void set borderTop(String value) { |
| - setProperty('border-top', value, ''); |
| - } |
| + /// @domName CSSPrimitiveValue.getFloatValue; @docsEditable true |
| + num getFloatValue(int unitType) native; |
| - /** Gets the value of "border-top-color" */ |
| - String get borderTopColor => |
| - getPropertyValue('border-top-color'); |
| + /// @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true |
| + @JSName('getRGBColorValue') |
| + RgbColor getRgbColorValue() native; |
| - /** Sets the value of "border-top-color" */ |
| - void set borderTopColor(String value) { |
| - setProperty('border-top-color', value, ''); |
| - } |
| + /// @domName CSSPrimitiveValue.getRectValue; @docsEditable true |
| + Rect getRectValue() native; |
| - /** Gets the value of "border-top-left-radius" */ |
| - String get borderTopLeftRadius => |
| - getPropertyValue('border-top-left-radius'); |
| + /// @domName CSSPrimitiveValue.getStringValue; @docsEditable true |
| + String getStringValue() native; |
| - /** Sets the value of "border-top-left-radius" */ |
| - void set borderTopLeftRadius(String value) { |
| - setProperty('border-top-left-radius', value, ''); |
| - } |
| + /// @domName CSSPrimitiveValue.setFloatValue; @docsEditable true |
| + void setFloatValue(int unitType, num floatValue) native; |
| - /** Gets the value of "border-top-right-radius" */ |
| - String get borderTopRightRadius => |
| - getPropertyValue('border-top-right-radius'); |
| + /// @domName CSSPrimitiveValue.setStringValue; @docsEditable true |
| + void setStringValue(int stringType, String stringValue) 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. |
| - /** Sets the value of "border-top-right-radius" */ |
| - void set borderTopRightRadius(String value) { |
| - setProperty('border-top-right-radius', value, ''); |
| - } |
| - /** Gets the value of "border-top-style" */ |
| - String get borderTopStyle => |
| - getPropertyValue('border-top-style'); |
| +/// @domName CSSRule; @docsEditable true |
| +class CssRule native "*CSSRule" { |
| - /** Sets the value of "border-top-style" */ |
| - void set borderTopStyle(String value) { |
| - setProperty('border-top-style', value, ''); |
| - } |
| + static const int CHARSET_RULE = 2; |
| - /** Gets the value of "border-top-width" */ |
| - String get borderTopWidth => |
| - getPropertyValue('border-top-width'); |
| + static const int FONT_FACE_RULE = 5; |
| - /** Sets the value of "border-top-width" */ |
| - void set borderTopWidth(String value) { |
| - setProperty('border-top-width', value, ''); |
| - } |
| + static const int IMPORT_RULE = 3; |
| - /** Gets the value of "border-vertical-spacing" */ |
| - String get borderVerticalSpacing => |
| - getPropertyValue('${_browserPrefix}border-vertical-spacing'); |
| + static const int MEDIA_RULE = 4; |
| - /** Sets the value of "border-vertical-spacing" */ |
| - void set borderVerticalSpacing(String value) { |
| - setProperty('${_browserPrefix}border-vertical-spacing', value, ''); |
| - } |
| + static const int PAGE_RULE = 6; |
| - /** Gets the value of "border-width" */ |
| - String get borderWidth => |
| - getPropertyValue('border-width'); |
| + static const int STYLE_RULE = 1; |
| - /** Sets the value of "border-width" */ |
| - void set borderWidth(String value) { |
| - setProperty('border-width', value, ''); |
| - } |
| + static const int UNKNOWN_RULE = 0; |
| - /** Gets the value of "bottom" */ |
| - String get bottom => |
| - getPropertyValue('bottom'); |
| + static const int WEBKIT_KEYFRAMES_RULE = 7; |
| - /** Sets the value of "bottom" */ |
| - void set bottom(String value) { |
| - setProperty('bottom', value, ''); |
| - } |
| + static const int WEBKIT_KEYFRAME_RULE = 8; |
| - /** Gets the value of "box-align" */ |
| - String get boxAlign => |
| - getPropertyValue('${_browserPrefix}box-align'); |
| + /// @domName CSSRule.cssText; @docsEditable true |
| + String cssText; |
| - /** Sets the value of "box-align" */ |
| - void set boxAlign(String value) { |
| - setProperty('${_browserPrefix}box-align', value, ''); |
| - } |
| - |
| - /** Gets the value of "box-decoration-break" */ |
| - String get boxDecorationBreak => |
| - getPropertyValue('${_browserPrefix}box-decoration-break'); |
| + /// @domName CSSRule.parentRule; @docsEditable true |
| + final CssRule parentRule; |
| - /** Sets the value of "box-decoration-break" */ |
| - void set boxDecorationBreak(String value) { |
| - setProperty('${_browserPrefix}box-decoration-break', value, ''); |
| - } |
| + /// @domName CSSRule.parentStyleSheet; @docsEditable true |
| + final CssStyleSheet parentStyleSheet; |
| - /** Gets the value of "box-direction" */ |
| - String get boxDirection => |
| - getPropertyValue('${_browserPrefix}box-direction'); |
| + /// @domName CSSRule.type; @docsEditable true |
| + final int type; |
| +} |
| +// 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. |
| - /** Sets the value of "box-direction" */ |
| - void set boxDirection(String value) { |
| - setProperty('${_browserPrefix}box-direction', value, ''); |
| - } |
| - /** Gets the value of "box-flex" */ |
| - String get boxFlex => |
| - getPropertyValue('${_browserPrefix}box-flex'); |
| +String _cachedBrowserPrefix; |
| - /** Sets the value of "box-flex" */ |
| - void set boxFlex(String value) { |
| - setProperty('${_browserPrefix}box-flex', value, ''); |
| +String get _browserPrefix { |
| + if (_cachedBrowserPrefix == null) { |
| + if (_Device.isFirefox) { |
| + _cachedBrowserPrefix = '-moz-'; |
| + } else if (_Device.isIE) { |
| + _cachedBrowserPrefix = '-ms-'; |
| + } else if (_Device.isOpera) { |
| + _cachedBrowserPrefix = '-o-'; |
| + } else { |
| + _cachedBrowserPrefix = '-webkit-'; |
| + } |
| } |
| + return _cachedBrowserPrefix; |
| +} |
| - /** Gets the value of "box-flex-group" */ |
| - String get boxFlexGroup => |
| - getPropertyValue('${_browserPrefix}box-flex-group'); |
| +/// @domName CSSStyleDeclaration |
| +class CssStyleDeclaration native "*CSSStyleDeclaration" { |
| + factory CssStyleDeclaration() => _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration(); |
| + factory CssStyleDeclaration.css(String css) => |
| + _CssStyleDeclarationFactoryProvider.createCssStyleDeclaration_css(css); |
| - /** Sets the value of "box-flex-group" */ |
| - void set boxFlexGroup(String value) { |
| - setProperty('${_browserPrefix}box-flex-group', value, ''); |
| - } |
| - /** Gets the value of "box-lines" */ |
| - String get boxLines => |
| - getPropertyValue('${_browserPrefix}box-lines'); |
| + /// @domName CSSStyleDeclaration.cssText; @docsEditable true |
| + String cssText; |
| - /** Sets the value of "box-lines" */ |
| - void set boxLines(String value) { |
| - setProperty('${_browserPrefix}box-lines', value, ''); |
| - } |
| + /// @domName CSSStyleDeclaration.length; @docsEditable true |
| + final int length; |
| - /** Gets the value of "box-ordinal-group" */ |
| - String get boxOrdinalGroup => |
| - getPropertyValue('${_browserPrefix}box-ordinal-group'); |
| + /// @domName CSSStyleDeclaration.parentRule; @docsEditable true |
| + final CssRule parentRule; |
| - /** Sets the value of "box-ordinal-group" */ |
| - void set boxOrdinalGroup(String value) { |
| - setProperty('${_browserPrefix}box-ordinal-group', value, ''); |
| - } |
| + /// @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true |
| + @JSName('getPropertyCSSValue') |
| + CssValue getPropertyCssValue(String propertyName) native; |
| - /** Gets the value of "box-orient" */ |
| - String get boxOrient => |
| - getPropertyValue('${_browserPrefix}box-orient'); |
| + /// @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true |
| + String getPropertyPriority(String propertyName) native; |
| - /** Sets the value of "box-orient" */ |
| - void set boxOrient(String value) { |
| - setProperty('${_browserPrefix}box-orient', value, ''); |
| - } |
| + /// @domName CSSStyleDeclaration.getPropertyShorthand; @docsEditable true |
| + String getPropertyShorthand(String propertyName) native; |
| - /** Gets the value of "box-pack" */ |
| - String get boxPack => |
| - getPropertyValue('${_browserPrefix}box-pack'); |
| + /// @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true |
| + @JSName('getPropertyValue') |
| + String _getPropertyValue(String propertyName) native; |
| - /** Sets the value of "box-pack" */ |
| - void set boxPack(String value) { |
| - setProperty('${_browserPrefix}box-pack', value, ''); |
| - } |
| + /// @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true |
| + bool isPropertyImplicit(String propertyName) native; |
| - /** Gets the value of "box-reflect" */ |
| - String get boxReflect => |
| - getPropertyValue('${_browserPrefix}box-reflect'); |
| + /// @domName CSSStyleDeclaration.item; @docsEditable true |
| + String item(int index) native; |
| - /** Sets the value of "box-reflect" */ |
| - void set boxReflect(String value) { |
| - setProperty('${_browserPrefix}box-reflect', value, ''); |
| - } |
| + /// @domName CSSStyleDeclaration.removeProperty; @docsEditable true |
| + String removeProperty(String propertyName) native; |
| - /** Gets the value of "box-shadow" */ |
| - String get boxShadow => |
| - getPropertyValue('box-shadow'); |
| - /** Sets the value of "box-shadow" */ |
| - void set boxShadow(String value) { |
| - setProperty('box-shadow', value, ''); |
| + String getPropertyValue(String propertyName) { |
| + var propValue = _getPropertyValue(propertyName); |
| + return propValue != null ? propValue : ''; |
| } |
| - /** Gets the value of "box-sizing" */ |
| - String get boxSizing => |
| - getPropertyValue('box-sizing'); |
| - |
| - /** Sets the value of "box-sizing" */ |
| - void set boxSizing(String value) { |
| - setProperty('box-sizing', value, ''); |
| + void setProperty(String propertyName, String value, [String priority]) { |
| + JS('void', '#.setProperty(#, #, #)', this, propertyName, value, priority); |
| + // Bug #2772, IE9 requires a poke to actually apply the value. |
| + if (JS('bool', '!!#.setAttribute', this)) { |
| + JS('void', '#.setAttribute(#, #)', this, propertyName, value); |
| + } |
| } |
| - /** Gets the value of "caption-side" */ |
| - String get captionSide => |
| - getPropertyValue('caption-side'); |
| + // TODO(jacobr): generate this list of properties using the existing script. |
| + /** Gets the value of "align-content" */ |
| + String get alignContent => |
| + getPropertyValue('${_browserPrefix}align-content'); |
| - /** Sets the value of "caption-side" */ |
| - void set captionSide(String value) { |
| - setProperty('caption-side', value, ''); |
| + /** Sets the value of "align-content" */ |
| + void set alignContent(String value) { |
| + setProperty('${_browserPrefix}align-content', value, ''); |
| } |
| - /** Gets the value of "clear" */ |
| - String get clear => |
| - getPropertyValue('clear'); |
| + /** Gets the value of "align-items" */ |
| + String get alignItems => |
| + getPropertyValue('${_browserPrefix}align-items'); |
| - /** Sets the value of "clear" */ |
| - void set clear(String value) { |
| - setProperty('clear', value, ''); |
| + /** Sets the value of "align-items" */ |
| + void set alignItems(String value) { |
| + setProperty('${_browserPrefix}align-items', value, ''); |
| } |
| - /** Gets the value of "clip" */ |
| - String get clip => |
| - getPropertyValue('clip'); |
| + /** Gets the value of "align-self" */ |
| + String get alignSelf => |
| + getPropertyValue('${_browserPrefix}align-self'); |
| - /** Sets the value of "clip" */ |
| - void set clip(String value) { |
| - setProperty('clip', value, ''); |
| + /** Sets the value of "align-self" */ |
| + void set alignSelf(String value) { |
| + setProperty('${_browserPrefix}align-self', value, ''); |
| } |
| - /** Gets the value of "clip-path" */ |
| - String get clipPath => |
| - getPropertyValue('${_browserPrefix}clip-path'); |
| + /** Gets the value of "animation" */ |
| + String get animation => |
| + getPropertyValue('${_browserPrefix}animation'); |
| - /** Sets the value of "clip-path" */ |
| - void set clipPath(String value) { |
| - setProperty('${_browserPrefix}clip-path', value, ''); |
| + /** Sets the value of "animation" */ |
| + void set animation(String value) { |
| + setProperty('${_browserPrefix}animation', value, ''); |
| } |
| - /** Gets the value of "color" */ |
| - String get color => |
| - getPropertyValue('color'); |
| + /** Gets the value of "animation-delay" */ |
| + String get animationDelay => |
| + getPropertyValue('${_browserPrefix}animation-delay'); |
| - /** Sets the value of "color" */ |
| - void set color(String value) { |
| - setProperty('color', value, ''); |
| + /** Sets the value of "animation-delay" */ |
| + void set animationDelay(String value) { |
| + setProperty('${_browserPrefix}animation-delay', value, ''); |
| } |
| - /** Gets the value of "color-correction" */ |
| - String get colorCorrection => |
| - getPropertyValue('${_browserPrefix}color-correction'); |
| + /** Gets the value of "animation-direction" */ |
| + String get animationDirection => |
| + getPropertyValue('${_browserPrefix}animation-direction'); |
| - /** Sets the value of "color-correction" */ |
| - void set colorCorrection(String value) { |
| - setProperty('${_browserPrefix}color-correction', value, ''); |
| + /** Sets the value of "animation-direction" */ |
| + void set animationDirection(String value) { |
| + setProperty('${_browserPrefix}animation-direction', value, ''); |
| } |
| - /** Gets the value of "column-axis" */ |
| - String get columnAxis => |
| - getPropertyValue('${_browserPrefix}column-axis'); |
| + /** Gets the value of "animation-duration" */ |
| + String get animationDuration => |
| + getPropertyValue('${_browserPrefix}animation-duration'); |
| - /** Sets the value of "column-axis" */ |
| - void set columnAxis(String value) { |
| - setProperty('${_browserPrefix}column-axis', value, ''); |
| + /** Sets the value of "animation-duration" */ |
| + void set animationDuration(String value) { |
| + setProperty('${_browserPrefix}animation-duration', value, ''); |
| } |
| - /** Gets the value of "column-break-after" */ |
| - String get columnBreakAfter => |
| - getPropertyValue('${_browserPrefix}column-break-after'); |
| + /** Gets the value of "animation-fill-mode" */ |
| + String get animationFillMode => |
| + getPropertyValue('${_browserPrefix}animation-fill-mode'); |
| - /** Sets the value of "column-break-after" */ |
| - void set columnBreakAfter(String value) { |
| - setProperty('${_browserPrefix}column-break-after', value, ''); |
| + /** Sets the value of "animation-fill-mode" */ |
| + void set animationFillMode(String value) { |
| + setProperty('${_browserPrefix}animation-fill-mode', value, ''); |
| } |
| - /** Gets the value of "column-break-before" */ |
| - String get columnBreakBefore => |
| - getPropertyValue('${_browserPrefix}column-break-before'); |
| + /** Gets the value of "animation-iteration-count" */ |
| + String get animationIterationCount => |
| + getPropertyValue('${_browserPrefix}animation-iteration-count'); |
| - /** Sets the value of "column-break-before" */ |
| - void set columnBreakBefore(String value) { |
| - setProperty('${_browserPrefix}column-break-before', value, ''); |
| + /** Sets the value of "animation-iteration-count" */ |
| + void set animationIterationCount(String value) { |
| + setProperty('${_browserPrefix}animation-iteration-count', value, ''); |
| } |
| - /** Gets the value of "column-break-inside" */ |
| - String get columnBreakInside => |
| - getPropertyValue('${_browserPrefix}column-break-inside'); |
| + /** Gets the value of "animation-name" */ |
| + String get animationName => |
| + getPropertyValue('${_browserPrefix}animation-name'); |
| - /** Sets the value of "column-break-inside" */ |
| - void set columnBreakInside(String value) { |
| - setProperty('${_browserPrefix}column-break-inside', value, ''); |
| + /** Sets the value of "animation-name" */ |
| + void set animationName(String value) { |
| + setProperty('${_browserPrefix}animation-name', value, ''); |
| } |
| - /** Gets the value of "column-count" */ |
| - String get columnCount => |
| - getPropertyValue('${_browserPrefix}column-count'); |
| - |
| - /** Sets the value of "column-count" */ |
| - void set columnCount(String value) { |
| - setProperty('${_browserPrefix}column-count', value, ''); |
| + /** Gets the value of "animation-play-state" */ |
| + String get animationPlayState => |
| + getPropertyValue('${_browserPrefix}animation-play-state'); |
| + |
| + /** Sets the value of "animation-play-state" */ |
| + void set animationPlayState(String value) { |
| + setProperty('${_browserPrefix}animation-play-state', value, ''); |
| } |
| - /** Gets the value of "column-gap" */ |
| - String get columnGap => |
| - getPropertyValue('${_browserPrefix}column-gap'); |
| + /** Gets the value of "animation-timing-function" */ |
| + String get animationTimingFunction => |
| + getPropertyValue('${_browserPrefix}animation-timing-function'); |
| - /** Sets the value of "column-gap" */ |
| - void set columnGap(String value) { |
| - setProperty('${_browserPrefix}column-gap', value, ''); |
| + /** Sets the value of "animation-timing-function" */ |
| + void set animationTimingFunction(String value) { |
| + setProperty('${_browserPrefix}animation-timing-function', value, ''); |
| } |
| - /** Gets the value of "column-progression" */ |
| - String get columnProgression => |
| - getPropertyValue('${_browserPrefix}column-progression'); |
| + /** Gets the value of "app-region" */ |
| + String get appRegion => |
| + getPropertyValue('${_browserPrefix}app-region'); |
| - /** Sets the value of "column-progression" */ |
| - void set columnProgression(String value) { |
| - setProperty('${_browserPrefix}column-progression', value, ''); |
| + /** Sets the value of "app-region" */ |
| + void set appRegion(String value) { |
| + setProperty('${_browserPrefix}app-region', value, ''); |
| } |
| - /** Gets the value of "column-rule" */ |
| - String get columnRule => |
| - getPropertyValue('${_browserPrefix}column-rule'); |
| + /** Gets the value of "appearance" */ |
| + String get appearance => |
| + getPropertyValue('${_browserPrefix}appearance'); |
| - /** Sets the value of "column-rule" */ |
| - void set columnRule(String value) { |
| - setProperty('${_browserPrefix}column-rule', value, ''); |
| + /** Sets the value of "appearance" */ |
| + void set appearance(String value) { |
| + setProperty('${_browserPrefix}appearance', value, ''); |
| } |
| - /** Gets the value of "column-rule-color" */ |
| - String get columnRuleColor => |
| - getPropertyValue('${_browserPrefix}column-rule-color'); |
| + /** Gets the value of "aspect-ratio" */ |
| + String get aspectRatio => |
| + getPropertyValue('${_browserPrefix}aspect-ratio'); |
| - /** Sets the value of "column-rule-color" */ |
| - void set columnRuleColor(String value) { |
| - setProperty('${_browserPrefix}column-rule-color', value, ''); |
| + /** Sets the value of "aspect-ratio" */ |
| + void set aspectRatio(String value) { |
| + setProperty('${_browserPrefix}aspect-ratio', value, ''); |
| } |
| - /** Gets the value of "column-rule-style" */ |
| - String get columnRuleStyle => |
| - getPropertyValue('${_browserPrefix}column-rule-style'); |
| + /** Gets the value of "backface-visibility" */ |
| + String get backfaceVisibility => |
| + getPropertyValue('${_browserPrefix}backface-visibility'); |
| - /** Sets the value of "column-rule-style" */ |
| - void set columnRuleStyle(String value) { |
| - setProperty('${_browserPrefix}column-rule-style', value, ''); |
| + /** Sets the value of "backface-visibility" */ |
| + void set backfaceVisibility(String value) { |
| + setProperty('${_browserPrefix}backface-visibility', value, ''); |
| } |
| - /** Gets the value of "column-rule-width" */ |
| - String get columnRuleWidth => |
| - getPropertyValue('${_browserPrefix}column-rule-width'); |
| + /** Gets the value of "background" */ |
| + String get background => |
| + getPropertyValue('background'); |
| - /** Sets the value of "column-rule-width" */ |
| - void set columnRuleWidth(String value) { |
| - setProperty('${_browserPrefix}column-rule-width', value, ''); |
| + /** Sets the value of "background" */ |
| + void set background(String value) { |
| + setProperty('background', value, ''); |
| } |
| - /** Gets the value of "column-span" */ |
| - String get columnSpan => |
| - getPropertyValue('${_browserPrefix}column-span'); |
| + /** Gets the value of "background-attachment" */ |
| + String get backgroundAttachment => |
| + getPropertyValue('background-attachment'); |
| - /** Sets the value of "column-span" */ |
| - void set columnSpan(String value) { |
| - setProperty('${_browserPrefix}column-span', value, ''); |
| + /** Sets the value of "background-attachment" */ |
| + void set backgroundAttachment(String value) { |
| + setProperty('background-attachment', value, ''); |
| } |
| - /** Gets the value of "column-width" */ |
| - String get columnWidth => |
| - getPropertyValue('${_browserPrefix}column-width'); |
| + /** Gets the value of "background-clip" */ |
| + String get backgroundClip => |
| + getPropertyValue('background-clip'); |
| - /** Sets the value of "column-width" */ |
| - void set columnWidth(String value) { |
| - setProperty('${_browserPrefix}column-width', value, ''); |
| + /** Sets the value of "background-clip" */ |
| + void set backgroundClip(String value) { |
| + setProperty('background-clip', value, ''); |
| } |
| - /** Gets the value of "columns" */ |
| - String get columns => |
| - getPropertyValue('${_browserPrefix}columns'); |
| + /** Gets the value of "background-color" */ |
| + String get backgroundColor => |
| + getPropertyValue('background-color'); |
| - /** Sets the value of "columns" */ |
| - void set columns(String value) { |
| - setProperty('${_browserPrefix}columns', value, ''); |
| + /** Sets the value of "background-color" */ |
| + void set backgroundColor(String value) { |
| + setProperty('background-color', value, ''); |
| } |
| - /** Gets the value of "content" */ |
| - String get content => |
| - getPropertyValue('content'); |
| + /** Gets the value of "background-composite" */ |
| + String get backgroundComposite => |
| + getPropertyValue('${_browserPrefix}background-composite'); |
| - /** Sets the value of "content" */ |
| - void set content(String value) { |
| - setProperty('content', value, ''); |
| + /** Sets the value of "background-composite" */ |
| + void set backgroundComposite(String value) { |
| + setProperty('${_browserPrefix}background-composite', value, ''); |
| } |
| - /** Gets the value of "counter-increment" */ |
| - String get counterIncrement => |
| - getPropertyValue('counter-increment'); |
| + /** Gets the value of "background-image" */ |
| + String get backgroundImage => |
| + getPropertyValue('background-image'); |
| - /** Sets the value of "counter-increment" */ |
| - void set counterIncrement(String value) { |
| - setProperty('counter-increment', value, ''); |
| + /** Sets the value of "background-image" */ |
| + void set backgroundImage(String value) { |
| + setProperty('background-image', value, ''); |
| } |
| - /** Gets the value of "counter-reset" */ |
| - String get counterReset => |
| - getPropertyValue('counter-reset'); |
| + /** Gets the value of "background-origin" */ |
| + String get backgroundOrigin => |
| + getPropertyValue('background-origin'); |
| - /** Sets the value of "counter-reset" */ |
| - void set counterReset(String value) { |
| - setProperty('counter-reset', value, ''); |
| + /** Sets the value of "background-origin" */ |
| + void set backgroundOrigin(String value) { |
| + setProperty('background-origin', value, ''); |
| } |
| - /** Gets the value of "cursor" */ |
| - String get cursor => |
| - getPropertyValue('cursor'); |
| + /** Gets the value of "background-position" */ |
| + String get backgroundPosition => |
| + getPropertyValue('background-position'); |
| - /** Sets the value of "cursor" */ |
| - void set cursor(String value) { |
| - setProperty('cursor', value, ''); |
| + /** Sets the value of "background-position" */ |
| + void set backgroundPosition(String value) { |
| + setProperty('background-position', value, ''); |
| } |
| - /** Gets the value of "dashboard-region" */ |
| - String get dashboardRegion => |
| - getPropertyValue('${_browserPrefix}dashboard-region'); |
| + /** Gets the value of "background-position-x" */ |
| + String get backgroundPositionX => |
| + getPropertyValue('background-position-x'); |
| - /** Sets the value of "dashboard-region" */ |
| - void set dashboardRegion(String value) { |
| - setProperty('${_browserPrefix}dashboard-region', value, ''); |
| + /** Sets the value of "background-position-x" */ |
| + void set backgroundPositionX(String value) { |
| + setProperty('background-position-x', value, ''); |
| } |
| - /** Gets the value of "direction" */ |
| - String get direction => |
| - getPropertyValue('direction'); |
| + /** Gets the value of "background-position-y" */ |
| + String get backgroundPositionY => |
| + getPropertyValue('background-position-y'); |
| - /** Sets the value of "direction" */ |
| - void set direction(String value) { |
| - setProperty('direction', value, ''); |
| + /** Sets the value of "background-position-y" */ |
| + void set backgroundPositionY(String value) { |
| + setProperty('background-position-y', value, ''); |
| } |
| - /** Gets the value of "display" */ |
| - String get display => |
| - getPropertyValue('display'); |
| + /** Gets the value of "background-repeat" */ |
| + String get backgroundRepeat => |
| + getPropertyValue('background-repeat'); |
| - /** Sets the value of "display" */ |
| - void set display(String value) { |
| - setProperty('display', value, ''); |
| + /** Sets the value of "background-repeat" */ |
| + void set backgroundRepeat(String value) { |
| + setProperty('background-repeat', value, ''); |
| } |
| - /** Gets the value of "empty-cells" */ |
| - String get emptyCells => |
| - getPropertyValue('empty-cells'); |
| + /** Gets the value of "background-repeat-x" */ |
| + String get backgroundRepeatX => |
| + getPropertyValue('background-repeat-x'); |
| - /** Sets the value of "empty-cells" */ |
| - void set emptyCells(String value) { |
| - setProperty('empty-cells', value, ''); |
| + /** Sets the value of "background-repeat-x" */ |
| + void set backgroundRepeatX(String value) { |
| + setProperty('background-repeat-x', value, ''); |
| } |
| - /** Gets the value of "filter" */ |
| - String get filter => |
| - getPropertyValue('${_browserPrefix}filter'); |
| + /** Gets the value of "background-repeat-y" */ |
| + String get backgroundRepeatY => |
| + getPropertyValue('background-repeat-y'); |
| - /** Sets the value of "filter" */ |
| - void set filter(String value) { |
| - setProperty('${_browserPrefix}filter', value, ''); |
| + /** Sets the value of "background-repeat-y" */ |
| + void set backgroundRepeatY(String value) { |
| + setProperty('background-repeat-y', value, ''); |
| } |
| - /** Gets the value of "flex" */ |
| - String get flex => |
| - getPropertyValue('${_browserPrefix}flex'); |
| + /** Gets the value of "background-size" */ |
| + String get backgroundSize => |
| + getPropertyValue('background-size'); |
| - /** Sets the value of "flex" */ |
| - void set flex(String value) { |
| - setProperty('${_browserPrefix}flex', value, ''); |
| + /** Sets the value of "background-size" */ |
| + void set backgroundSize(String value) { |
| + setProperty('background-size', value, ''); |
| } |
| - /** Gets the value of "flex-basis" */ |
| - String get flexBasis => |
| - getPropertyValue('${_browserPrefix}flex-basis'); |
| + /** Gets the value of "blend-mode" */ |
| + String get blendMode => |
| + getPropertyValue('${_browserPrefix}blend-mode'); |
| - /** Sets the value of "flex-basis" */ |
| - void set flexBasis(String value) { |
| - setProperty('${_browserPrefix}flex-basis', value, ''); |
| + /** Sets the value of "blend-mode" */ |
| + void set blendMode(String value) { |
| + setProperty('${_browserPrefix}blend-mode', value, ''); |
| } |
| - /** Gets the value of "flex-direction" */ |
| - String get flexDirection => |
| - getPropertyValue('${_browserPrefix}flex-direction'); |
| + /** Gets the value of "border" */ |
| + String get border => |
| + getPropertyValue('border'); |
| - /** Sets the value of "flex-direction" */ |
| - void set flexDirection(String value) { |
| - setProperty('${_browserPrefix}flex-direction', value, ''); |
| + /** Sets the value of "border" */ |
| + void set border(String value) { |
| + setProperty('border', value, ''); |
| } |
| - /** Gets the value of "flex-flow" */ |
| - String get flexFlow => |
| - getPropertyValue('${_browserPrefix}flex-flow'); |
| + /** Gets the value of "border-after" */ |
| + String get borderAfter => |
| + getPropertyValue('${_browserPrefix}border-after'); |
| - /** Sets the value of "flex-flow" */ |
| - void set flexFlow(String value) { |
| - setProperty('${_browserPrefix}flex-flow', value, ''); |
| + /** Sets the value of "border-after" */ |
| + void set borderAfter(String value) { |
| + setProperty('${_browserPrefix}border-after', value, ''); |
| } |
| - /** Gets the value of "flex-grow" */ |
| - String get flexGrow => |
| - getPropertyValue('${_browserPrefix}flex-grow'); |
| + /** Gets the value of "border-after-color" */ |
| + String get borderAfterColor => |
| + getPropertyValue('${_browserPrefix}border-after-color'); |
| - /** Sets the value of "flex-grow" */ |
| - void set flexGrow(String value) { |
| - setProperty('${_browserPrefix}flex-grow', value, ''); |
| + /** Sets the value of "border-after-color" */ |
| + void set borderAfterColor(String value) { |
| + setProperty('${_browserPrefix}border-after-color', value, ''); |
| } |
| - /** Gets the value of "flex-shrink" */ |
| - String get flexShrink => |
| - getPropertyValue('${_browserPrefix}flex-shrink'); |
| + /** Gets the value of "border-after-style" */ |
| + String get borderAfterStyle => |
| + getPropertyValue('${_browserPrefix}border-after-style'); |
| - /** Sets the value of "flex-shrink" */ |
| - void set flexShrink(String value) { |
| - setProperty('${_browserPrefix}flex-shrink', value, ''); |
| + /** Sets the value of "border-after-style" */ |
| + void set borderAfterStyle(String value) { |
| + setProperty('${_browserPrefix}border-after-style', value, ''); |
| } |
| - /** Gets the value of "flex-wrap" */ |
| - String get flexWrap => |
| - getPropertyValue('${_browserPrefix}flex-wrap'); |
| + /** Gets the value of "border-after-width" */ |
| + String get borderAfterWidth => |
| + getPropertyValue('${_browserPrefix}border-after-width'); |
| - /** Sets the value of "flex-wrap" */ |
| - void set flexWrap(String value) { |
| - setProperty('${_browserPrefix}flex-wrap', value, ''); |
| + /** Sets the value of "border-after-width" */ |
| + void set borderAfterWidth(String value) { |
| + setProperty('${_browserPrefix}border-after-width', value, ''); |
| } |
| - /** Gets the value of "float" */ |
| - String get float => |
| - getPropertyValue('float'); |
| + /** Gets the value of "border-before" */ |
| + String get borderBefore => |
| + getPropertyValue('${_browserPrefix}border-before'); |
| - /** Sets the value of "float" */ |
| - void set float(String value) { |
| - setProperty('float', value, ''); |
| + /** Sets the value of "border-before" */ |
| + void set borderBefore(String value) { |
| + setProperty('${_browserPrefix}border-before', value, ''); |
| } |
| - /** Gets the value of "flow-from" */ |
| - String get flowFrom => |
| - getPropertyValue('${_browserPrefix}flow-from'); |
| + /** Gets the value of "border-before-color" */ |
| + String get borderBeforeColor => |
| + getPropertyValue('${_browserPrefix}border-before-color'); |
| - /** Sets the value of "flow-from" */ |
| - void set flowFrom(String value) { |
| - setProperty('${_browserPrefix}flow-from', value, ''); |
| + /** Sets the value of "border-before-color" */ |
| + void set borderBeforeColor(String value) { |
| + setProperty('${_browserPrefix}border-before-color', value, ''); |
| } |
| - /** Gets the value of "flow-into" */ |
| - String get flowInto => |
| - getPropertyValue('${_browserPrefix}flow-into'); |
| + /** Gets the value of "border-before-style" */ |
| + String get borderBeforeStyle => |
| + getPropertyValue('${_browserPrefix}border-before-style'); |
| - /** Sets the value of "flow-into" */ |
| - void set flowInto(String value) { |
| - setProperty('${_browserPrefix}flow-into', value, ''); |
| + /** Sets the value of "border-before-style" */ |
| + void set borderBeforeStyle(String value) { |
| + setProperty('${_browserPrefix}border-before-style', value, ''); |
| } |
| - /** Gets the value of "font" */ |
| - String get font => |
| - getPropertyValue('font'); |
| + /** Gets the value of "border-before-width" */ |
| + String get borderBeforeWidth => |
| + getPropertyValue('${_browserPrefix}border-before-width'); |
| - /** Sets the value of "font" */ |
| - void set font(String value) { |
| - setProperty('font', value, ''); |
| + /** Sets the value of "border-before-width" */ |
| + void set borderBeforeWidth(String value) { |
| + setProperty('${_browserPrefix}border-before-width', value, ''); |
| } |
| - /** Gets the value of "font-family" */ |
| - String get fontFamily => |
| - getPropertyValue('font-family'); |
| + /** Gets the value of "border-bottom" */ |
| + String get borderBottom => |
| + getPropertyValue('border-bottom'); |
| - /** Sets the value of "font-family" */ |
| - void set fontFamily(String value) { |
| - setProperty('font-family', value, ''); |
| + /** Sets the value of "border-bottom" */ |
| + void set borderBottom(String value) { |
| + setProperty('border-bottom', value, ''); |
| } |
| - /** Gets the value of "font-feature-settings" */ |
| - String get fontFeatureSettings => |
| - getPropertyValue('${_browserPrefix}font-feature-settings'); |
| + /** Gets the value of "border-bottom-color" */ |
| + String get borderBottomColor => |
| + getPropertyValue('border-bottom-color'); |
| - /** Sets the value of "font-feature-settings" */ |
| - void set fontFeatureSettings(String value) { |
| - setProperty('${_browserPrefix}font-feature-settings', value, ''); |
| + /** Sets the value of "border-bottom-color" */ |
| + void set borderBottomColor(String value) { |
| + setProperty('border-bottom-color', value, ''); |
| } |
| - /** Gets the value of "font-kerning" */ |
| - String get fontKerning => |
| - getPropertyValue('${_browserPrefix}font-kerning'); |
| + /** Gets the value of "border-bottom-left-radius" */ |
| + String get borderBottomLeftRadius => |
| + getPropertyValue('border-bottom-left-radius'); |
| - /** Sets the value of "font-kerning" */ |
| - void set fontKerning(String value) { |
| - setProperty('${_browserPrefix}font-kerning', value, ''); |
| + /** Sets the value of "border-bottom-left-radius" */ |
| + void set borderBottomLeftRadius(String value) { |
| + setProperty('border-bottom-left-radius', value, ''); |
| } |
| - /** Gets the value of "font-size" */ |
| - String get fontSize => |
| - getPropertyValue('font-size'); |
| + /** Gets the value of "border-bottom-right-radius" */ |
| + String get borderBottomRightRadius => |
| + getPropertyValue('border-bottom-right-radius'); |
| - /** Sets the value of "font-size" */ |
| - void set fontSize(String value) { |
| - setProperty('font-size', value, ''); |
| + /** Sets the value of "border-bottom-right-radius" */ |
| + void set borderBottomRightRadius(String value) { |
| + setProperty('border-bottom-right-radius', value, ''); |
| } |
| - /** Gets the value of "font-size-delta" */ |
| - String get fontSizeDelta => |
| - getPropertyValue('${_browserPrefix}font-size-delta'); |
| + /** Gets the value of "border-bottom-style" */ |
| + String get borderBottomStyle => |
| + getPropertyValue('border-bottom-style'); |
| - /** Sets the value of "font-size-delta" */ |
| - void set fontSizeDelta(String value) { |
| - setProperty('${_browserPrefix}font-size-delta', value, ''); |
| + /** Sets the value of "border-bottom-style" */ |
| + void set borderBottomStyle(String value) { |
| + setProperty('border-bottom-style', value, ''); |
| } |
| - /** Gets the value of "font-smoothing" */ |
| - String get fontSmoothing => |
| - getPropertyValue('${_browserPrefix}font-smoothing'); |
| + /** Gets the value of "border-bottom-width" */ |
| + String get borderBottomWidth => |
| + getPropertyValue('border-bottom-width'); |
| - /** Sets the value of "font-smoothing" */ |
| - void set fontSmoothing(String value) { |
| - setProperty('${_browserPrefix}font-smoothing', value, ''); |
| + /** Sets the value of "border-bottom-width" */ |
| + void set borderBottomWidth(String value) { |
| + setProperty('border-bottom-width', value, ''); |
| } |
| - /** Gets the value of "font-stretch" */ |
| - String get fontStretch => |
| - getPropertyValue('font-stretch'); |
| + /** Gets the value of "border-collapse" */ |
| + String get borderCollapse => |
| + getPropertyValue('border-collapse'); |
| - /** Sets the value of "font-stretch" */ |
| - void set fontStretch(String value) { |
| - setProperty('font-stretch', value, ''); |
| + /** Sets the value of "border-collapse" */ |
| + void set borderCollapse(String value) { |
| + setProperty('border-collapse', value, ''); |
| } |
| - /** Gets the value of "font-style" */ |
| - String get fontStyle => |
| - getPropertyValue('font-style'); |
| + /** Gets the value of "border-color" */ |
| + String get borderColor => |
| + getPropertyValue('border-color'); |
| - /** Sets the value of "font-style" */ |
| - void set fontStyle(String value) { |
| - setProperty('font-style', value, ''); |
| + /** Sets the value of "border-color" */ |
| + void set borderColor(String value) { |
| + setProperty('border-color', value, ''); |
| } |
| - /** Gets the value of "font-variant" */ |
| - String get fontVariant => |
| - getPropertyValue('font-variant'); |
| + /** Gets the value of "border-end" */ |
| + String get borderEnd => |
| + getPropertyValue('${_browserPrefix}border-end'); |
| - /** Sets the value of "font-variant" */ |
| - void set fontVariant(String value) { |
| - setProperty('font-variant', value, ''); |
| + /** Sets the value of "border-end" */ |
| + void set borderEnd(String value) { |
| + setProperty('${_browserPrefix}border-end', value, ''); |
| } |
| - /** Gets the value of "font-variant-ligatures" */ |
| - String get fontVariantLigatures => |
| - getPropertyValue('${_browserPrefix}font-variant-ligatures'); |
| + /** Gets the value of "border-end-color" */ |
| + String get borderEndColor => |
| + getPropertyValue('${_browserPrefix}border-end-color'); |
| - /** Sets the value of "font-variant-ligatures" */ |
| - void set fontVariantLigatures(String value) { |
| - setProperty('${_browserPrefix}font-variant-ligatures', value, ''); |
| + /** Sets the value of "border-end-color" */ |
| + void set borderEndColor(String value) { |
| + setProperty('${_browserPrefix}border-end-color', value, ''); |
| } |
| - /** Gets the value of "font-weight" */ |
| - String get fontWeight => |
| - getPropertyValue('font-weight'); |
| + /** Gets the value of "border-end-style" */ |
| + String get borderEndStyle => |
| + getPropertyValue('${_browserPrefix}border-end-style'); |
| - /** Sets the value of "font-weight" */ |
| - void set fontWeight(String value) { |
| - setProperty('font-weight', value, ''); |
| + /** Sets the value of "border-end-style" */ |
| + void set borderEndStyle(String value) { |
| + setProperty('${_browserPrefix}border-end-style', value, ''); |
| } |
| - /** Gets the value of "grid-column" */ |
| - String get gridColumn => |
| - getPropertyValue('${_browserPrefix}grid-column'); |
| + /** Gets the value of "border-end-width" */ |
| + String get borderEndWidth => |
| + getPropertyValue('${_browserPrefix}border-end-width'); |
| - /** Sets the value of "grid-column" */ |
| - void set gridColumn(String value) { |
| - setProperty('${_browserPrefix}grid-column', value, ''); |
| + /** Sets the value of "border-end-width" */ |
| + void set borderEndWidth(String value) { |
| + setProperty('${_browserPrefix}border-end-width', value, ''); |
| } |
| - /** Gets the value of "grid-columns" */ |
| - String get gridColumns => |
| - getPropertyValue('${_browserPrefix}grid-columns'); |
| + /** Gets the value of "border-fit" */ |
| + String get borderFit => |
| + getPropertyValue('${_browserPrefix}border-fit'); |
| - /** Sets the value of "grid-columns" */ |
| - void set gridColumns(String value) { |
| - setProperty('${_browserPrefix}grid-columns', value, ''); |
| - } |
| + /** Sets the value of "border-fit" */ |
| + void set borderFit(String value) { |
| + setProperty('${_browserPrefix}border-fit', value, ''); |
| + } |
| - /** Gets the value of "grid-row" */ |
| - String get gridRow => |
| - getPropertyValue('${_browserPrefix}grid-row'); |
| + /** Gets the value of "border-horizontal-spacing" */ |
| + String get borderHorizontalSpacing => |
| + getPropertyValue('${_browserPrefix}border-horizontal-spacing'); |
| - /** Sets the value of "grid-row" */ |
| - void set gridRow(String value) { |
| - setProperty('${_browserPrefix}grid-row', value, ''); |
| + /** Sets the value of "border-horizontal-spacing" */ |
| + void set borderHorizontalSpacing(String value) { |
| + setProperty('${_browserPrefix}border-horizontal-spacing', value, ''); |
| } |
| - /** Gets the value of "grid-rows" */ |
| - String get gridRows => |
| - getPropertyValue('${_browserPrefix}grid-rows'); |
| + /** Gets the value of "border-image" */ |
| + String get borderImage => |
| + getPropertyValue('border-image'); |
| - /** Sets the value of "grid-rows" */ |
| - void set gridRows(String value) { |
| - setProperty('${_browserPrefix}grid-rows', value, ''); |
| + /** Sets the value of "border-image" */ |
| + void set borderImage(String value) { |
| + setProperty('border-image', value, ''); |
| } |
| - /** Gets the value of "height" */ |
| - String get height => |
| - getPropertyValue('height'); |
| + /** Gets the value of "border-image-outset" */ |
| + String get borderImageOutset => |
| + getPropertyValue('border-image-outset'); |
| - /** Sets the value of "height" */ |
| - void set height(String value) { |
| - setProperty('height', value, ''); |
| + /** Sets the value of "border-image-outset" */ |
| + void set borderImageOutset(String value) { |
| + setProperty('border-image-outset', value, ''); |
| } |
| - /** Gets the value of "highlight" */ |
| - String get highlight => |
| - getPropertyValue('${_browserPrefix}highlight'); |
| + /** Gets the value of "border-image-repeat" */ |
| + String get borderImageRepeat => |
| + getPropertyValue('border-image-repeat'); |
| - /** Sets the value of "highlight" */ |
| - void set highlight(String value) { |
| - setProperty('${_browserPrefix}highlight', value, ''); |
| + /** Sets the value of "border-image-repeat" */ |
| + void set borderImageRepeat(String value) { |
| + setProperty('border-image-repeat', value, ''); |
| } |
| - /** Gets the value of "hyphenate-character" */ |
| - String get hyphenateCharacter => |
| - getPropertyValue('${_browserPrefix}hyphenate-character'); |
| + /** Gets the value of "border-image-slice" */ |
| + String get borderImageSlice => |
| + getPropertyValue('border-image-slice'); |
| - /** Sets the value of "hyphenate-character" */ |
| - void set hyphenateCharacter(String value) { |
| - setProperty('${_browserPrefix}hyphenate-character', value, ''); |
| + /** Sets the value of "border-image-slice" */ |
| + void set borderImageSlice(String value) { |
| + setProperty('border-image-slice', value, ''); |
| } |
| - /** Gets the value of "hyphenate-limit-after" */ |
| - String get hyphenateLimitAfter => |
| - getPropertyValue('${_browserPrefix}hyphenate-limit-after'); |
| + /** Gets the value of "border-image-source" */ |
| + String get borderImageSource => |
| + getPropertyValue('border-image-source'); |
| - /** Sets the value of "hyphenate-limit-after" */ |
| - void set hyphenateLimitAfter(String value) { |
| - setProperty('${_browserPrefix}hyphenate-limit-after', value, ''); |
| + /** Sets the value of "border-image-source" */ |
| + void set borderImageSource(String value) { |
| + setProperty('border-image-source', value, ''); |
| } |
| - /** Gets the value of "hyphenate-limit-before" */ |
| - String get hyphenateLimitBefore => |
| - getPropertyValue('${_browserPrefix}hyphenate-limit-before'); |
| + /** Gets the value of "border-image-width" */ |
| + String get borderImageWidth => |
| + getPropertyValue('border-image-width'); |
| - /** Sets the value of "hyphenate-limit-before" */ |
| - void set hyphenateLimitBefore(String value) { |
| - setProperty('${_browserPrefix}hyphenate-limit-before', value, ''); |
| + /** Sets the value of "border-image-width" */ |
| + void set borderImageWidth(String value) { |
| + setProperty('border-image-width', value, ''); |
| } |
| - /** Gets the value of "hyphenate-limit-lines" */ |
| - String get hyphenateLimitLines => |
| - getPropertyValue('${_browserPrefix}hyphenate-limit-lines'); |
| + /** Gets the value of "border-left" */ |
| + String get borderLeft => |
| + getPropertyValue('border-left'); |
| - /** Sets the value of "hyphenate-limit-lines" */ |
| - void set hyphenateLimitLines(String value) { |
| - setProperty('${_browserPrefix}hyphenate-limit-lines', value, ''); |
| + /** Sets the value of "border-left" */ |
| + void set borderLeft(String value) { |
| + setProperty('border-left', value, ''); |
| } |
| - /** Gets the value of "hyphens" */ |
| - String get hyphens => |
| - getPropertyValue('${_browserPrefix}hyphens'); |
| + /** Gets the value of "border-left-color" */ |
| + String get borderLeftColor => |
| + getPropertyValue('border-left-color'); |
| - /** Sets the value of "hyphens" */ |
| - void set hyphens(String value) { |
| - setProperty('${_browserPrefix}hyphens', value, ''); |
| + /** Sets the value of "border-left-color" */ |
| + void set borderLeftColor(String value) { |
| + setProperty('border-left-color', value, ''); |
| } |
| - /** Gets the value of "image-orientation" */ |
| - String get imageOrientation => |
| - getPropertyValue('image-orientation'); |
| + /** Gets the value of "border-left-style" */ |
| + String get borderLeftStyle => |
| + getPropertyValue('border-left-style'); |
| - /** Sets the value of "image-orientation" */ |
| - void set imageOrientation(String value) { |
| - setProperty('image-orientation', value, ''); |
| + /** Sets the value of "border-left-style" */ |
| + void set borderLeftStyle(String value) { |
| + setProperty('border-left-style', value, ''); |
| } |
| - /** Gets the value of "image-rendering" */ |
| - String get imageRendering => |
| - getPropertyValue('image-rendering'); |
| + /** Gets the value of "border-left-width" */ |
| + String get borderLeftWidth => |
| + getPropertyValue('border-left-width'); |
| - /** Sets the value of "image-rendering" */ |
| - void set imageRendering(String value) { |
| - setProperty('image-rendering', value, ''); |
| + /** Sets the value of "border-left-width" */ |
| + void set borderLeftWidth(String value) { |
| + setProperty('border-left-width', value, ''); |
| } |
| - /** Gets the value of "image-resolution" */ |
| - String get imageResolution => |
| - getPropertyValue('image-resolution'); |
| + /** Gets the value of "border-radius" */ |
| + String get borderRadius => |
| + getPropertyValue('border-radius'); |
| - /** Sets the value of "image-resolution" */ |
| - void set imageResolution(String value) { |
| - setProperty('image-resolution', value, ''); |
| + /** Sets the value of "border-radius" */ |
| + void set borderRadius(String value) { |
| + setProperty('border-radius', value, ''); |
| } |
| - /** Gets the value of "justify-content" */ |
| - String get justifyContent => |
| - getPropertyValue('${_browserPrefix}justify-content'); |
| + /** Gets the value of "border-right" */ |
| + String get borderRight => |
| + getPropertyValue('border-right'); |
| - /** Sets the value of "justify-content" */ |
| - void set justifyContent(String value) { |
| - setProperty('${_browserPrefix}justify-content', value, ''); |
| + /** Sets the value of "border-right" */ |
| + void set borderRight(String value) { |
| + setProperty('border-right', value, ''); |
| } |
| - /** Gets the value of "left" */ |
| - String get left => |
| - getPropertyValue('left'); |
| + /** Gets the value of "border-right-color" */ |
| + String get borderRightColor => |
| + getPropertyValue('border-right-color'); |
| - /** Sets the value of "left" */ |
| - void set left(String value) { |
| - setProperty('left', value, ''); |
| + /** Sets the value of "border-right-color" */ |
| + void set borderRightColor(String value) { |
| + setProperty('border-right-color', value, ''); |
| } |
| - /** Gets the value of "letter-spacing" */ |
| - String get letterSpacing => |
| - getPropertyValue('letter-spacing'); |
| + /** Gets the value of "border-right-style" */ |
| + String get borderRightStyle => |
| + getPropertyValue('border-right-style'); |
| - /** Sets the value of "letter-spacing" */ |
| - void set letterSpacing(String value) { |
| - setProperty('letter-spacing', value, ''); |
| + /** Sets the value of "border-right-style" */ |
| + void set borderRightStyle(String value) { |
| + setProperty('border-right-style', value, ''); |
| } |
| - /** Gets the value of "line-align" */ |
| - String get lineAlign => |
| - getPropertyValue('${_browserPrefix}line-align'); |
| + /** Gets the value of "border-right-width" */ |
| + String get borderRightWidth => |
| + getPropertyValue('border-right-width'); |
| - /** Sets the value of "line-align" */ |
| - void set lineAlign(String value) { |
| - setProperty('${_browserPrefix}line-align', value, ''); |
| + /** Sets the value of "border-right-width" */ |
| + void set borderRightWidth(String value) { |
| + setProperty('border-right-width', value, ''); |
| } |
| - /** Gets the value of "line-box-contain" */ |
| - String get lineBoxContain => |
| - getPropertyValue('${_browserPrefix}line-box-contain'); |
| + /** Gets the value of "border-spacing" */ |
| + String get borderSpacing => |
| + getPropertyValue('border-spacing'); |
| - /** Sets the value of "line-box-contain" */ |
| - void set lineBoxContain(String value) { |
| - setProperty('${_browserPrefix}line-box-contain', value, ''); |
| + /** Sets the value of "border-spacing" */ |
| + void set borderSpacing(String value) { |
| + setProperty('border-spacing', value, ''); |
| } |
| - /** Gets the value of "line-break" */ |
| - String get lineBreak => |
| - getPropertyValue('${_browserPrefix}line-break'); |
| + /** Gets the value of "border-start" */ |
| + String get borderStart => |
| + getPropertyValue('${_browserPrefix}border-start'); |
| - /** Sets the value of "line-break" */ |
| - void set lineBreak(String value) { |
| - setProperty('${_browserPrefix}line-break', value, ''); |
| + /** Sets the value of "border-start" */ |
| + void set borderStart(String value) { |
| + setProperty('${_browserPrefix}border-start', value, ''); |
| } |
| - /** Gets the value of "line-clamp" */ |
| - String get lineClamp => |
| - getPropertyValue('${_browserPrefix}line-clamp'); |
| + /** Gets the value of "border-start-color" */ |
| + String get borderStartColor => |
| + getPropertyValue('${_browserPrefix}border-start-color'); |
| - /** Sets the value of "line-clamp" */ |
| - void set lineClamp(String value) { |
| - setProperty('${_browserPrefix}line-clamp', value, ''); |
| + /** Sets the value of "border-start-color" */ |
| + void set borderStartColor(String value) { |
| + setProperty('${_browserPrefix}border-start-color', value, ''); |
| } |
| - /** Gets the value of "line-grid" */ |
| - String get lineGrid => |
| - getPropertyValue('${_browserPrefix}line-grid'); |
| + /** Gets the value of "border-start-style" */ |
| + String get borderStartStyle => |
| + getPropertyValue('${_browserPrefix}border-start-style'); |
| - /** Sets the value of "line-grid" */ |
| - void set lineGrid(String value) { |
| - setProperty('${_browserPrefix}line-grid', value, ''); |
| + /** Sets the value of "border-start-style" */ |
| + void set borderStartStyle(String value) { |
| + setProperty('${_browserPrefix}border-start-style', value, ''); |
| } |
| - /** Gets the value of "line-height" */ |
| - String get lineHeight => |
| - getPropertyValue('line-height'); |
| + /** Gets the value of "border-start-width" */ |
| + String get borderStartWidth => |
| + getPropertyValue('${_browserPrefix}border-start-width'); |
| - /** Sets the value of "line-height" */ |
| - void set lineHeight(String value) { |
| - setProperty('line-height', value, ''); |
| + /** Sets the value of "border-start-width" */ |
| + void set borderStartWidth(String value) { |
| + setProperty('${_browserPrefix}border-start-width', value, ''); |
| } |
| - /** Gets the value of "line-snap" */ |
| - String get lineSnap => |
| - getPropertyValue('${_browserPrefix}line-snap'); |
| + /** Gets the value of "border-style" */ |
| + String get borderStyle => |
| + getPropertyValue('border-style'); |
| - /** Sets the value of "line-snap" */ |
| - void set lineSnap(String value) { |
| - setProperty('${_browserPrefix}line-snap', value, ''); |
| + /** Sets the value of "border-style" */ |
| + void set borderStyle(String value) { |
| + setProperty('border-style', value, ''); |
| } |
| - /** Gets the value of "list-style" */ |
| - String get listStyle => |
| - getPropertyValue('list-style'); |
| + /** Gets the value of "border-top" */ |
| + String get borderTop => |
| + getPropertyValue('border-top'); |
| - /** Sets the value of "list-style" */ |
| - void set listStyle(String value) { |
| - setProperty('list-style', value, ''); |
| + /** Sets the value of "border-top" */ |
| + void set borderTop(String value) { |
| + setProperty('border-top', value, ''); |
| } |
| - /** Gets the value of "list-style-image" */ |
| - String get listStyleImage => |
| - getPropertyValue('list-style-image'); |
| + /** Gets the value of "border-top-color" */ |
| + String get borderTopColor => |
| + getPropertyValue('border-top-color'); |
| - /** Sets the value of "list-style-image" */ |
| - void set listStyleImage(String value) { |
| - setProperty('list-style-image', value, ''); |
| + /** Sets the value of "border-top-color" */ |
| + void set borderTopColor(String value) { |
| + setProperty('border-top-color', value, ''); |
| } |
| - /** Gets the value of "list-style-position" */ |
| - String get listStylePosition => |
| - getPropertyValue('list-style-position'); |
| + /** Gets the value of "border-top-left-radius" */ |
| + String get borderTopLeftRadius => |
| + getPropertyValue('border-top-left-radius'); |
| - /** Sets the value of "list-style-position" */ |
| - void set listStylePosition(String value) { |
| - setProperty('list-style-position', value, ''); |
| + /** Sets the value of "border-top-left-radius" */ |
| + void set borderTopLeftRadius(String value) { |
| + setProperty('border-top-left-radius', value, ''); |
| } |
| - /** Gets the value of "list-style-type" */ |
| - String get listStyleType => |
| - getPropertyValue('list-style-type'); |
| + /** Gets the value of "border-top-right-radius" */ |
| + String get borderTopRightRadius => |
| + getPropertyValue('border-top-right-radius'); |
| - /** Sets the value of "list-style-type" */ |
| - void set listStyleType(String value) { |
| - setProperty('list-style-type', value, ''); |
| + /** Sets the value of "border-top-right-radius" */ |
| + void set borderTopRightRadius(String value) { |
| + setProperty('border-top-right-radius', value, ''); |
| } |
| - /** Gets the value of "locale" */ |
| - String get locale => |
| - getPropertyValue('${_browserPrefix}locale'); |
| + /** Gets the value of "border-top-style" */ |
| + String get borderTopStyle => |
| + getPropertyValue('border-top-style'); |
| - /** Sets the value of "locale" */ |
| - void set locale(String value) { |
| - setProperty('${_browserPrefix}locale', value, ''); |
| + /** Sets the value of "border-top-style" */ |
| + void set borderTopStyle(String value) { |
| + setProperty('border-top-style', value, ''); |
| } |
| - /** Gets the value of "logical-height" */ |
| - String get logicalHeight => |
| - getPropertyValue('${_browserPrefix}logical-height'); |
| + /** Gets the value of "border-top-width" */ |
| + String get borderTopWidth => |
| + getPropertyValue('border-top-width'); |
| - /** Sets the value of "logical-height" */ |
| - void set logicalHeight(String value) { |
| - setProperty('${_browserPrefix}logical-height', value, ''); |
| + /** Sets the value of "border-top-width" */ |
| + void set borderTopWidth(String value) { |
| + setProperty('border-top-width', value, ''); |
| } |
| - /** Gets the value of "logical-width" */ |
| - String get logicalWidth => |
| - getPropertyValue('${_browserPrefix}logical-width'); |
| + /** Gets the value of "border-vertical-spacing" */ |
| + String get borderVerticalSpacing => |
| + getPropertyValue('${_browserPrefix}border-vertical-spacing'); |
| - /** Sets the value of "logical-width" */ |
| - void set logicalWidth(String value) { |
| - setProperty('${_browserPrefix}logical-width', value, ''); |
| + /** Sets the value of "border-vertical-spacing" */ |
| + void set borderVerticalSpacing(String value) { |
| + setProperty('${_browserPrefix}border-vertical-spacing', value, ''); |
| } |
| - /** Gets the value of "margin" */ |
| - String get margin => |
| - getPropertyValue('margin'); |
| + /** Gets the value of "border-width" */ |
| + String get borderWidth => |
| + getPropertyValue('border-width'); |
| - /** Sets the value of "margin" */ |
| - void set margin(String value) { |
| - setProperty('margin', value, ''); |
| + /** Sets the value of "border-width" */ |
| + void set borderWidth(String value) { |
| + setProperty('border-width', value, ''); |
| } |
| - /** Gets the value of "margin-after" */ |
| - String get marginAfter => |
| - getPropertyValue('${_browserPrefix}margin-after'); |
| + /** Gets the value of "bottom" */ |
| + String get bottom => |
| + getPropertyValue('bottom'); |
| - /** Sets the value of "margin-after" */ |
| - void set marginAfter(String value) { |
| - setProperty('${_browserPrefix}margin-after', value, ''); |
| + /** Sets the value of "bottom" */ |
| + void set bottom(String value) { |
| + setProperty('bottom', value, ''); |
| } |
| - /** Gets the value of "margin-after-collapse" */ |
| - String get marginAfterCollapse => |
| - getPropertyValue('${_browserPrefix}margin-after-collapse'); |
| + /** Gets the value of "box-align" */ |
| + String get boxAlign => |
| + getPropertyValue('${_browserPrefix}box-align'); |
| - /** Sets the value of "margin-after-collapse" */ |
| - void set marginAfterCollapse(String value) { |
| - setProperty('${_browserPrefix}margin-after-collapse', value, ''); |
| + /** Sets the value of "box-align" */ |
| + void set boxAlign(String value) { |
| + setProperty('${_browserPrefix}box-align', value, ''); |
| } |
| - /** Gets the value of "margin-before" */ |
| - String get marginBefore => |
| - getPropertyValue('${_browserPrefix}margin-before'); |
| + /** Gets the value of "box-decoration-break" */ |
| + String get boxDecorationBreak => |
| + getPropertyValue('${_browserPrefix}box-decoration-break'); |
| - /** Sets the value of "margin-before" */ |
| - void set marginBefore(String value) { |
| - setProperty('${_browserPrefix}margin-before', value, ''); |
| + /** Sets the value of "box-decoration-break" */ |
| + void set boxDecorationBreak(String value) { |
| + setProperty('${_browserPrefix}box-decoration-break', value, ''); |
| } |
| - /** Gets the value of "margin-before-collapse" */ |
| - String get marginBeforeCollapse => |
| - getPropertyValue('${_browserPrefix}margin-before-collapse'); |
| + /** Gets the value of "box-direction" */ |
| + String get boxDirection => |
| + getPropertyValue('${_browserPrefix}box-direction'); |
| - /** Sets the value of "margin-before-collapse" */ |
| - void set marginBeforeCollapse(String value) { |
| - setProperty('${_browserPrefix}margin-before-collapse', value, ''); |
| + /** Sets the value of "box-direction" */ |
| + void set boxDirection(String value) { |
| + setProperty('${_browserPrefix}box-direction', value, ''); |
| } |
| - /** Gets the value of "margin-bottom" */ |
| - String get marginBottom => |
| - getPropertyValue('margin-bottom'); |
| + /** Gets the value of "box-flex" */ |
| + String get boxFlex => |
| + getPropertyValue('${_browserPrefix}box-flex'); |
| - /** Sets the value of "margin-bottom" */ |
| - void set marginBottom(String value) { |
| - setProperty('margin-bottom', value, ''); |
| + /** Sets the value of "box-flex" */ |
| + void set boxFlex(String value) { |
| + setProperty('${_browserPrefix}box-flex', value, ''); |
| } |
| - /** Gets the value of "margin-bottom-collapse" */ |
| - String get marginBottomCollapse => |
| - getPropertyValue('${_browserPrefix}margin-bottom-collapse'); |
| + /** Gets the value of "box-flex-group" */ |
| + String get boxFlexGroup => |
| + getPropertyValue('${_browserPrefix}box-flex-group'); |
| - /** Sets the value of "margin-bottom-collapse" */ |
| - void set marginBottomCollapse(String value) { |
| - setProperty('${_browserPrefix}margin-bottom-collapse', value, ''); |
| + /** Sets the value of "box-flex-group" */ |
| + void set boxFlexGroup(String value) { |
| + setProperty('${_browserPrefix}box-flex-group', value, ''); |
| } |
| - /** Gets the value of "margin-collapse" */ |
| - String get marginCollapse => |
| - getPropertyValue('${_browserPrefix}margin-collapse'); |
| + /** Gets the value of "box-lines" */ |
| + String get boxLines => |
| + getPropertyValue('${_browserPrefix}box-lines'); |
| - /** Sets the value of "margin-collapse" */ |
| - void set marginCollapse(String value) { |
| - setProperty('${_browserPrefix}margin-collapse', value, ''); |
| + /** Sets the value of "box-lines" */ |
| + void set boxLines(String value) { |
| + setProperty('${_browserPrefix}box-lines', value, ''); |
| } |
| - /** Gets the value of "margin-end" */ |
| - String get marginEnd => |
| - getPropertyValue('${_browserPrefix}margin-end'); |
| + /** Gets the value of "box-ordinal-group" */ |
| + String get boxOrdinalGroup => |
| + getPropertyValue('${_browserPrefix}box-ordinal-group'); |
| - /** Sets the value of "margin-end" */ |
| - void set marginEnd(String value) { |
| - setProperty('${_browserPrefix}margin-end', value, ''); |
| + /** Sets the value of "box-ordinal-group" */ |
| + void set boxOrdinalGroup(String value) { |
| + setProperty('${_browserPrefix}box-ordinal-group', value, ''); |
| } |
| - /** Gets the value of "margin-left" */ |
| - String get marginLeft => |
| - getPropertyValue('margin-left'); |
| + /** Gets the value of "box-orient" */ |
| + String get boxOrient => |
| + getPropertyValue('${_browserPrefix}box-orient'); |
| - /** Sets the value of "margin-left" */ |
| - void set marginLeft(String value) { |
| - setProperty('margin-left', value, ''); |
| + /** Sets the value of "box-orient" */ |
| + void set boxOrient(String value) { |
| + setProperty('${_browserPrefix}box-orient', value, ''); |
| } |
| - /** Gets the value of "margin-right" */ |
| - String get marginRight => |
| - getPropertyValue('margin-right'); |
| + /** Gets the value of "box-pack" */ |
| + String get boxPack => |
| + getPropertyValue('${_browserPrefix}box-pack'); |
| - /** Sets the value of "margin-right" */ |
| - void set marginRight(String value) { |
| - setProperty('margin-right', value, ''); |
| + /** Sets the value of "box-pack" */ |
| + void set boxPack(String value) { |
| + setProperty('${_browserPrefix}box-pack', value, ''); |
| } |
| - /** Gets the value of "margin-start" */ |
| - String get marginStart => |
| - getPropertyValue('${_browserPrefix}margin-start'); |
| + /** Gets the value of "box-reflect" */ |
| + String get boxReflect => |
| + getPropertyValue('${_browserPrefix}box-reflect'); |
| - /** Sets the value of "margin-start" */ |
| - void set marginStart(String value) { |
| - setProperty('${_browserPrefix}margin-start', value, ''); |
| + /** Sets the value of "box-reflect" */ |
| + void set boxReflect(String value) { |
| + setProperty('${_browserPrefix}box-reflect', value, ''); |
| } |
| - /** Gets the value of "margin-top" */ |
| - String get marginTop => |
| - getPropertyValue('margin-top'); |
| + /** Gets the value of "box-shadow" */ |
| + String get boxShadow => |
| + getPropertyValue('box-shadow'); |
| - /** Sets the value of "margin-top" */ |
| - void set marginTop(String value) { |
| - setProperty('margin-top', value, ''); |
| + /** Sets the value of "box-shadow" */ |
| + void set boxShadow(String value) { |
| + setProperty('box-shadow', value, ''); |
| } |
| - /** Gets the value of "margin-top-collapse" */ |
| - String get marginTopCollapse => |
| - getPropertyValue('${_browserPrefix}margin-top-collapse'); |
| - |
| - /** Sets the value of "margin-top-collapse" */ |
| - void set marginTopCollapse(String value) { |
| - setProperty('${_browserPrefix}margin-top-collapse', value, ''); |
| + /** Gets the value of "box-sizing" */ |
| + String get boxSizing => |
| + getPropertyValue('box-sizing'); |
| + |
| + /** Sets the value of "box-sizing" */ |
| + void set boxSizing(String value) { |
| + setProperty('box-sizing', value, ''); |
| } |
| - /** Gets the value of "marquee" */ |
| - String get marquee => |
| - getPropertyValue('${_browserPrefix}marquee'); |
| + /** Gets the value of "caption-side" */ |
| + String get captionSide => |
| + getPropertyValue('caption-side'); |
| - /** Sets the value of "marquee" */ |
| - void set marquee(String value) { |
| - setProperty('${_browserPrefix}marquee', value, ''); |
| + /** Sets the value of "caption-side" */ |
| + void set captionSide(String value) { |
| + setProperty('caption-side', value, ''); |
| } |
| - /** Gets the value of "marquee-direction" */ |
| - String get marqueeDirection => |
| - getPropertyValue('${_browserPrefix}marquee-direction'); |
| + /** Gets the value of "clear" */ |
| + String get clear => |
| + getPropertyValue('clear'); |
| - /** Sets the value of "marquee-direction" */ |
| - void set marqueeDirection(String value) { |
| - setProperty('${_browserPrefix}marquee-direction', value, ''); |
| + /** Sets the value of "clear" */ |
| + void set clear(String value) { |
| + setProperty('clear', value, ''); |
| } |
| - /** Gets the value of "marquee-increment" */ |
| - String get marqueeIncrement => |
| - getPropertyValue('${_browserPrefix}marquee-increment'); |
| + /** Gets the value of "clip" */ |
| + String get clip => |
| + getPropertyValue('clip'); |
| - /** Sets the value of "marquee-increment" */ |
| - void set marqueeIncrement(String value) { |
| - setProperty('${_browserPrefix}marquee-increment', value, ''); |
| + /** Sets the value of "clip" */ |
| + void set clip(String value) { |
| + setProperty('clip', value, ''); |
| } |
| - /** Gets the value of "marquee-repetition" */ |
| - String get marqueeRepetition => |
| - getPropertyValue('${_browserPrefix}marquee-repetition'); |
| + /** Gets the value of "clip-path" */ |
| + String get clipPath => |
| + getPropertyValue('${_browserPrefix}clip-path'); |
| - /** Sets the value of "marquee-repetition" */ |
| - void set marqueeRepetition(String value) { |
| - setProperty('${_browserPrefix}marquee-repetition', value, ''); |
| + /** Sets the value of "clip-path" */ |
| + void set clipPath(String value) { |
| + setProperty('${_browserPrefix}clip-path', value, ''); |
| } |
| - /** Gets the value of "marquee-speed" */ |
| - String get marqueeSpeed => |
| - getPropertyValue('${_browserPrefix}marquee-speed'); |
| + /** Gets the value of "color" */ |
| + String get color => |
| + getPropertyValue('color'); |
| - /** Sets the value of "marquee-speed" */ |
| - void set marqueeSpeed(String value) { |
| - setProperty('${_browserPrefix}marquee-speed', value, ''); |
| + /** Sets the value of "color" */ |
| + void set color(String value) { |
| + setProperty('color', value, ''); |
| } |
| - /** Gets the value of "marquee-style" */ |
| - String get marqueeStyle => |
| - getPropertyValue('${_browserPrefix}marquee-style'); |
| + /** Gets the value of "color-correction" */ |
| + String get colorCorrection => |
| + getPropertyValue('${_browserPrefix}color-correction'); |
| - /** Sets the value of "marquee-style" */ |
| - void set marqueeStyle(String value) { |
| - setProperty('${_browserPrefix}marquee-style', value, ''); |
| + /** Sets the value of "color-correction" */ |
| + void set colorCorrection(String value) { |
| + setProperty('${_browserPrefix}color-correction', value, ''); |
| } |
| - /** Gets the value of "mask" */ |
| - String get mask => |
| - getPropertyValue('${_browserPrefix}mask'); |
| + /** Gets the value of "column-axis" */ |
| + String get columnAxis => |
| + getPropertyValue('${_browserPrefix}column-axis'); |
| - /** Sets the value of "mask" */ |
| - void set mask(String value) { |
| - setProperty('${_browserPrefix}mask', value, ''); |
| + /** Sets the value of "column-axis" */ |
| + void set columnAxis(String value) { |
| + setProperty('${_browserPrefix}column-axis', value, ''); |
| } |
| - /** Gets the value of "mask-attachment" */ |
| - String get maskAttachment => |
| - getPropertyValue('${_browserPrefix}mask-attachment'); |
| + /** Gets the value of "column-break-after" */ |
| + String get columnBreakAfter => |
| + getPropertyValue('${_browserPrefix}column-break-after'); |
| - /** Sets the value of "mask-attachment" */ |
| - void set maskAttachment(String value) { |
| - setProperty('${_browserPrefix}mask-attachment', value, ''); |
| + /** Sets the value of "column-break-after" */ |
| + void set columnBreakAfter(String value) { |
| + setProperty('${_browserPrefix}column-break-after', value, ''); |
| } |
| - /** Gets the value of "mask-box-image" */ |
| - String get maskBoxImage => |
| - getPropertyValue('${_browserPrefix}mask-box-image'); |
| + /** Gets the value of "column-break-before" */ |
| + String get columnBreakBefore => |
| + getPropertyValue('${_browserPrefix}column-break-before'); |
| - /** Sets the value of "mask-box-image" */ |
| - void set maskBoxImage(String value) { |
| - setProperty('${_browserPrefix}mask-box-image', value, ''); |
| + /** Sets the value of "column-break-before" */ |
| + void set columnBreakBefore(String value) { |
| + setProperty('${_browserPrefix}column-break-before', value, ''); |
| } |
| - /** Gets the value of "mask-box-image-outset" */ |
| - String get maskBoxImageOutset => |
| - getPropertyValue('${_browserPrefix}mask-box-image-outset'); |
| + /** Gets the value of "column-break-inside" */ |
| + String get columnBreakInside => |
| + getPropertyValue('${_browserPrefix}column-break-inside'); |
| - /** Sets the value of "mask-box-image-outset" */ |
| - void set maskBoxImageOutset(String value) { |
| - setProperty('${_browserPrefix}mask-box-image-outset', value, ''); |
| + /** Sets the value of "column-break-inside" */ |
| + void set columnBreakInside(String value) { |
| + setProperty('${_browserPrefix}column-break-inside', value, ''); |
| } |
| - /** Gets the value of "mask-box-image-repeat" */ |
| - String get maskBoxImageRepeat => |
| - getPropertyValue('${_browserPrefix}mask-box-image-repeat'); |
| + /** Gets the value of "column-count" */ |
| + String get columnCount => |
| + getPropertyValue('${_browserPrefix}column-count'); |
| - /** Sets the value of "mask-box-image-repeat" */ |
| - void set maskBoxImageRepeat(String value) { |
| - setProperty('${_browserPrefix}mask-box-image-repeat', value, ''); |
| + /** Sets the value of "column-count" */ |
| + void set columnCount(String value) { |
| + setProperty('${_browserPrefix}column-count', value, ''); |
| } |
| - /** Gets the value of "mask-box-image-slice" */ |
| - String get maskBoxImageSlice => |
| - getPropertyValue('${_browserPrefix}mask-box-image-slice'); |
| + /** Gets the value of "column-gap" */ |
| + String get columnGap => |
| + getPropertyValue('${_browserPrefix}column-gap'); |
| - /** Sets the value of "mask-box-image-slice" */ |
| - void set maskBoxImageSlice(String value) { |
| - setProperty('${_browserPrefix}mask-box-image-slice', value, ''); |
| + /** Sets the value of "column-gap" */ |
| + void set columnGap(String value) { |
| + setProperty('${_browserPrefix}column-gap', value, ''); |
| } |
| - /** Gets the value of "mask-box-image-source" */ |
| - String get maskBoxImageSource => |
| - getPropertyValue('${_browserPrefix}mask-box-image-source'); |
| + /** Gets the value of "column-progression" */ |
| + String get columnProgression => |
| + getPropertyValue('${_browserPrefix}column-progression'); |
| - /** Sets the value of "mask-box-image-source" */ |
| - void set maskBoxImageSource(String value) { |
| - setProperty('${_browserPrefix}mask-box-image-source', value, ''); |
| + /** Sets the value of "column-progression" */ |
| + void set columnProgression(String value) { |
| + setProperty('${_browserPrefix}column-progression', value, ''); |
| } |
| - /** Gets the value of "mask-box-image-width" */ |
| - String get maskBoxImageWidth => |
| - getPropertyValue('${_browserPrefix}mask-box-image-width'); |
| + /** Gets the value of "column-rule" */ |
| + String get columnRule => |
| + getPropertyValue('${_browserPrefix}column-rule'); |
| - /** Sets the value of "mask-box-image-width" */ |
| - void set maskBoxImageWidth(String value) { |
| - setProperty('${_browserPrefix}mask-box-image-width', value, ''); |
| + /** Sets the value of "column-rule" */ |
| + void set columnRule(String value) { |
| + setProperty('${_browserPrefix}column-rule', value, ''); |
| } |
| - /** Gets the value of "mask-clip" */ |
| - String get maskClip => |
| - getPropertyValue('${_browserPrefix}mask-clip'); |
| + /** Gets the value of "column-rule-color" */ |
| + String get columnRuleColor => |
| + getPropertyValue('${_browserPrefix}column-rule-color'); |
| - /** Sets the value of "mask-clip" */ |
| - void set maskClip(String value) { |
| - setProperty('${_browserPrefix}mask-clip', value, ''); |
| + /** Sets the value of "column-rule-color" */ |
| + void set columnRuleColor(String value) { |
| + setProperty('${_browserPrefix}column-rule-color', value, ''); |
| } |
| - /** Gets the value of "mask-composite" */ |
| - String get maskComposite => |
| - getPropertyValue('${_browserPrefix}mask-composite'); |
| + /** Gets the value of "column-rule-style" */ |
| + String get columnRuleStyle => |
| + getPropertyValue('${_browserPrefix}column-rule-style'); |
| - /** Sets the value of "mask-composite" */ |
| - void set maskComposite(String value) { |
| - setProperty('${_browserPrefix}mask-composite', value, ''); |
| + /** Sets the value of "column-rule-style" */ |
| + void set columnRuleStyle(String value) { |
| + setProperty('${_browserPrefix}column-rule-style', value, ''); |
| } |
| - /** Gets the value of "mask-image" */ |
| - String get maskImage => |
| - getPropertyValue('${_browserPrefix}mask-image'); |
| + /** Gets the value of "column-rule-width" */ |
| + String get columnRuleWidth => |
| + getPropertyValue('${_browserPrefix}column-rule-width'); |
| - /** Sets the value of "mask-image" */ |
| - void set maskImage(String value) { |
| - setProperty('${_browserPrefix}mask-image', value, ''); |
| + /** Sets the value of "column-rule-width" */ |
| + void set columnRuleWidth(String value) { |
| + setProperty('${_browserPrefix}column-rule-width', value, ''); |
| } |
| - /** Gets the value of "mask-origin" */ |
| - String get maskOrigin => |
| - getPropertyValue('${_browserPrefix}mask-origin'); |
| + /** Gets the value of "column-span" */ |
| + String get columnSpan => |
| + getPropertyValue('${_browserPrefix}column-span'); |
| - /** Sets the value of "mask-origin" */ |
| - void set maskOrigin(String value) { |
| - setProperty('${_browserPrefix}mask-origin', value, ''); |
| + /** Sets the value of "column-span" */ |
| + void set columnSpan(String value) { |
| + setProperty('${_browserPrefix}column-span', value, ''); |
| } |
| - /** Gets the value of "mask-position" */ |
| - String get maskPosition => |
| - getPropertyValue('${_browserPrefix}mask-position'); |
| + /** Gets the value of "column-width" */ |
| + String get columnWidth => |
| + getPropertyValue('${_browserPrefix}column-width'); |
| - /** Sets the value of "mask-position" */ |
| - void set maskPosition(String value) { |
| - setProperty('${_browserPrefix}mask-position', value, ''); |
| + /** Sets the value of "column-width" */ |
| + void set columnWidth(String value) { |
| + setProperty('${_browserPrefix}column-width', value, ''); |
| } |
| - /** Gets the value of "mask-position-x" */ |
| - String get maskPositionX => |
| - getPropertyValue('${_browserPrefix}mask-position-x'); |
| + /** Gets the value of "columns" */ |
| + String get columns => |
| + getPropertyValue('${_browserPrefix}columns'); |
| - /** Sets the value of "mask-position-x" */ |
| - void set maskPositionX(String value) { |
| - setProperty('${_browserPrefix}mask-position-x', value, ''); |
| + /** Sets the value of "columns" */ |
| + void set columns(String value) { |
| + setProperty('${_browserPrefix}columns', value, ''); |
| } |
| - /** Gets the value of "mask-position-y" */ |
| - String get maskPositionY => |
| - getPropertyValue('${_browserPrefix}mask-position-y'); |
| + /** Gets the value of "content" */ |
| + String get content => |
| + getPropertyValue('content'); |
| - /** Sets the value of "mask-position-y" */ |
| - void set maskPositionY(String value) { |
| - setProperty('${_browserPrefix}mask-position-y', value, ''); |
| + /** Sets the value of "content" */ |
| + void set content(String value) { |
| + setProperty('content', value, ''); |
| } |
| - /** Gets the value of "mask-repeat" */ |
| - String get maskRepeat => |
| - getPropertyValue('${_browserPrefix}mask-repeat'); |
| + /** Gets the value of "counter-increment" */ |
| + String get counterIncrement => |
| + getPropertyValue('counter-increment'); |
| - /** Sets the value of "mask-repeat" */ |
| - void set maskRepeat(String value) { |
| - setProperty('${_browserPrefix}mask-repeat', value, ''); |
| + /** Sets the value of "counter-increment" */ |
| + void set counterIncrement(String value) { |
| + setProperty('counter-increment', value, ''); |
| } |
| - /** Gets the value of "mask-repeat-x" */ |
| - String get maskRepeatX => |
| - getPropertyValue('${_browserPrefix}mask-repeat-x'); |
| + /** Gets the value of "counter-reset" */ |
| + String get counterReset => |
| + getPropertyValue('counter-reset'); |
| - /** Sets the value of "mask-repeat-x" */ |
| - void set maskRepeatX(String value) { |
| - setProperty('${_browserPrefix}mask-repeat-x', value, ''); |
| + /** Sets the value of "counter-reset" */ |
| + void set counterReset(String value) { |
| + setProperty('counter-reset', value, ''); |
| } |
| - /** Gets the value of "mask-repeat-y" */ |
| - String get maskRepeatY => |
| - getPropertyValue('${_browserPrefix}mask-repeat-y'); |
| + /** Gets the value of "cursor" */ |
| + String get cursor => |
| + getPropertyValue('cursor'); |
| - /** Sets the value of "mask-repeat-y" */ |
| - void set maskRepeatY(String value) { |
| - setProperty('${_browserPrefix}mask-repeat-y', value, ''); |
| + /** Sets the value of "cursor" */ |
| + void set cursor(String value) { |
| + setProperty('cursor', value, ''); |
| } |
| - /** Gets the value of "mask-size" */ |
| - String get maskSize => |
| - getPropertyValue('${_browserPrefix}mask-size'); |
| + /** Gets the value of "dashboard-region" */ |
| + String get dashboardRegion => |
| + getPropertyValue('${_browserPrefix}dashboard-region'); |
| - /** Sets the value of "mask-size" */ |
| - void set maskSize(String value) { |
| - setProperty('${_browserPrefix}mask-size', value, ''); |
| + /** Sets the value of "dashboard-region" */ |
| + void set dashboardRegion(String value) { |
| + setProperty('${_browserPrefix}dashboard-region', value, ''); |
| } |
| - /** Gets the value of "max-height" */ |
| - String get maxHeight => |
| - getPropertyValue('max-height'); |
| + /** Gets the value of "direction" */ |
| + String get direction => |
| + getPropertyValue('direction'); |
| - /** Sets the value of "max-height" */ |
| - void set maxHeight(String value) { |
| - setProperty('max-height', value, ''); |
| + /** Sets the value of "direction" */ |
| + void set direction(String value) { |
| + setProperty('direction', value, ''); |
| } |
| - /** Gets the value of "max-logical-height" */ |
| - String get maxLogicalHeight => |
| - getPropertyValue('${_browserPrefix}max-logical-height'); |
| + /** Gets the value of "display" */ |
| + String get display => |
| + getPropertyValue('display'); |
| - /** Sets the value of "max-logical-height" */ |
| - void set maxLogicalHeight(String value) { |
| - setProperty('${_browserPrefix}max-logical-height', value, ''); |
| + /** Sets the value of "display" */ |
| + void set display(String value) { |
| + setProperty('display', value, ''); |
| } |
| - /** Gets the value of "max-logical-width" */ |
| - String get maxLogicalWidth => |
| - getPropertyValue('${_browserPrefix}max-logical-width'); |
| + /** Gets the value of "empty-cells" */ |
| + String get emptyCells => |
| + getPropertyValue('empty-cells'); |
| - /** Sets the value of "max-logical-width" */ |
| - void set maxLogicalWidth(String value) { |
| - setProperty('${_browserPrefix}max-logical-width', value, ''); |
| + /** Sets the value of "empty-cells" */ |
| + void set emptyCells(String value) { |
| + setProperty('empty-cells', value, ''); |
| } |
| - /** Gets the value of "max-width" */ |
| - String get maxWidth => |
| - getPropertyValue('max-width'); |
| + /** Gets the value of "filter" */ |
| + String get filter => |
| + getPropertyValue('${_browserPrefix}filter'); |
| - /** Sets the value of "max-width" */ |
| - void set maxWidth(String value) { |
| - setProperty('max-width', value, ''); |
| + /** Sets the value of "filter" */ |
| + void set filter(String value) { |
| + setProperty('${_browserPrefix}filter', value, ''); |
| } |
| - /** Gets the value of "max-zoom" */ |
| - String get maxZoom => |
| - getPropertyValue('max-zoom'); |
| + /** Gets the value of "flex" */ |
| + String get flex => |
| + getPropertyValue('${_browserPrefix}flex'); |
| - /** Sets the value of "max-zoom" */ |
| - void set maxZoom(String value) { |
| - setProperty('max-zoom', value, ''); |
| + /** Sets the value of "flex" */ |
| + void set flex(String value) { |
| + setProperty('${_browserPrefix}flex', value, ''); |
| } |
| - /** Gets the value of "min-height" */ |
| - String get minHeight => |
| - getPropertyValue('min-height'); |
| + /** Gets the value of "flex-basis" */ |
| + String get flexBasis => |
| + getPropertyValue('${_browserPrefix}flex-basis'); |
| - /** Sets the value of "min-height" */ |
| - void set minHeight(String value) { |
| - setProperty('min-height', value, ''); |
| + /** Sets the value of "flex-basis" */ |
| + void set flexBasis(String value) { |
| + setProperty('${_browserPrefix}flex-basis', value, ''); |
| } |
| - /** Gets the value of "min-logical-height" */ |
| - String get minLogicalHeight => |
| - getPropertyValue('${_browserPrefix}min-logical-height'); |
| + /** Gets the value of "flex-direction" */ |
| + String get flexDirection => |
| + getPropertyValue('${_browserPrefix}flex-direction'); |
| - /** Sets the value of "min-logical-height" */ |
| - void set minLogicalHeight(String value) { |
| - setProperty('${_browserPrefix}min-logical-height', value, ''); |
| + /** Sets the value of "flex-direction" */ |
| + void set flexDirection(String value) { |
| + setProperty('${_browserPrefix}flex-direction', value, ''); |
| } |
| - /** Gets the value of "min-logical-width" */ |
| - String get minLogicalWidth => |
| - getPropertyValue('${_browserPrefix}min-logical-width'); |
| + /** Gets the value of "flex-flow" */ |
| + String get flexFlow => |
| + getPropertyValue('${_browserPrefix}flex-flow'); |
| - /** Sets the value of "min-logical-width" */ |
| - void set minLogicalWidth(String value) { |
| - setProperty('${_browserPrefix}min-logical-width', value, ''); |
| + /** Sets the value of "flex-flow" */ |
| + void set flexFlow(String value) { |
| + setProperty('${_browserPrefix}flex-flow', value, ''); |
| } |
| - /** Gets the value of "min-width" */ |
| - String get minWidth => |
| - getPropertyValue('min-width'); |
| + /** Gets the value of "flex-grow" */ |
| + String get flexGrow => |
| + getPropertyValue('${_browserPrefix}flex-grow'); |
| - /** Sets the value of "min-width" */ |
| - void set minWidth(String value) { |
| - setProperty('min-width', value, ''); |
| + /** Sets the value of "flex-grow" */ |
| + void set flexGrow(String value) { |
| + setProperty('${_browserPrefix}flex-grow', value, ''); |
| } |
| - /** Gets the value of "min-zoom" */ |
| - String get minZoom => |
| - getPropertyValue('min-zoom'); |
| + /** Gets the value of "flex-shrink" */ |
| + String get flexShrink => |
| + getPropertyValue('${_browserPrefix}flex-shrink'); |
| - /** Sets the value of "min-zoom" */ |
| - void set minZoom(String value) { |
| - setProperty('min-zoom', value, ''); |
| + /** Sets the value of "flex-shrink" */ |
| + void set flexShrink(String value) { |
| + setProperty('${_browserPrefix}flex-shrink', value, ''); |
| } |
| - /** Gets the value of "nbsp-mode" */ |
| - String get nbspMode => |
| - getPropertyValue('${_browserPrefix}nbsp-mode'); |
| + /** Gets the value of "flex-wrap" */ |
| + String get flexWrap => |
| + getPropertyValue('${_browserPrefix}flex-wrap'); |
| - /** Sets the value of "nbsp-mode" */ |
| - void set nbspMode(String value) { |
| - setProperty('${_browserPrefix}nbsp-mode', value, ''); |
| + /** Sets the value of "flex-wrap" */ |
| + void set flexWrap(String value) { |
| + setProperty('${_browserPrefix}flex-wrap', value, ''); |
| } |
| - /** Gets the value of "opacity" */ |
| - String get opacity => |
| - getPropertyValue('opacity'); |
| + /** Gets the value of "float" */ |
| + String get float => |
| + getPropertyValue('float'); |
| - /** Sets the value of "opacity" */ |
| - void set opacity(String value) { |
| - setProperty('opacity', value, ''); |
| + /** Sets the value of "float" */ |
| + void set float(String value) { |
| + setProperty('float', value, ''); |
| } |
| - /** Gets the value of "order" */ |
| - String get order => |
| - getPropertyValue('${_browserPrefix}order'); |
| + /** Gets the value of "flow-from" */ |
| + String get flowFrom => |
| + getPropertyValue('${_browserPrefix}flow-from'); |
| - /** Sets the value of "order" */ |
| - void set order(String value) { |
| - setProperty('${_browserPrefix}order', value, ''); |
| + /** Sets the value of "flow-from" */ |
| + void set flowFrom(String value) { |
| + setProperty('${_browserPrefix}flow-from', value, ''); |
| } |
| - /** Gets the value of "orientation" */ |
| - String get orientation => |
| - getPropertyValue('orientation'); |
| + /** Gets the value of "flow-into" */ |
| + String get flowInto => |
| + getPropertyValue('${_browserPrefix}flow-into'); |
| - /** Sets the value of "orientation" */ |
| - void set orientation(String value) { |
| - setProperty('orientation', value, ''); |
| + /** Sets the value of "flow-into" */ |
| + void set flowInto(String value) { |
| + setProperty('${_browserPrefix}flow-into', value, ''); |
| } |
| - /** Gets the value of "orphans" */ |
| - String get orphans => |
| - getPropertyValue('orphans'); |
| + /** Gets the value of "font" */ |
| + String get font => |
| + getPropertyValue('font'); |
| - /** Sets the value of "orphans" */ |
| - void set orphans(String value) { |
| - setProperty('orphans', value, ''); |
| + /** Sets the value of "font" */ |
| + void set font(String value) { |
| + setProperty('font', value, ''); |
| } |
| - /** Gets the value of "outline" */ |
| - String get outline => |
| - getPropertyValue('outline'); |
| + /** Gets the value of "font-family" */ |
| + String get fontFamily => |
| + getPropertyValue('font-family'); |
| - /** Sets the value of "outline" */ |
| - void set outline(String value) { |
| - setProperty('outline', value, ''); |
| + /** Sets the value of "font-family" */ |
| + void set fontFamily(String value) { |
| + setProperty('font-family', value, ''); |
| } |
| - /** Gets the value of "outline-color" */ |
| - String get outlineColor => |
| - getPropertyValue('outline-color'); |
| + /** Gets the value of "font-feature-settings" */ |
| + String get fontFeatureSettings => |
| + getPropertyValue('${_browserPrefix}font-feature-settings'); |
| - /** Sets the value of "outline-color" */ |
| - void set outlineColor(String value) { |
| - setProperty('outline-color', value, ''); |
| - } |
| + /** Sets the value of "font-feature-settings" */ |
| + void set fontFeatureSettings(String value) { |
| + setProperty('${_browserPrefix}font-feature-settings', value, ''); |
| + } |
| - /** Gets the value of "outline-offset" */ |
| - String get outlineOffset => |
| - getPropertyValue('outline-offset'); |
| + /** Gets the value of "font-kerning" */ |
| + String get fontKerning => |
| + getPropertyValue('${_browserPrefix}font-kerning'); |
| - /** Sets the value of "outline-offset" */ |
| - void set outlineOffset(String value) { |
| - setProperty('outline-offset', value, ''); |
| + /** Sets the value of "font-kerning" */ |
| + void set fontKerning(String value) { |
| + setProperty('${_browserPrefix}font-kerning', value, ''); |
| } |
| - /** Gets the value of "outline-style" */ |
| - String get outlineStyle => |
| - getPropertyValue('outline-style'); |
| + /** Gets the value of "font-size" */ |
| + String get fontSize => |
| + getPropertyValue('font-size'); |
| - /** Sets the value of "outline-style" */ |
| - void set outlineStyle(String value) { |
| - setProperty('outline-style', value, ''); |
| + /** Sets the value of "font-size" */ |
| + void set fontSize(String value) { |
| + setProperty('font-size', value, ''); |
| } |
| - /** Gets the value of "outline-width" */ |
| - String get outlineWidth => |
| - getPropertyValue('outline-width'); |
| + /** Gets the value of "font-size-delta" */ |
| + String get fontSizeDelta => |
| + getPropertyValue('${_browserPrefix}font-size-delta'); |
| - /** Sets the value of "outline-width" */ |
| - void set outlineWidth(String value) { |
| - setProperty('outline-width', value, ''); |
| + /** Sets the value of "font-size-delta" */ |
| + void set fontSizeDelta(String value) { |
| + setProperty('${_browserPrefix}font-size-delta', value, ''); |
| } |
| - /** Gets the value of "overflow" */ |
| - String get overflow => |
| - getPropertyValue('overflow'); |
| + /** Gets the value of "font-smoothing" */ |
| + String get fontSmoothing => |
| + getPropertyValue('${_browserPrefix}font-smoothing'); |
| - /** Sets the value of "overflow" */ |
| - void set overflow(String value) { |
| - setProperty('overflow', value, ''); |
| + /** Sets the value of "font-smoothing" */ |
| + void set fontSmoothing(String value) { |
| + setProperty('${_browserPrefix}font-smoothing', value, ''); |
| } |
| - /** Gets the value of "overflow-scrolling" */ |
| - String get overflowScrolling => |
| - getPropertyValue('${_browserPrefix}overflow-scrolling'); |
| + /** Gets the value of "font-stretch" */ |
| + String get fontStretch => |
| + getPropertyValue('font-stretch'); |
| - /** Sets the value of "overflow-scrolling" */ |
| - void set overflowScrolling(String value) { |
| - setProperty('${_browserPrefix}overflow-scrolling', value, ''); |
| + /** Sets the value of "font-stretch" */ |
| + void set fontStretch(String value) { |
| + setProperty('font-stretch', value, ''); |
| } |
| - /** Gets the value of "overflow-wrap" */ |
| - String get overflowWrap => |
| - getPropertyValue('overflow-wrap'); |
| + /** Gets the value of "font-style" */ |
| + String get fontStyle => |
| + getPropertyValue('font-style'); |
| - /** Sets the value of "overflow-wrap" */ |
| - void set overflowWrap(String value) { |
| - setProperty('overflow-wrap', value, ''); |
| + /** Sets the value of "font-style" */ |
| + void set fontStyle(String value) { |
| + setProperty('font-style', value, ''); |
| } |
| - /** Gets the value of "overflow-x" */ |
| - String get overflowX => |
| - getPropertyValue('overflow-x'); |
| + /** Gets the value of "font-variant" */ |
| + String get fontVariant => |
| + getPropertyValue('font-variant'); |
| - /** Sets the value of "overflow-x" */ |
| - void set overflowX(String value) { |
| - setProperty('overflow-x', value, ''); |
| + /** Sets the value of "font-variant" */ |
| + void set fontVariant(String value) { |
| + setProperty('font-variant', value, ''); |
| } |
| - /** Gets the value of "overflow-y" */ |
| - String get overflowY => |
| - getPropertyValue('overflow-y'); |
| + /** Gets the value of "font-variant-ligatures" */ |
| + String get fontVariantLigatures => |
| + getPropertyValue('${_browserPrefix}font-variant-ligatures'); |
| - /** Sets the value of "overflow-y" */ |
| - void set overflowY(String value) { |
| - setProperty('overflow-y', value, ''); |
| + /** Sets the value of "font-variant-ligatures" */ |
| + void set fontVariantLigatures(String value) { |
| + setProperty('${_browserPrefix}font-variant-ligatures', value, ''); |
| } |
| - /** Gets the value of "padding" */ |
| - String get padding => |
| - getPropertyValue('padding'); |
| + /** Gets the value of "font-weight" */ |
| + String get fontWeight => |
| + getPropertyValue('font-weight'); |
| - /** Sets the value of "padding" */ |
| - void set padding(String value) { |
| - setProperty('padding', value, ''); |
| + /** Sets the value of "font-weight" */ |
| + void set fontWeight(String value) { |
| + setProperty('font-weight', value, ''); |
| } |
| - /** Gets the value of "padding-after" */ |
| - String get paddingAfter => |
| - getPropertyValue('${_browserPrefix}padding-after'); |
| + /** Gets the value of "grid-column" */ |
| + String get gridColumn => |
| + getPropertyValue('${_browserPrefix}grid-column'); |
| - /** Sets the value of "padding-after" */ |
| - void set paddingAfter(String value) { |
| - setProperty('${_browserPrefix}padding-after', value, ''); |
| + /** Sets the value of "grid-column" */ |
| + void set gridColumn(String value) { |
| + setProperty('${_browserPrefix}grid-column', value, ''); |
| } |
| - /** Gets the value of "padding-before" */ |
| - String get paddingBefore => |
| - getPropertyValue('${_browserPrefix}padding-before'); |
| + /** Gets the value of "grid-columns" */ |
| + String get gridColumns => |
| + getPropertyValue('${_browserPrefix}grid-columns'); |
| - /** Sets the value of "padding-before" */ |
| - void set paddingBefore(String value) { |
| - setProperty('${_browserPrefix}padding-before', value, ''); |
| + /** Sets the value of "grid-columns" */ |
| + void set gridColumns(String value) { |
| + setProperty('${_browserPrefix}grid-columns', value, ''); |
| } |
| - /** Gets the value of "padding-bottom" */ |
| - String get paddingBottom => |
| - getPropertyValue('padding-bottom'); |
| + /** Gets the value of "grid-row" */ |
| + String get gridRow => |
| + getPropertyValue('${_browserPrefix}grid-row'); |
| - /** Sets the value of "padding-bottom" */ |
| - void set paddingBottom(String value) { |
| - setProperty('padding-bottom', value, ''); |
| + /** Sets the value of "grid-row" */ |
| + void set gridRow(String value) { |
| + setProperty('${_browserPrefix}grid-row', value, ''); |
| } |
| - /** Gets the value of "padding-end" */ |
| - String get paddingEnd => |
| - getPropertyValue('${_browserPrefix}padding-end'); |
| + /** Gets the value of "grid-rows" */ |
| + String get gridRows => |
| + getPropertyValue('${_browserPrefix}grid-rows'); |
| - /** Sets the value of "padding-end" */ |
| - void set paddingEnd(String value) { |
| - setProperty('${_browserPrefix}padding-end', value, ''); |
| + /** Sets the value of "grid-rows" */ |
| + void set gridRows(String value) { |
| + setProperty('${_browserPrefix}grid-rows', value, ''); |
| } |
| - /** Gets the value of "padding-left" */ |
| - String get paddingLeft => |
| - getPropertyValue('padding-left'); |
| + /** Gets the value of "height" */ |
| + String get height => |
| + getPropertyValue('height'); |
| - /** Sets the value of "padding-left" */ |
| - void set paddingLeft(String value) { |
| - setProperty('padding-left', value, ''); |
| + /** Sets the value of "height" */ |
| + void set height(String value) { |
| + setProperty('height', value, ''); |
| } |
| - /** Gets the value of "padding-right" */ |
| - String get paddingRight => |
| - getPropertyValue('padding-right'); |
| + /** Gets the value of "highlight" */ |
| + String get highlight => |
| + getPropertyValue('${_browserPrefix}highlight'); |
| - /** Sets the value of "padding-right" */ |
| - void set paddingRight(String value) { |
| - setProperty('padding-right', value, ''); |
| + /** Sets the value of "highlight" */ |
| + void set highlight(String value) { |
| + setProperty('${_browserPrefix}highlight', value, ''); |
| } |
| - /** Gets the value of "padding-start" */ |
| - String get paddingStart => |
| - getPropertyValue('${_browserPrefix}padding-start'); |
| + /** Gets the value of "hyphenate-character" */ |
| + String get hyphenateCharacter => |
| + getPropertyValue('${_browserPrefix}hyphenate-character'); |
| - /** Sets the value of "padding-start" */ |
| - void set paddingStart(String value) { |
| - setProperty('${_browserPrefix}padding-start', value, ''); |
| + /** Sets the value of "hyphenate-character" */ |
| + void set hyphenateCharacter(String value) { |
| + setProperty('${_browserPrefix}hyphenate-character', value, ''); |
| } |
| - /** Gets the value of "padding-top" */ |
| - String get paddingTop => |
| - getPropertyValue('padding-top'); |
| + /** Gets the value of "hyphenate-limit-after" */ |
| + String get hyphenateLimitAfter => |
| + getPropertyValue('${_browserPrefix}hyphenate-limit-after'); |
| - /** Sets the value of "padding-top" */ |
| - void set paddingTop(String value) { |
| - setProperty('padding-top', value, ''); |
| + /** Sets the value of "hyphenate-limit-after" */ |
| + void set hyphenateLimitAfter(String value) { |
| + setProperty('${_browserPrefix}hyphenate-limit-after', value, ''); |
| } |
| - /** Gets the value of "page" */ |
| - String get page => |
| - getPropertyValue('page'); |
| + /** Gets the value of "hyphenate-limit-before" */ |
| + String get hyphenateLimitBefore => |
| + getPropertyValue('${_browserPrefix}hyphenate-limit-before'); |
| - /** Sets the value of "page" */ |
| - void set page(String value) { |
| - setProperty('page', value, ''); |
| + /** Sets the value of "hyphenate-limit-before" */ |
| + void set hyphenateLimitBefore(String value) { |
| + setProperty('${_browserPrefix}hyphenate-limit-before', value, ''); |
| } |
| - /** Gets the value of "page-break-after" */ |
| - String get pageBreakAfter => |
| - getPropertyValue('page-break-after'); |
| + /** Gets the value of "hyphenate-limit-lines" */ |
| + String get hyphenateLimitLines => |
| + getPropertyValue('${_browserPrefix}hyphenate-limit-lines'); |
| - /** Sets the value of "page-break-after" */ |
| - void set pageBreakAfter(String value) { |
| - setProperty('page-break-after', value, ''); |
| + /** Sets the value of "hyphenate-limit-lines" */ |
| + void set hyphenateLimitLines(String value) { |
| + setProperty('${_browserPrefix}hyphenate-limit-lines', value, ''); |
| } |
| - /** Gets the value of "page-break-before" */ |
| - String get pageBreakBefore => |
| - getPropertyValue('page-break-before'); |
| + /** Gets the value of "hyphens" */ |
| + String get hyphens => |
| + getPropertyValue('${_browserPrefix}hyphens'); |
| - /** Sets the value of "page-break-before" */ |
| - void set pageBreakBefore(String value) { |
| - setProperty('page-break-before', value, ''); |
| + /** Sets the value of "hyphens" */ |
| + void set hyphens(String value) { |
| + setProperty('${_browserPrefix}hyphens', value, ''); |
| } |
| - /** Gets the value of "page-break-inside" */ |
| - String get pageBreakInside => |
| - getPropertyValue('page-break-inside'); |
| + /** Gets the value of "image-orientation" */ |
| + String get imageOrientation => |
| + getPropertyValue('image-orientation'); |
| - /** Sets the value of "page-break-inside" */ |
| - void set pageBreakInside(String value) { |
| - setProperty('page-break-inside', value, ''); |
| + /** Sets the value of "image-orientation" */ |
| + void set imageOrientation(String value) { |
| + setProperty('image-orientation', value, ''); |
| } |
| - /** Gets the value of "perspective" */ |
| - String get perspective => |
| - getPropertyValue('${_browserPrefix}perspective'); |
| + /** Gets the value of "image-rendering" */ |
| + String get imageRendering => |
| + getPropertyValue('image-rendering'); |
| - /** Sets the value of "perspective" */ |
| - void set perspective(String value) { |
| - setProperty('${_browserPrefix}perspective', value, ''); |
| + /** Sets the value of "image-rendering" */ |
| + void set imageRendering(String value) { |
| + setProperty('image-rendering', value, ''); |
| } |
| - /** Gets the value of "perspective-origin" */ |
| - String get perspectiveOrigin => |
| - getPropertyValue('${_browserPrefix}perspective-origin'); |
| + /** Gets the value of "image-resolution" */ |
| + String get imageResolution => |
| + getPropertyValue('image-resolution'); |
| - /** Sets the value of "perspective-origin" */ |
| - void set perspectiveOrigin(String value) { |
| - setProperty('${_browserPrefix}perspective-origin', value, ''); |
| + /** Sets the value of "image-resolution" */ |
| + void set imageResolution(String value) { |
| + setProperty('image-resolution', value, ''); |
| } |
| - /** Gets the value of "perspective-origin-x" */ |
| - String get perspectiveOriginX => |
| - getPropertyValue('${_browserPrefix}perspective-origin-x'); |
| + /** Gets the value of "justify-content" */ |
| + String get justifyContent => |
| + getPropertyValue('${_browserPrefix}justify-content'); |
| - /** Sets the value of "perspective-origin-x" */ |
| - void set perspectiveOriginX(String value) { |
| - setProperty('${_browserPrefix}perspective-origin-x', value, ''); |
| + /** Sets the value of "justify-content" */ |
| + void set justifyContent(String value) { |
| + setProperty('${_browserPrefix}justify-content', value, ''); |
| } |
| - /** Gets the value of "perspective-origin-y" */ |
| - String get perspectiveOriginY => |
| - getPropertyValue('${_browserPrefix}perspective-origin-y'); |
| + /** Gets the value of "left" */ |
| + String get left => |
| + getPropertyValue('left'); |
| - /** Sets the value of "perspective-origin-y" */ |
| - void set perspectiveOriginY(String value) { |
| - setProperty('${_browserPrefix}perspective-origin-y', value, ''); |
| + /** Sets the value of "left" */ |
| + void set left(String value) { |
| + setProperty('left', value, ''); |
| } |
| - /** Gets the value of "pointer-events" */ |
| - String get pointerEvents => |
| - getPropertyValue('pointer-events'); |
| + /** Gets the value of "letter-spacing" */ |
| + String get letterSpacing => |
| + getPropertyValue('letter-spacing'); |
| - /** Sets the value of "pointer-events" */ |
| - void set pointerEvents(String value) { |
| - setProperty('pointer-events', value, ''); |
| + /** Sets the value of "letter-spacing" */ |
| + void set letterSpacing(String value) { |
| + setProperty('letter-spacing', value, ''); |
| } |
| - /** Gets the value of "position" */ |
| - String get position => |
| - getPropertyValue('position'); |
| + /** Gets the value of "line-align" */ |
| + String get lineAlign => |
| + getPropertyValue('${_browserPrefix}line-align'); |
| - /** Sets the value of "position" */ |
| - void set position(String value) { |
| - setProperty('position', value, ''); |
| + /** Sets the value of "line-align" */ |
| + void set lineAlign(String value) { |
| + setProperty('${_browserPrefix}line-align', value, ''); |
| } |
| - /** Gets the value of "print-color-adjust" */ |
| - String get printColorAdjust => |
| - getPropertyValue('${_browserPrefix}print-color-adjust'); |
| + /** Gets the value of "line-box-contain" */ |
| + String get lineBoxContain => |
| + getPropertyValue('${_browserPrefix}line-box-contain'); |
| - /** Sets the value of "print-color-adjust" */ |
| - void set printColorAdjust(String value) { |
| - setProperty('${_browserPrefix}print-color-adjust', value, ''); |
| + /** Sets the value of "line-box-contain" */ |
| + void set lineBoxContain(String value) { |
| + setProperty('${_browserPrefix}line-box-contain', value, ''); |
| } |
| - /** Gets the value of "quotes" */ |
| - String get quotes => |
| - getPropertyValue('quotes'); |
| + /** Gets the value of "line-break" */ |
| + String get lineBreak => |
| + getPropertyValue('${_browserPrefix}line-break'); |
| - /** Sets the value of "quotes" */ |
| - void set quotes(String value) { |
| - setProperty('quotes', value, ''); |
| + /** Sets the value of "line-break" */ |
| + void set lineBreak(String value) { |
| + setProperty('${_browserPrefix}line-break', value, ''); |
| } |
| - /** Gets the value of "region-break-after" */ |
| - String get regionBreakAfter => |
| - getPropertyValue('${_browserPrefix}region-break-after'); |
| + /** Gets the value of "line-clamp" */ |
| + String get lineClamp => |
| + getPropertyValue('${_browserPrefix}line-clamp'); |
| - /** Sets the value of "region-break-after" */ |
| - void set regionBreakAfter(String value) { |
| - setProperty('${_browserPrefix}region-break-after', value, ''); |
| + /** Sets the value of "line-clamp" */ |
| + void set lineClamp(String value) { |
| + setProperty('${_browserPrefix}line-clamp', value, ''); |
| } |
| - /** Gets the value of "region-break-before" */ |
| - String get regionBreakBefore => |
| - getPropertyValue('${_browserPrefix}region-break-before'); |
| + /** Gets the value of "line-grid" */ |
| + String get lineGrid => |
| + getPropertyValue('${_browserPrefix}line-grid'); |
| - /** Sets the value of "region-break-before" */ |
| - void set regionBreakBefore(String value) { |
| - setProperty('${_browserPrefix}region-break-before', value, ''); |
| + /** Sets the value of "line-grid" */ |
| + void set lineGrid(String value) { |
| + setProperty('${_browserPrefix}line-grid', value, ''); |
| } |
| - /** Gets the value of "region-break-inside" */ |
| - String get regionBreakInside => |
| - getPropertyValue('${_browserPrefix}region-break-inside'); |
| + /** Gets the value of "line-height" */ |
| + String get lineHeight => |
| + getPropertyValue('line-height'); |
| - /** Sets the value of "region-break-inside" */ |
| - void set regionBreakInside(String value) { |
| - setProperty('${_browserPrefix}region-break-inside', value, ''); |
| + /** Sets the value of "line-height" */ |
| + void set lineHeight(String value) { |
| + setProperty('line-height', value, ''); |
| } |
| - /** Gets the value of "region-overflow" */ |
| - String get regionOverflow => |
| - getPropertyValue('${_browserPrefix}region-overflow'); |
| + /** Gets the value of "line-snap" */ |
| + String get lineSnap => |
| + getPropertyValue('${_browserPrefix}line-snap'); |
| - /** Sets the value of "region-overflow" */ |
| - void set regionOverflow(String value) { |
| - setProperty('${_browserPrefix}region-overflow', value, ''); |
| + /** Sets the value of "line-snap" */ |
| + void set lineSnap(String value) { |
| + setProperty('${_browserPrefix}line-snap', value, ''); |
| } |
| - /** Gets the value of "resize" */ |
| - String get resize => |
| - getPropertyValue('resize'); |
| + /** Gets the value of "list-style" */ |
| + String get listStyle => |
| + getPropertyValue('list-style'); |
| - /** Sets the value of "resize" */ |
| - void set resize(String value) { |
| - setProperty('resize', value, ''); |
| + /** Sets the value of "list-style" */ |
| + void set listStyle(String value) { |
| + setProperty('list-style', value, ''); |
| } |
| - /** Gets the value of "right" */ |
| - String get right => |
| - getPropertyValue('right'); |
| + /** Gets the value of "list-style-image" */ |
| + String get listStyleImage => |
| + getPropertyValue('list-style-image'); |
| - /** Sets the value of "right" */ |
| - void set right(String value) { |
| - setProperty('right', value, ''); |
| + /** Sets the value of "list-style-image" */ |
| + void set listStyleImage(String value) { |
| + setProperty('list-style-image', value, ''); |
| } |
| - /** Gets the value of "rtl-ordering" */ |
| - String get rtlOrdering => |
| - getPropertyValue('${_browserPrefix}rtl-ordering'); |
| + /** Gets the value of "list-style-position" */ |
| + String get listStylePosition => |
| + getPropertyValue('list-style-position'); |
| - /** Sets the value of "rtl-ordering" */ |
| - void set rtlOrdering(String value) { |
| - setProperty('${_browserPrefix}rtl-ordering', value, ''); |
| + /** Sets the value of "list-style-position" */ |
| + void set listStylePosition(String value) { |
| + setProperty('list-style-position', value, ''); |
| } |
| - /** Gets the value of "shape-inside" */ |
| - String get shapeInside => |
| - getPropertyValue('${_browserPrefix}shape-inside'); |
| + /** Gets the value of "list-style-type" */ |
| + String get listStyleType => |
| + getPropertyValue('list-style-type'); |
| - /** Sets the value of "shape-inside" */ |
| - void set shapeInside(String value) { |
| - setProperty('${_browserPrefix}shape-inside', value, ''); |
| + /** Sets the value of "list-style-type" */ |
| + void set listStyleType(String value) { |
| + setProperty('list-style-type', value, ''); |
| } |
| - /** Gets the value of "shape-margin" */ |
| - String get shapeMargin => |
| - getPropertyValue('${_browserPrefix}shape-margin'); |
| + /** Gets the value of "locale" */ |
| + String get locale => |
| + getPropertyValue('${_browserPrefix}locale'); |
| - /** Sets the value of "shape-margin" */ |
| - void set shapeMargin(String value) { |
| - setProperty('${_browserPrefix}shape-margin', value, ''); |
| + /** Sets the value of "locale" */ |
| + void set locale(String value) { |
| + setProperty('${_browserPrefix}locale', value, ''); |
| } |
| - /** Gets the value of "shape-outside" */ |
| - String get shapeOutside => |
| - getPropertyValue('${_browserPrefix}shape-outside'); |
| + /** Gets the value of "logical-height" */ |
| + String get logicalHeight => |
| + getPropertyValue('${_browserPrefix}logical-height'); |
| - /** Sets the value of "shape-outside" */ |
| - void set shapeOutside(String value) { |
| - setProperty('${_browserPrefix}shape-outside', value, ''); |
| + /** Sets the value of "logical-height" */ |
| + void set logicalHeight(String value) { |
| + setProperty('${_browserPrefix}logical-height', value, ''); |
| } |
| - /** Gets the value of "shape-padding" */ |
| - String get shapePadding => |
| - getPropertyValue('${_browserPrefix}shape-padding'); |
| + /** Gets the value of "logical-width" */ |
| + String get logicalWidth => |
| + getPropertyValue('${_browserPrefix}logical-width'); |
| - /** Sets the value of "shape-padding" */ |
| - void set shapePadding(String value) { |
| - setProperty('${_browserPrefix}shape-padding', value, ''); |
| + /** Sets the value of "logical-width" */ |
| + void set logicalWidth(String value) { |
| + setProperty('${_browserPrefix}logical-width', value, ''); |
| } |
| - /** Gets the value of "size" */ |
| - String get size => |
| - getPropertyValue('size'); |
| + /** Gets the value of "margin" */ |
| + String get margin => |
| + getPropertyValue('margin'); |
| - /** Sets the value of "size" */ |
| - void set size(String value) { |
| - setProperty('size', value, ''); |
| + /** Sets the value of "margin" */ |
| + void set margin(String value) { |
| + setProperty('margin', value, ''); |
| } |
| - /** Gets the value of "speak" */ |
| - String get speak => |
| - getPropertyValue('speak'); |
| + /** Gets the value of "margin-after" */ |
| + String get marginAfter => |
| + getPropertyValue('${_browserPrefix}margin-after'); |
| - /** Sets the value of "speak" */ |
| - void set speak(String value) { |
| - setProperty('speak', value, ''); |
| + /** Sets the value of "margin-after" */ |
| + void set marginAfter(String value) { |
| + setProperty('${_browserPrefix}margin-after', value, ''); |
| } |
| - /** Gets the value of "src" */ |
| - String get src => |
| - getPropertyValue('src'); |
| - |
| - /** Sets the value of "src" */ |
| - void set src(String value) { |
| - setProperty('src', value, ''); |
| + /** Gets the value of "margin-after-collapse" */ |
| + String get marginAfterCollapse => |
| + getPropertyValue('${_browserPrefix}margin-after-collapse'); |
| + |
| + /** Sets the value of "margin-after-collapse" */ |
| + void set marginAfterCollapse(String value) { |
| + setProperty('${_browserPrefix}margin-after-collapse', value, ''); |
| } |
| - /** Gets the value of "tab-size" */ |
| - String get tabSize => |
| - getPropertyValue('tab-size'); |
| + /** Gets the value of "margin-before" */ |
| + String get marginBefore => |
| + getPropertyValue('${_browserPrefix}margin-before'); |
| - /** Sets the value of "tab-size" */ |
| - void set tabSize(String value) { |
| - setProperty('tab-size', value, ''); |
| + /** Sets the value of "margin-before" */ |
| + void set marginBefore(String value) { |
| + setProperty('${_browserPrefix}margin-before', value, ''); |
| } |
| - /** Gets the value of "table-layout" */ |
| - String get tableLayout => |
| - getPropertyValue('table-layout'); |
| + /** Gets the value of "margin-before-collapse" */ |
| + String get marginBeforeCollapse => |
| + getPropertyValue('${_browserPrefix}margin-before-collapse'); |
| - /** Sets the value of "table-layout" */ |
| - void set tableLayout(String value) { |
| - setProperty('table-layout', value, ''); |
| + /** Sets the value of "margin-before-collapse" */ |
| + void set marginBeforeCollapse(String value) { |
| + setProperty('${_browserPrefix}margin-before-collapse', value, ''); |
| } |
| - /** Gets the value of "tap-highlight-color" */ |
| - String get tapHighlightColor => |
| - getPropertyValue('${_browserPrefix}tap-highlight-color'); |
| + /** Gets the value of "margin-bottom" */ |
| + String get marginBottom => |
| + getPropertyValue('margin-bottom'); |
| - /** Sets the value of "tap-highlight-color" */ |
| - void set tapHighlightColor(String value) { |
| - setProperty('${_browserPrefix}tap-highlight-color', value, ''); |
| + /** Sets the value of "margin-bottom" */ |
| + void set marginBottom(String value) { |
| + setProperty('margin-bottom', value, ''); |
| } |
| - /** Gets the value of "text-align" */ |
| - String get textAlign => |
| - getPropertyValue('text-align'); |
| + /** Gets the value of "margin-bottom-collapse" */ |
| + String get marginBottomCollapse => |
| + getPropertyValue('${_browserPrefix}margin-bottom-collapse'); |
| - /** Sets the value of "text-align" */ |
| - void set textAlign(String value) { |
| - setProperty('text-align', value, ''); |
| + /** Sets the value of "margin-bottom-collapse" */ |
| + void set marginBottomCollapse(String value) { |
| + setProperty('${_browserPrefix}margin-bottom-collapse', value, ''); |
| } |
| - /** Gets the value of "text-align-last" */ |
| - String get textAlignLast => |
| - getPropertyValue('${_browserPrefix}text-align-last'); |
| + /** Gets the value of "margin-collapse" */ |
| + String get marginCollapse => |
| + getPropertyValue('${_browserPrefix}margin-collapse'); |
| - /** Sets the value of "text-align-last" */ |
| - void set textAlignLast(String value) { |
| - setProperty('${_browserPrefix}text-align-last', value, ''); |
| + /** Sets the value of "margin-collapse" */ |
| + void set marginCollapse(String value) { |
| + setProperty('${_browserPrefix}margin-collapse', value, ''); |
| } |
| - /** Gets the value of "text-combine" */ |
| - String get textCombine => |
| - getPropertyValue('${_browserPrefix}text-combine'); |
| + /** Gets the value of "margin-end" */ |
| + String get marginEnd => |
| + getPropertyValue('${_browserPrefix}margin-end'); |
| - /** Sets the value of "text-combine" */ |
| - void set textCombine(String value) { |
| - setProperty('${_browserPrefix}text-combine', value, ''); |
| + /** Sets the value of "margin-end" */ |
| + void set marginEnd(String value) { |
| + setProperty('${_browserPrefix}margin-end', value, ''); |
| } |
| - /** Gets the value of "text-decoration" */ |
| - String get textDecoration => |
| - getPropertyValue('text-decoration'); |
| + /** Gets the value of "margin-left" */ |
| + String get marginLeft => |
| + getPropertyValue('margin-left'); |
| - /** Sets the value of "text-decoration" */ |
| - void set textDecoration(String value) { |
| - setProperty('text-decoration', value, ''); |
| + /** Sets the value of "margin-left" */ |
| + void set marginLeft(String value) { |
| + setProperty('margin-left', value, ''); |
| } |
| - /** Gets the value of "text-decoration-line" */ |
| - String get textDecorationLine => |
| - getPropertyValue('${_browserPrefix}text-decoration-line'); |
| + /** Gets the value of "margin-right" */ |
| + String get marginRight => |
| + getPropertyValue('margin-right'); |
| - /** Sets the value of "text-decoration-line" */ |
| - void set textDecorationLine(String value) { |
| - setProperty('${_browserPrefix}text-decoration-line', value, ''); |
| + /** Sets the value of "margin-right" */ |
| + void set marginRight(String value) { |
| + setProperty('margin-right', value, ''); |
| } |
| - /** Gets the value of "text-decoration-style" */ |
| - String get textDecorationStyle => |
| - getPropertyValue('${_browserPrefix}text-decoration-style'); |
| + /** Gets the value of "margin-start" */ |
| + String get marginStart => |
| + getPropertyValue('${_browserPrefix}margin-start'); |
| - /** Sets the value of "text-decoration-style" */ |
| - void set textDecorationStyle(String value) { |
| - setProperty('${_browserPrefix}text-decoration-style', value, ''); |
| + /** Sets the value of "margin-start" */ |
| + void set marginStart(String value) { |
| + setProperty('${_browserPrefix}margin-start', value, ''); |
| } |
| - /** Gets the value of "text-decorations-in-effect" */ |
| - String get textDecorationsInEffect => |
| - getPropertyValue('${_browserPrefix}text-decorations-in-effect'); |
| + /** Gets the value of "margin-top" */ |
| + String get marginTop => |
| + getPropertyValue('margin-top'); |
| - /** Sets the value of "text-decorations-in-effect" */ |
| - void set textDecorationsInEffect(String value) { |
| - setProperty('${_browserPrefix}text-decorations-in-effect', value, ''); |
| + /** Sets the value of "margin-top" */ |
| + void set marginTop(String value) { |
| + setProperty('margin-top', value, ''); |
| } |
| - /** Gets the value of "text-emphasis" */ |
| - String get textEmphasis => |
| - getPropertyValue('${_browserPrefix}text-emphasis'); |
| + /** Gets the value of "margin-top-collapse" */ |
| + String get marginTopCollapse => |
| + getPropertyValue('${_browserPrefix}margin-top-collapse'); |
| - /** Sets the value of "text-emphasis" */ |
| - void set textEmphasis(String value) { |
| - setProperty('${_browserPrefix}text-emphasis', value, ''); |
| + /** Sets the value of "margin-top-collapse" */ |
| + void set marginTopCollapse(String value) { |
| + setProperty('${_browserPrefix}margin-top-collapse', value, ''); |
| } |
| - /** Gets the value of "text-emphasis-color" */ |
| - String get textEmphasisColor => |
| - getPropertyValue('${_browserPrefix}text-emphasis-color'); |
| + /** Gets the value of "marquee" */ |
| + String get marquee => |
| + getPropertyValue('${_browserPrefix}marquee'); |
| - /** Sets the value of "text-emphasis-color" */ |
| - void set textEmphasisColor(String value) { |
| - setProperty('${_browserPrefix}text-emphasis-color', value, ''); |
| + /** Sets the value of "marquee" */ |
| + void set marquee(String value) { |
| + setProperty('${_browserPrefix}marquee', value, ''); |
| } |
| - /** Gets the value of "text-emphasis-position" */ |
| - String get textEmphasisPosition => |
| - getPropertyValue('${_browserPrefix}text-emphasis-position'); |
| + /** Gets the value of "marquee-direction" */ |
| + String get marqueeDirection => |
| + getPropertyValue('${_browserPrefix}marquee-direction'); |
| - /** Sets the value of "text-emphasis-position" */ |
| - void set textEmphasisPosition(String value) { |
| - setProperty('${_browserPrefix}text-emphasis-position', value, ''); |
| + /** Sets the value of "marquee-direction" */ |
| + void set marqueeDirection(String value) { |
| + setProperty('${_browserPrefix}marquee-direction', value, ''); |
| } |
| - /** Gets the value of "text-emphasis-style" */ |
| - String get textEmphasisStyle => |
| - getPropertyValue('${_browserPrefix}text-emphasis-style'); |
| + /** Gets the value of "marquee-increment" */ |
| + String get marqueeIncrement => |
| + getPropertyValue('${_browserPrefix}marquee-increment'); |
| - /** Sets the value of "text-emphasis-style" */ |
| - void set textEmphasisStyle(String value) { |
| - setProperty('${_browserPrefix}text-emphasis-style', value, ''); |
| + /** Sets the value of "marquee-increment" */ |
| + void set marqueeIncrement(String value) { |
| + setProperty('${_browserPrefix}marquee-increment', value, ''); |
| } |
| - /** Gets the value of "text-fill-color" */ |
| - String get textFillColor => |
| - getPropertyValue('${_browserPrefix}text-fill-color'); |
| + /** Gets the value of "marquee-repetition" */ |
| + String get marqueeRepetition => |
| + getPropertyValue('${_browserPrefix}marquee-repetition'); |
| - /** Sets the value of "text-fill-color" */ |
| - void set textFillColor(String value) { |
| - setProperty('${_browserPrefix}text-fill-color', value, ''); |
| + /** Sets the value of "marquee-repetition" */ |
| + void set marqueeRepetition(String value) { |
| + setProperty('${_browserPrefix}marquee-repetition', value, ''); |
| } |
| - /** Gets the value of "text-indent" */ |
| - String get textIndent => |
| - getPropertyValue('text-indent'); |
| + /** Gets the value of "marquee-speed" */ |
| + String get marqueeSpeed => |
| + getPropertyValue('${_browserPrefix}marquee-speed'); |
| - /** Sets the value of "text-indent" */ |
| - void set textIndent(String value) { |
| - setProperty('text-indent', value, ''); |
| + /** Sets the value of "marquee-speed" */ |
| + void set marqueeSpeed(String value) { |
| + setProperty('${_browserPrefix}marquee-speed', value, ''); |
| } |
| - /** Gets the value of "text-line-through" */ |
| - String get textLineThrough => |
| - getPropertyValue('text-line-through'); |
| + /** Gets the value of "marquee-style" */ |
| + String get marqueeStyle => |
| + getPropertyValue('${_browserPrefix}marquee-style'); |
| - /** Sets the value of "text-line-through" */ |
| - void set textLineThrough(String value) { |
| - setProperty('text-line-through', value, ''); |
| + /** Sets the value of "marquee-style" */ |
| + void set marqueeStyle(String value) { |
| + setProperty('${_browserPrefix}marquee-style', value, ''); |
| } |
| - /** Gets the value of "text-line-through-color" */ |
| - String get textLineThroughColor => |
| - getPropertyValue('text-line-through-color'); |
| + /** Gets the value of "mask" */ |
| + String get mask => |
| + getPropertyValue('${_browserPrefix}mask'); |
| - /** Sets the value of "text-line-through-color" */ |
| - void set textLineThroughColor(String value) { |
| - setProperty('text-line-through-color', value, ''); |
| + /** Sets the value of "mask" */ |
| + void set mask(String value) { |
| + setProperty('${_browserPrefix}mask', value, ''); |
| } |
| - /** Gets the value of "text-line-through-mode" */ |
| - String get textLineThroughMode => |
| - getPropertyValue('text-line-through-mode'); |
| + /** Gets the value of "mask-attachment" */ |
| + String get maskAttachment => |
| + getPropertyValue('${_browserPrefix}mask-attachment'); |
| - /** Sets the value of "text-line-through-mode" */ |
| - void set textLineThroughMode(String value) { |
| - setProperty('text-line-through-mode', value, ''); |
| + /** Sets the value of "mask-attachment" */ |
| + void set maskAttachment(String value) { |
| + setProperty('${_browserPrefix}mask-attachment', value, ''); |
| } |
| - /** Gets the value of "text-line-through-style" */ |
| - String get textLineThroughStyle => |
| - getPropertyValue('text-line-through-style'); |
| + /** Gets the value of "mask-box-image" */ |
| + String get maskBoxImage => |
| + getPropertyValue('${_browserPrefix}mask-box-image'); |
| - /** Sets the value of "text-line-through-style" */ |
| - void set textLineThroughStyle(String value) { |
| - setProperty('text-line-through-style', value, ''); |
| + /** Sets the value of "mask-box-image" */ |
| + void set maskBoxImage(String value) { |
| + setProperty('${_browserPrefix}mask-box-image', value, ''); |
| } |
| - /** Gets the value of "text-line-through-width" */ |
| - String get textLineThroughWidth => |
| - getPropertyValue('text-line-through-width'); |
| + /** Gets the value of "mask-box-image-outset" */ |
| + String get maskBoxImageOutset => |
| + getPropertyValue('${_browserPrefix}mask-box-image-outset'); |
| - /** Sets the value of "text-line-through-width" */ |
| - void set textLineThroughWidth(String value) { |
| - setProperty('text-line-through-width', value, ''); |
| + /** Sets the value of "mask-box-image-outset" */ |
| + void set maskBoxImageOutset(String value) { |
| + setProperty('${_browserPrefix}mask-box-image-outset', value, ''); |
| } |
| - /** Gets the value of "text-orientation" */ |
| - String get textOrientation => |
| - getPropertyValue('${_browserPrefix}text-orientation'); |
| + /** Gets the value of "mask-box-image-repeat" */ |
| + String get maskBoxImageRepeat => |
| + getPropertyValue('${_browserPrefix}mask-box-image-repeat'); |
| - /** Sets the value of "text-orientation" */ |
| - void set textOrientation(String value) { |
| - setProperty('${_browserPrefix}text-orientation', value, ''); |
| + /** Sets the value of "mask-box-image-repeat" */ |
| + void set maskBoxImageRepeat(String value) { |
| + setProperty('${_browserPrefix}mask-box-image-repeat', value, ''); |
| } |
| - /** Gets the value of "text-overflow" */ |
| - String get textOverflow => |
| - getPropertyValue('text-overflow'); |
| + /** Gets the value of "mask-box-image-slice" */ |
| + String get maskBoxImageSlice => |
| + getPropertyValue('${_browserPrefix}mask-box-image-slice'); |
| - /** Sets the value of "text-overflow" */ |
| - void set textOverflow(String value) { |
| - setProperty('text-overflow', value, ''); |
| + /** Sets the value of "mask-box-image-slice" */ |
| + void set maskBoxImageSlice(String value) { |
| + setProperty('${_browserPrefix}mask-box-image-slice', value, ''); |
| } |
| - /** Gets the value of "text-overline" */ |
| - String get textOverline => |
| - getPropertyValue('text-overline'); |
| + /** Gets the value of "mask-box-image-source" */ |
| + String get maskBoxImageSource => |
| + getPropertyValue('${_browserPrefix}mask-box-image-source'); |
| - /** Sets the value of "text-overline" */ |
| - void set textOverline(String value) { |
| - setProperty('text-overline', value, ''); |
| + /** Sets the value of "mask-box-image-source" */ |
| + void set maskBoxImageSource(String value) { |
| + setProperty('${_browserPrefix}mask-box-image-source', value, ''); |
| } |
| - /** Gets the value of "text-overline-color" */ |
| - String get textOverlineColor => |
| - getPropertyValue('text-overline-color'); |
| + /** Gets the value of "mask-box-image-width" */ |
| + String get maskBoxImageWidth => |
| + getPropertyValue('${_browserPrefix}mask-box-image-width'); |
| - /** Sets the value of "text-overline-color" */ |
| - void set textOverlineColor(String value) { |
| - setProperty('text-overline-color', value, ''); |
| + /** Sets the value of "mask-box-image-width" */ |
| + void set maskBoxImageWidth(String value) { |
| + setProperty('${_browserPrefix}mask-box-image-width', value, ''); |
| } |
| - /** Gets the value of "text-overline-mode" */ |
| - String get textOverlineMode => |
| - getPropertyValue('text-overline-mode'); |
| + /** Gets the value of "mask-clip" */ |
| + String get maskClip => |
| + getPropertyValue('${_browserPrefix}mask-clip'); |
| - /** Sets the value of "text-overline-mode" */ |
| - void set textOverlineMode(String value) { |
| - setProperty('text-overline-mode', value, ''); |
| + /** Sets the value of "mask-clip" */ |
| + void set maskClip(String value) { |
| + setProperty('${_browserPrefix}mask-clip', value, ''); |
| } |
| - /** Gets the value of "text-overline-style" */ |
| - String get textOverlineStyle => |
| - getPropertyValue('text-overline-style'); |
| + /** Gets the value of "mask-composite" */ |
| + String get maskComposite => |
| + getPropertyValue('${_browserPrefix}mask-composite'); |
| - /** Sets the value of "text-overline-style" */ |
| - void set textOverlineStyle(String value) { |
| - setProperty('text-overline-style', value, ''); |
| + /** Sets the value of "mask-composite" */ |
| + void set maskComposite(String value) { |
| + setProperty('${_browserPrefix}mask-composite', value, ''); |
| } |
| - /** Gets the value of "text-overline-width" */ |
| - String get textOverlineWidth => |
| - getPropertyValue('text-overline-width'); |
| + /** Gets the value of "mask-image" */ |
| + String get maskImage => |
| + getPropertyValue('${_browserPrefix}mask-image'); |
| - /** Sets the value of "text-overline-width" */ |
| - void set textOverlineWidth(String value) { |
| - setProperty('text-overline-width', value, ''); |
| + /** Sets the value of "mask-image" */ |
| + void set maskImage(String value) { |
| + setProperty('${_browserPrefix}mask-image', value, ''); |
| } |
| - /** Gets the value of "text-rendering" */ |
| - String get textRendering => |
| - getPropertyValue('text-rendering'); |
| + /** Gets the value of "mask-origin" */ |
| + String get maskOrigin => |
| + getPropertyValue('${_browserPrefix}mask-origin'); |
| - /** Sets the value of "text-rendering" */ |
| - void set textRendering(String value) { |
| - setProperty('text-rendering', value, ''); |
| + /** Sets the value of "mask-origin" */ |
| + void set maskOrigin(String value) { |
| + setProperty('${_browserPrefix}mask-origin', value, ''); |
| } |
| - /** Gets the value of "text-security" */ |
| - String get textSecurity => |
| - getPropertyValue('${_browserPrefix}text-security'); |
| + /** Gets the value of "mask-position" */ |
| + String get maskPosition => |
| + getPropertyValue('${_browserPrefix}mask-position'); |
| - /** Sets the value of "text-security" */ |
| - void set textSecurity(String value) { |
| - setProperty('${_browserPrefix}text-security', value, ''); |
| + /** Sets the value of "mask-position" */ |
| + void set maskPosition(String value) { |
| + setProperty('${_browserPrefix}mask-position', value, ''); |
| } |
| - /** Gets the value of "text-shadow" */ |
| - String get textShadow => |
| - getPropertyValue('text-shadow'); |
| + /** Gets the value of "mask-position-x" */ |
| + String get maskPositionX => |
| + getPropertyValue('${_browserPrefix}mask-position-x'); |
| - /** Sets the value of "text-shadow" */ |
| - void set textShadow(String value) { |
| - setProperty('text-shadow', value, ''); |
| + /** Sets the value of "mask-position-x" */ |
| + void set maskPositionX(String value) { |
| + setProperty('${_browserPrefix}mask-position-x', value, ''); |
| } |
| - /** Gets the value of "text-size-adjust" */ |
| - String get textSizeAdjust => |
| - getPropertyValue('${_browserPrefix}text-size-adjust'); |
| + /** Gets the value of "mask-position-y" */ |
| + String get maskPositionY => |
| + getPropertyValue('${_browserPrefix}mask-position-y'); |
| - /** Sets the value of "text-size-adjust" */ |
| - void set textSizeAdjust(String value) { |
| - setProperty('${_browserPrefix}text-size-adjust', value, ''); |
| + /** Sets the value of "mask-position-y" */ |
| + void set maskPositionY(String value) { |
| + setProperty('${_browserPrefix}mask-position-y', value, ''); |
| } |
| - /** Gets the value of "text-stroke" */ |
| - String get textStroke => |
| - getPropertyValue('${_browserPrefix}text-stroke'); |
| + /** Gets the value of "mask-repeat" */ |
| + String get maskRepeat => |
| + getPropertyValue('${_browserPrefix}mask-repeat'); |
| - /** Sets the value of "text-stroke" */ |
| - void set textStroke(String value) { |
| - setProperty('${_browserPrefix}text-stroke', value, ''); |
| + /** Sets the value of "mask-repeat" */ |
| + void set maskRepeat(String value) { |
| + setProperty('${_browserPrefix}mask-repeat', value, ''); |
| } |
| - /** Gets the value of "text-stroke-color" */ |
| - String get textStrokeColor => |
| - getPropertyValue('${_browserPrefix}text-stroke-color'); |
| + /** Gets the value of "mask-repeat-x" */ |
| + String get maskRepeatX => |
| + getPropertyValue('${_browserPrefix}mask-repeat-x'); |
| - /** Sets the value of "text-stroke-color" */ |
| - void set textStrokeColor(String value) { |
| - setProperty('${_browserPrefix}text-stroke-color', value, ''); |
| + /** Sets the value of "mask-repeat-x" */ |
| + void set maskRepeatX(String value) { |
| + setProperty('${_browserPrefix}mask-repeat-x', value, ''); |
| } |
| - /** Gets the value of "text-stroke-width" */ |
| - String get textStrokeWidth => |
| - getPropertyValue('${_browserPrefix}text-stroke-width'); |
| + /** Gets the value of "mask-repeat-y" */ |
| + String get maskRepeatY => |
| + getPropertyValue('${_browserPrefix}mask-repeat-y'); |
| - /** Sets the value of "text-stroke-width" */ |
| - void set textStrokeWidth(String value) { |
| - setProperty('${_browserPrefix}text-stroke-width', value, ''); |
| + /** Sets the value of "mask-repeat-y" */ |
| + void set maskRepeatY(String value) { |
| + setProperty('${_browserPrefix}mask-repeat-y', value, ''); |
| } |
| - /** Gets the value of "text-transform" */ |
| - String get textTransform => |
| - getPropertyValue('text-transform'); |
| + /** Gets the value of "mask-size" */ |
| + String get maskSize => |
| + getPropertyValue('${_browserPrefix}mask-size'); |
| - /** Sets the value of "text-transform" */ |
| - void set textTransform(String value) { |
| - setProperty('text-transform', value, ''); |
| + /** Sets the value of "mask-size" */ |
| + void set maskSize(String value) { |
| + setProperty('${_browserPrefix}mask-size', value, ''); |
| } |
| - /** Gets the value of "text-underline" */ |
| - String get textUnderline => |
| - getPropertyValue('text-underline'); |
| + /** Gets the value of "max-height" */ |
| + String get maxHeight => |
| + getPropertyValue('max-height'); |
| - /** Sets the value of "text-underline" */ |
| - void set textUnderline(String value) { |
| - setProperty('text-underline', value, ''); |
| + /** Sets the value of "max-height" */ |
| + void set maxHeight(String value) { |
| + setProperty('max-height', value, ''); |
| } |
| - /** Gets the value of "text-underline-color" */ |
| - String get textUnderlineColor => |
| - getPropertyValue('text-underline-color'); |
| + /** Gets the value of "max-logical-height" */ |
| + String get maxLogicalHeight => |
| + getPropertyValue('${_browserPrefix}max-logical-height'); |
| - /** Sets the value of "text-underline-color" */ |
| - void set textUnderlineColor(String value) { |
| - setProperty('text-underline-color', value, ''); |
| + /** Sets the value of "max-logical-height" */ |
| + void set maxLogicalHeight(String value) { |
| + setProperty('${_browserPrefix}max-logical-height', value, ''); |
| } |
| - /** Gets the value of "text-underline-mode" */ |
| - String get textUnderlineMode => |
| - getPropertyValue('text-underline-mode'); |
| + /** Gets the value of "max-logical-width" */ |
| + String get maxLogicalWidth => |
| + getPropertyValue('${_browserPrefix}max-logical-width'); |
| - /** Sets the value of "text-underline-mode" */ |
| - void set textUnderlineMode(String value) { |
| - setProperty('text-underline-mode', value, ''); |
| + /** Sets the value of "max-logical-width" */ |
| + void set maxLogicalWidth(String value) { |
| + setProperty('${_browserPrefix}max-logical-width', value, ''); |
| } |
| - /** Gets the value of "text-underline-style" */ |
| - String get textUnderlineStyle => |
| - getPropertyValue('text-underline-style'); |
| + /** Gets the value of "max-width" */ |
| + String get maxWidth => |
| + getPropertyValue('max-width'); |
| - /** Sets the value of "text-underline-style" */ |
| - void set textUnderlineStyle(String value) { |
| - setProperty('text-underline-style', value, ''); |
| + /** Sets the value of "max-width" */ |
| + void set maxWidth(String value) { |
| + setProperty('max-width', value, ''); |
| } |
| - /** Gets the value of "text-underline-width" */ |
| - String get textUnderlineWidth => |
| - getPropertyValue('text-underline-width'); |
| + /** Gets the value of "max-zoom" */ |
| + String get maxZoom => |
| + getPropertyValue('max-zoom'); |
| - /** Sets the value of "text-underline-width" */ |
| - void set textUnderlineWidth(String value) { |
| - setProperty('text-underline-width', value, ''); |
| + /** Sets the value of "max-zoom" */ |
| + void set maxZoom(String value) { |
| + setProperty('max-zoom', value, ''); |
| } |
| - /** Gets the value of "top" */ |
| - String get top => |
| - getPropertyValue('top'); |
| + /** Gets the value of "min-height" */ |
| + String get minHeight => |
| + getPropertyValue('min-height'); |
| - /** Sets the value of "top" */ |
| - void set top(String value) { |
| - setProperty('top', value, ''); |
| - } |
| + /** Sets the value of "min-height" */ |
| + void set minHeight(String value) { |
| + setProperty('min-height', value, ''); |
| + } |
| - /** Gets the value of "transform" */ |
| - String get transform => |
| - getPropertyValue('${_browserPrefix}transform'); |
| + /** Gets the value of "min-logical-height" */ |
| + String get minLogicalHeight => |
| + getPropertyValue('${_browserPrefix}min-logical-height'); |
| - /** Sets the value of "transform" */ |
| - void set transform(String value) { |
| - setProperty('${_browserPrefix}transform', value, ''); |
| + /** Sets the value of "min-logical-height" */ |
| + void set minLogicalHeight(String value) { |
| + setProperty('${_browserPrefix}min-logical-height', value, ''); |
| } |
| - /** Gets the value of "transform-origin" */ |
| - String get transformOrigin => |
| - getPropertyValue('${_browserPrefix}transform-origin'); |
| + /** Gets the value of "min-logical-width" */ |
| + String get minLogicalWidth => |
| + getPropertyValue('${_browserPrefix}min-logical-width'); |
| - /** Sets the value of "transform-origin" */ |
| - void set transformOrigin(String value) { |
| - setProperty('${_browserPrefix}transform-origin', value, ''); |
| + /** Sets the value of "min-logical-width" */ |
| + void set minLogicalWidth(String value) { |
| + setProperty('${_browserPrefix}min-logical-width', value, ''); |
| } |
| - /** Gets the value of "transform-origin-x" */ |
| - String get transformOriginX => |
| - getPropertyValue('${_browserPrefix}transform-origin-x'); |
| + /** Gets the value of "min-width" */ |
| + String get minWidth => |
| + getPropertyValue('min-width'); |
| - /** Sets the value of "transform-origin-x" */ |
| - void set transformOriginX(String value) { |
| - setProperty('${_browserPrefix}transform-origin-x', value, ''); |
| + /** Sets the value of "min-width" */ |
| + void set minWidth(String value) { |
| + setProperty('min-width', value, ''); |
| } |
| - /** Gets the value of "transform-origin-y" */ |
| - String get transformOriginY => |
| - getPropertyValue('${_browserPrefix}transform-origin-y'); |
| + /** Gets the value of "min-zoom" */ |
| + String get minZoom => |
| + getPropertyValue('min-zoom'); |
| - /** Sets the value of "transform-origin-y" */ |
| - void set transformOriginY(String value) { |
| - setProperty('${_browserPrefix}transform-origin-y', value, ''); |
| + /** Sets the value of "min-zoom" */ |
| + void set minZoom(String value) { |
| + setProperty('min-zoom', value, ''); |
| } |
| - /** Gets the value of "transform-origin-z" */ |
| - String get transformOriginZ => |
| - getPropertyValue('${_browserPrefix}transform-origin-z'); |
| + /** Gets the value of "nbsp-mode" */ |
| + String get nbspMode => |
| + getPropertyValue('${_browserPrefix}nbsp-mode'); |
| - /** Sets the value of "transform-origin-z" */ |
| - void set transformOriginZ(String value) { |
| - setProperty('${_browserPrefix}transform-origin-z', value, ''); |
| + /** Sets the value of "nbsp-mode" */ |
| + void set nbspMode(String value) { |
| + setProperty('${_browserPrefix}nbsp-mode', value, ''); |
| } |
| - /** Gets the value of "transform-style" */ |
| - String get transformStyle => |
| - getPropertyValue('${_browserPrefix}transform-style'); |
| + /** Gets the value of "opacity" */ |
| + String get opacity => |
| + getPropertyValue('opacity'); |
| - /** Sets the value of "transform-style" */ |
| - void set transformStyle(String value) { |
| - setProperty('${_browserPrefix}transform-style', value, ''); |
| + /** Sets the value of "opacity" */ |
| + void set opacity(String value) { |
| + setProperty('opacity', value, ''); |
| } |
| - /** Gets the value of "transition" */ |
| - String get transition => |
| - getPropertyValue('${_browserPrefix}transition'); |
| + /** Gets the value of "order" */ |
| + String get order => |
| + getPropertyValue('${_browserPrefix}order'); |
| - /** Sets the value of "transition" */ |
| - void set transition(String value) { |
| - setProperty('${_browserPrefix}transition', value, ''); |
| + /** Sets the value of "order" */ |
| + void set order(String value) { |
| + setProperty('${_browserPrefix}order', value, ''); |
| } |
| - /** Gets the value of "transition-delay" */ |
| - String get transitionDelay => |
| - getPropertyValue('${_browserPrefix}transition-delay'); |
| + /** Gets the value of "orientation" */ |
| + String get orientation => |
| + getPropertyValue('orientation'); |
| - /** Sets the value of "transition-delay" */ |
| - void set transitionDelay(String value) { |
| - setProperty('${_browserPrefix}transition-delay', value, ''); |
| + /** Sets the value of "orientation" */ |
| + void set orientation(String value) { |
| + setProperty('orientation', value, ''); |
| } |
| - /** Gets the value of "transition-duration" */ |
| - String get transitionDuration => |
| - getPropertyValue('${_browserPrefix}transition-duration'); |
| + /** Gets the value of "orphans" */ |
| + String get orphans => |
| + getPropertyValue('orphans'); |
| - /** Sets the value of "transition-duration" */ |
| - void set transitionDuration(String value) { |
| - setProperty('${_browserPrefix}transition-duration', value, ''); |
| + /** Sets the value of "orphans" */ |
| + void set orphans(String value) { |
| + setProperty('orphans', value, ''); |
| } |
| - /** Gets the value of "transition-property" */ |
| - String get transitionProperty => |
| - getPropertyValue('${_browserPrefix}transition-property'); |
| + /** Gets the value of "outline" */ |
| + String get outline => |
| + getPropertyValue('outline'); |
| - /** Sets the value of "transition-property" */ |
| - void set transitionProperty(String value) { |
| - setProperty('${_browserPrefix}transition-property', value, ''); |
| + /** Sets the value of "outline" */ |
| + void set outline(String value) { |
| + setProperty('outline', value, ''); |
| } |
| - /** Gets the value of "transition-timing-function" */ |
| - String get transitionTimingFunction => |
| - getPropertyValue('${_browserPrefix}transition-timing-function'); |
| + /** Gets the value of "outline-color" */ |
| + String get outlineColor => |
| + getPropertyValue('outline-color'); |
| - /** Sets the value of "transition-timing-function" */ |
| - void set transitionTimingFunction(String value) { |
| - setProperty('${_browserPrefix}transition-timing-function', value, ''); |
| + /** Sets the value of "outline-color" */ |
| + void set outlineColor(String value) { |
| + setProperty('outline-color', value, ''); |
| } |
| - /** Gets the value of "unicode-bidi" */ |
| - String get unicodeBidi => |
| - getPropertyValue('unicode-bidi'); |
| + /** Gets the value of "outline-offset" */ |
| + String get outlineOffset => |
| + getPropertyValue('outline-offset'); |
| - /** Sets the value of "unicode-bidi" */ |
| - void set unicodeBidi(String value) { |
| - setProperty('unicode-bidi', value, ''); |
| + /** Sets the value of "outline-offset" */ |
| + void set outlineOffset(String value) { |
| + setProperty('outline-offset', value, ''); |
| } |
| - /** Gets the value of "unicode-range" */ |
| - String get unicodeRange => |
| - getPropertyValue('unicode-range'); |
| + /** Gets the value of "outline-style" */ |
| + String get outlineStyle => |
| + getPropertyValue('outline-style'); |
| - /** Sets the value of "unicode-range" */ |
| - void set unicodeRange(String value) { |
| - setProperty('unicode-range', value, ''); |
| + /** Sets the value of "outline-style" */ |
| + void set outlineStyle(String value) { |
| + setProperty('outline-style', value, ''); |
| } |
| - /** Gets the value of "user-drag" */ |
| - String get userDrag => |
| - getPropertyValue('${_browserPrefix}user-drag'); |
| + /** Gets the value of "outline-width" */ |
| + String get outlineWidth => |
| + getPropertyValue('outline-width'); |
| - /** Sets the value of "user-drag" */ |
| - void set userDrag(String value) { |
| - setProperty('${_browserPrefix}user-drag', value, ''); |
| + /** Sets the value of "outline-width" */ |
| + void set outlineWidth(String value) { |
| + setProperty('outline-width', value, ''); |
| } |
| - /** Gets the value of "user-modify" */ |
| - String get userModify => |
| - getPropertyValue('${_browserPrefix}user-modify'); |
| + /** Gets the value of "overflow" */ |
| + String get overflow => |
| + getPropertyValue('overflow'); |
| - /** Sets the value of "user-modify" */ |
| - void set userModify(String value) { |
| - setProperty('${_browserPrefix}user-modify', value, ''); |
| + /** Sets the value of "overflow" */ |
| + void set overflow(String value) { |
| + setProperty('overflow', value, ''); |
| } |
| - /** Gets the value of "user-select" */ |
| - String get userSelect => |
| - getPropertyValue('${_browserPrefix}user-select'); |
| + /** Gets the value of "overflow-scrolling" */ |
| + String get overflowScrolling => |
| + getPropertyValue('${_browserPrefix}overflow-scrolling'); |
| - /** Sets the value of "user-select" */ |
| - void set userSelect(String value) { |
| - setProperty('${_browserPrefix}user-select', value, ''); |
| + /** Sets the value of "overflow-scrolling" */ |
| + void set overflowScrolling(String value) { |
| + setProperty('${_browserPrefix}overflow-scrolling', value, ''); |
| } |
| - /** Gets the value of "user-zoom" */ |
| - String get userZoom => |
| - getPropertyValue('user-zoom'); |
| + /** Gets the value of "overflow-wrap" */ |
| + String get overflowWrap => |
| + getPropertyValue('overflow-wrap'); |
| - /** Sets the value of "user-zoom" */ |
| - void set userZoom(String value) { |
| - setProperty('user-zoom', value, ''); |
| + /** Sets the value of "overflow-wrap" */ |
| + void set overflowWrap(String value) { |
| + setProperty('overflow-wrap', value, ''); |
| } |
| - /** Gets the value of "vertical-align" */ |
| - String get verticalAlign => |
| - getPropertyValue('vertical-align'); |
| + /** Gets the value of "overflow-x" */ |
| + String get overflowX => |
| + getPropertyValue('overflow-x'); |
| - /** Sets the value of "vertical-align" */ |
| - void set verticalAlign(String value) { |
| - setProperty('vertical-align', value, ''); |
| + /** Sets the value of "overflow-x" */ |
| + void set overflowX(String value) { |
| + setProperty('overflow-x', value, ''); |
| } |
| - /** Gets the value of "visibility" */ |
| - String get visibility => |
| - getPropertyValue('visibility'); |
| + /** Gets the value of "overflow-y" */ |
| + String get overflowY => |
| + getPropertyValue('overflow-y'); |
| - /** Sets the value of "visibility" */ |
| - void set visibility(String value) { |
| - setProperty('visibility', value, ''); |
| + /** Sets the value of "overflow-y" */ |
| + void set overflowY(String value) { |
| + setProperty('overflow-y', value, ''); |
| } |
| - /** Gets the value of "white-space" */ |
| - String get whiteSpace => |
| - getPropertyValue('white-space'); |
| + /** Gets the value of "padding" */ |
| + String get padding => |
| + getPropertyValue('padding'); |
| - /** Sets the value of "white-space" */ |
| - void set whiteSpace(String value) { |
| - setProperty('white-space', value, ''); |
| + /** Sets the value of "padding" */ |
| + void set padding(String value) { |
| + setProperty('padding', value, ''); |
| } |
| - /** Gets the value of "widows" */ |
| - String get widows => |
| - getPropertyValue('widows'); |
| + /** Gets the value of "padding-after" */ |
| + String get paddingAfter => |
| + getPropertyValue('${_browserPrefix}padding-after'); |
| - /** Sets the value of "widows" */ |
| - void set widows(String value) { |
| - setProperty('widows', value, ''); |
| + /** Sets the value of "padding-after" */ |
| + void set paddingAfter(String value) { |
| + setProperty('${_browserPrefix}padding-after', value, ''); |
| } |
| - /** Gets the value of "width" */ |
| - String get width => |
| - getPropertyValue('width'); |
| + /** Gets the value of "padding-before" */ |
| + String get paddingBefore => |
| + getPropertyValue('${_browserPrefix}padding-before'); |
| - /** Sets the value of "width" */ |
| - void set width(String value) { |
| - setProperty('width', value, ''); |
| + /** Sets the value of "padding-before" */ |
| + void set paddingBefore(String value) { |
| + setProperty('${_browserPrefix}padding-before', value, ''); |
| } |
| - /** Gets the value of "word-break" */ |
| - String get wordBreak => |
| - getPropertyValue('word-break'); |
| + /** Gets the value of "padding-bottom" */ |
| + String get paddingBottom => |
| + getPropertyValue('padding-bottom'); |
| - /** Sets the value of "word-break" */ |
| - void set wordBreak(String value) { |
| - setProperty('word-break', value, ''); |
| + /** Sets the value of "padding-bottom" */ |
| + void set paddingBottom(String value) { |
| + setProperty('padding-bottom', value, ''); |
| } |
| - /** Gets the value of "word-spacing" */ |
| - String get wordSpacing => |
| - getPropertyValue('word-spacing'); |
| + /** Gets the value of "padding-end" */ |
| + String get paddingEnd => |
| + getPropertyValue('${_browserPrefix}padding-end'); |
| - /** Sets the value of "word-spacing" */ |
| - void set wordSpacing(String value) { |
| - setProperty('word-spacing', value, ''); |
| + /** Sets the value of "padding-end" */ |
| + void set paddingEnd(String value) { |
| + setProperty('${_browserPrefix}padding-end', value, ''); |
| } |
| - /** Gets the value of "word-wrap" */ |
| - String get wordWrap => |
| - getPropertyValue('word-wrap'); |
| + /** Gets the value of "padding-left" */ |
| + String get paddingLeft => |
| + getPropertyValue('padding-left'); |
| - /** Sets the value of "word-wrap" */ |
| - void set wordWrap(String value) { |
| - setProperty('word-wrap', value, ''); |
| + /** Sets the value of "padding-left" */ |
| + void set paddingLeft(String value) { |
| + setProperty('padding-left', value, ''); |
| } |
| - /** Gets the value of "wrap" */ |
| - String get wrap => |
| - getPropertyValue('${_browserPrefix}wrap'); |
| + /** Gets the value of "padding-right" */ |
| + String get paddingRight => |
| + getPropertyValue('padding-right'); |
| - /** Sets the value of "wrap" */ |
| - void set wrap(String value) { |
| - setProperty('${_browserPrefix}wrap', value, ''); |
| + /** Sets the value of "padding-right" */ |
| + void set paddingRight(String value) { |
| + setProperty('padding-right', value, ''); |
| } |
| - /** Gets the value of "wrap-flow" */ |
| - String get wrapFlow => |
| - getPropertyValue('${_browserPrefix}wrap-flow'); |
| + /** Gets the value of "padding-start" */ |
| + String get paddingStart => |
| + getPropertyValue('${_browserPrefix}padding-start'); |
| - /** Sets the value of "wrap-flow" */ |
| - void set wrapFlow(String value) { |
| - setProperty('${_browserPrefix}wrap-flow', value, ''); |
| + /** Sets the value of "padding-start" */ |
| + void set paddingStart(String value) { |
| + setProperty('${_browserPrefix}padding-start', value, ''); |
| } |
| - /** Gets the value of "wrap-through" */ |
| - String get wrapThrough => |
| - getPropertyValue('${_browserPrefix}wrap-through'); |
| + /** Gets the value of "padding-top" */ |
| + String get paddingTop => |
| + getPropertyValue('padding-top'); |
| - /** Sets the value of "wrap-through" */ |
| - void set wrapThrough(String value) { |
| - setProperty('${_browserPrefix}wrap-through', value, ''); |
| + /** Sets the value of "padding-top" */ |
| + void set paddingTop(String value) { |
| + setProperty('padding-top', value, ''); |
| } |
| - /** Gets the value of "writing-mode" */ |
| - String get writingMode => |
| - getPropertyValue('${_browserPrefix}writing-mode'); |
| + /** Gets the value of "page" */ |
| + String get page => |
| + getPropertyValue('page'); |
| - /** Sets the value of "writing-mode" */ |
| - void set writingMode(String value) { |
| - setProperty('${_browserPrefix}writing-mode', value, ''); |
| + /** Sets the value of "page" */ |
| + void set page(String value) { |
| + setProperty('page', value, ''); |
| } |
| - /** Gets the value of "z-index" */ |
| - String get zIndex => |
| - getPropertyValue('z-index'); |
| + /** Gets the value of "page-break-after" */ |
| + String get pageBreakAfter => |
| + getPropertyValue('page-break-after'); |
| - /** Sets the value of "z-index" */ |
| - void set zIndex(String value) { |
| - setProperty('z-index', value, ''); |
| + /** Sets the value of "page-break-after" */ |
| + void set pageBreakAfter(String value) { |
| + setProperty('page-break-after', value, ''); |
| } |
| - /** Gets the value of "zoom" */ |
| - String get zoom => |
| - getPropertyValue('zoom'); |
| + /** Gets the value of "page-break-before" */ |
| + String get pageBreakBefore => |
| + getPropertyValue('page-break-before'); |
| - /** Sets the value of "zoom" */ |
| - void set zoom(String value) { |
| - setProperty('zoom', value, ''); |
| + /** Sets the value of "page-break-before" */ |
| + void set pageBreakBefore(String value) { |
| + setProperty('page-break-before', value, ''); |
| } |
| -} |
| -// 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. |
| + /** Gets the value of "page-break-inside" */ |
| + String get pageBreakInside => |
| + getPropertyValue('page-break-inside'); |
| -/// @domName CSSStyleRule; @docsEditable true |
| -class CSSStyleRule extends CSSRule native "*CSSStyleRule" { |
| + /** Sets the value of "page-break-inside" */ |
| + void set pageBreakInside(String value) { |
| + setProperty('page-break-inside', value, ''); |
| + } |
| - /// @domName CSSStyleRule.selectorText; @docsEditable true |
| - String selectorText; |
| + /** Gets the value of "perspective" */ |
| + String get perspective => |
| + getPropertyValue('${_browserPrefix}perspective'); |
| - /// @domName CSSStyleRule.style; @docsEditable true |
| - final CSSStyleDeclaration style; |
| -} |
| -// 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. |
| + /** Sets the value of "perspective" */ |
| + void set perspective(String value) { |
| + setProperty('${_browserPrefix}perspective', value, ''); |
| + } |
| + /** Gets the value of "perspective-origin" */ |
| + String get perspectiveOrigin => |
| + getPropertyValue('${_browserPrefix}perspective-origin'); |
| -/// @domName CSSStyleSheet; @docsEditable true |
| -class CSSStyleSheet extends StyleSheet native "*CSSStyleSheet" { |
| + /** Sets the value of "perspective-origin" */ |
| + void set perspectiveOrigin(String value) { |
| + setProperty('${_browserPrefix}perspective-origin', value, ''); |
| + } |
| - /// @domName CSSStyleSheet.cssRules; @docsEditable true |
| - @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
| - final List<CSSRule> cssRules; |
| + /** Gets the value of "perspective-origin-x" */ |
| + String get perspectiveOriginX => |
| + getPropertyValue('${_browserPrefix}perspective-origin-x'); |
| - /// @domName CSSStyleSheet.ownerRule; @docsEditable true |
| - final CSSRule ownerRule; |
| + /** Sets the value of "perspective-origin-x" */ |
| + void set perspectiveOriginX(String value) { |
| + setProperty('${_browserPrefix}perspective-origin-x', value, ''); |
| + } |
| - /// @domName CSSStyleSheet.rules; @docsEditable true |
| - @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
| - final List<CSSRule> rules; |
| + /** Gets the value of "perspective-origin-y" */ |
| + String get perspectiveOriginY => |
| + getPropertyValue('${_browserPrefix}perspective-origin-y'); |
| - /// @domName CSSStyleSheet.addRule; @docsEditable true |
| - int addRule(String selector, String style, [int index]) native; |
| + /** Sets the value of "perspective-origin-y" */ |
| + void set perspectiveOriginY(String value) { |
| + setProperty('${_browserPrefix}perspective-origin-y', value, ''); |
| + } |
| - /// @domName CSSStyleSheet.deleteRule; @docsEditable true |
| - void deleteRule(int index) native; |
| + /** Gets the value of "pointer-events" */ |
| + String get pointerEvents => |
| + getPropertyValue('pointer-events'); |
| - /// @domName CSSStyleSheet.insertRule; @docsEditable true |
| - int insertRule(String rule, int index) native; |
| + /** Sets the value of "pointer-events" */ |
| + void set pointerEvents(String value) { |
| + setProperty('pointer-events', value, ''); |
| + } |
| - /// @domName CSSStyleSheet.removeRule; @docsEditable true |
| - void removeRule(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. |
| + /** Gets the value of "position" */ |
| + String get position => |
| + getPropertyValue('position'); |
| + /** Sets the value of "position" */ |
| + void set position(String value) { |
| + setProperty('position', value, ''); |
| + } |
| -/// @domName WebKitCSSTransformValue; @docsEditable true |
| -class CSSTransformValue extends _CSSValueList native "*WebKitCSSTransformValue" { |
| + /** Gets the value of "print-color-adjust" */ |
| + String get printColorAdjust => |
| + getPropertyValue('${_browserPrefix}print-color-adjust'); |
| - static const int CSS_MATRIX = 11; |
| + /** Sets the value of "print-color-adjust" */ |
| + void set printColorAdjust(String value) { |
| + setProperty('${_browserPrefix}print-color-adjust', value, ''); |
| + } |
| - static const int CSS_MATRIX3D = 21; |
| + /** Gets the value of "quotes" */ |
| + String get quotes => |
| + getPropertyValue('quotes'); |
| - static const int CSS_PERSPECTIVE = 20; |
| + /** Sets the value of "quotes" */ |
| + void set quotes(String value) { |
| + setProperty('quotes', value, ''); |
| + } |
| - static const int CSS_ROTATE = 4; |
| + /** Gets the value of "region-break-after" */ |
| + String get regionBreakAfter => |
| + getPropertyValue('${_browserPrefix}region-break-after'); |
| - static const int CSS_ROTATE3D = 17; |
| + /** Sets the value of "region-break-after" */ |
| + void set regionBreakAfter(String value) { |
| + setProperty('${_browserPrefix}region-break-after', value, ''); |
| + } |
| - static const int CSS_ROTATEX = 14; |
| + /** Gets the value of "region-break-before" */ |
| + String get regionBreakBefore => |
| + getPropertyValue('${_browserPrefix}region-break-before'); |
| - static const int CSS_ROTATEY = 15; |
| + /** Sets the value of "region-break-before" */ |
| + void set regionBreakBefore(String value) { |
| + setProperty('${_browserPrefix}region-break-before', value, ''); |
| + } |
| - static const int CSS_ROTATEZ = 16; |
| + /** Gets the value of "region-break-inside" */ |
| + String get regionBreakInside => |
| + getPropertyValue('${_browserPrefix}region-break-inside'); |
| - static const int CSS_SCALE = 5; |
| + /** Sets the value of "region-break-inside" */ |
| + void set regionBreakInside(String value) { |
| + setProperty('${_browserPrefix}region-break-inside', value, ''); |
| + } |
| - static const int CSS_SCALE3D = 19; |
| + /** Gets the value of "region-overflow" */ |
| + String get regionOverflow => |
| + getPropertyValue('${_browserPrefix}region-overflow'); |
| - static const int CSS_SCALEX = 6; |
| + /** Sets the value of "region-overflow" */ |
| + void set regionOverflow(String value) { |
| + setProperty('${_browserPrefix}region-overflow', value, ''); |
| + } |
| - static const int CSS_SCALEY = 7; |
| + /** Gets the value of "resize" */ |
| + String get resize => |
| + getPropertyValue('resize'); |
| - static const int CSS_SCALEZ = 18; |
| + /** Sets the value of "resize" */ |
| + void set resize(String value) { |
| + setProperty('resize', value, ''); |
| + } |
| - static const int CSS_SKEW = 8; |
| + /** Gets the value of "right" */ |
| + String get right => |
| + getPropertyValue('right'); |
| - static const int CSS_SKEWX = 9; |
| + /** Sets the value of "right" */ |
| + void set right(String value) { |
| + setProperty('right', value, ''); |
| + } |
| - static const int CSS_SKEWY = 10; |
| + /** Gets the value of "rtl-ordering" */ |
| + String get rtlOrdering => |
| + getPropertyValue('${_browserPrefix}rtl-ordering'); |
| - static const int CSS_TRANSLATE = 1; |
| + /** Sets the value of "rtl-ordering" */ |
| + void set rtlOrdering(String value) { |
| + setProperty('${_browserPrefix}rtl-ordering', value, ''); |
| + } |
| - static const int CSS_TRANSLATE3D = 13; |
| + /** Gets the value of "shape-inside" */ |
| + String get shapeInside => |
| + getPropertyValue('${_browserPrefix}shape-inside'); |
| - static const int CSS_TRANSLATEX = 2; |
| + /** Sets the value of "shape-inside" */ |
| + void set shapeInside(String value) { |
| + setProperty('${_browserPrefix}shape-inside', value, ''); |
| + } |
| - static const int CSS_TRANSLATEY = 3; |
| + /** Gets the value of "shape-margin" */ |
| + String get shapeMargin => |
| + getPropertyValue('${_browserPrefix}shape-margin'); |
| - static const int CSS_TRANSLATEZ = 12; |
| + /** Sets the value of "shape-margin" */ |
| + void set shapeMargin(String value) { |
| + setProperty('${_browserPrefix}shape-margin', value, ''); |
| + } |
| - /// @domName WebKitCSSTransformValue.operationType; @docsEditable true |
| - final int operationType; |
| -} |
| -// 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. |
| + /** Gets the value of "shape-outside" */ |
| + String get shapeOutside => |
| + getPropertyValue('${_browserPrefix}shape-outside'); |
| + /** Sets the value of "shape-outside" */ |
| + void set shapeOutside(String value) { |
| + setProperty('${_browserPrefix}shape-outside', value, ''); |
| + } |
| -/// @domName CSSUnknownRule; @docsEditable true |
| -class CSSUnknownRule extends CSSRule native "*CSSUnknownRule" { |
| -} |
| -// 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. |
| + /** Gets the value of "shape-padding" */ |
| + String get shapePadding => |
| + getPropertyValue('${_browserPrefix}shape-padding'); |
| + /** Sets the value of "shape-padding" */ |
| + void set shapePadding(String value) { |
| + setProperty('${_browserPrefix}shape-padding', value, ''); |
| + } |
| -/// @domName CSSValue; @docsEditable true |
| -class CSSValue native "*CSSValue" { |
| + /** Gets the value of "size" */ |
| + String get size => |
| + getPropertyValue('size'); |
| - static const int CSS_CUSTOM = 3; |
| + /** Sets the value of "size" */ |
| + void set size(String value) { |
| + setProperty('size', value, ''); |
| + } |
| - static const int CSS_INHERIT = 0; |
| + /** Gets the value of "speak" */ |
| + String get speak => |
| + getPropertyValue('speak'); |
| - static const int CSS_PRIMITIVE_VALUE = 1; |
| + /** Sets the value of "speak" */ |
| + void set speak(String value) { |
| + setProperty('speak', value, ''); |
| + } |
| - static const int CSS_VALUE_LIST = 2; |
| + /** Gets the value of "src" */ |
| + String get src => |
| + getPropertyValue('src'); |
| - /// @domName CSSValue.cssText; @docsEditable true |
| - String cssText; |
| + /** Sets the value of "src" */ |
| + void set src(String value) { |
| + setProperty('src', value, ''); |
| + } |
| - /// @domName CSSValue.cssValueType; @docsEditable true |
| - final int cssValueType; |
| -} |
| -// 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. |
| + /** Gets the value of "tab-size" */ |
| + String get tabSize => |
| + getPropertyValue('tab-size'); |
| + /** Sets the value of "tab-size" */ |
| + void set tabSize(String value) { |
| + setProperty('tab-size', value, ''); |
| + } |
| -/// @domName HTMLCanvasElement |
| -class CanvasElement extends Element implements Element native "*HTMLCanvasElement" { |
| + /** Gets the value of "table-layout" */ |
| + String get tableLayout => |
| + getPropertyValue('table-layout'); |
| - factory CanvasElement({int width, int height}) { |
| - var e = document.$dom_createElement("canvas"); |
| - if (width != null) e.width = width; |
| - if (height != null) e.height = height; |
| - return e; |
| + /** Sets the value of "table-layout" */ |
| + void set tableLayout(String value) { |
| + setProperty('table-layout', value, ''); |
| } |
| - /// @domName HTMLCanvasElement.height; @docsEditable true |
| - int height; |
| - |
| - /// @domName HTMLCanvasElement.width; @docsEditable true |
| - int width; |
| + /** Gets the value of "tap-highlight-color" */ |
| + String get tapHighlightColor => |
| + getPropertyValue('${_browserPrefix}tap-highlight-color'); |
| - /// @domName HTMLCanvasElement.toDataURL; @docsEditable true |
| - @JSName('toDataURL') |
| - String toDataUrl(String type, [num quality]) native; |
| + /** Sets the value of "tap-highlight-color" */ |
| + void set tapHighlightColor(String value) { |
| + setProperty('${_browserPrefix}tap-highlight-color', value, ''); |
| + } |
| + /** Gets the value of "text-align" */ |
| + String get textAlign => |
| + getPropertyValue('text-align'); |
| - CanvasRenderingContext getContext(String contextId) native; |
| - CanvasRenderingContext2D get context2d => getContext('2d'); |
| -} |
| -// 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. |
| + /** Sets the value of "text-align" */ |
| + void set textAlign(String value) { |
| + setProperty('text-align', value, ''); |
| + } |
| + /** Gets the value of "text-align-last" */ |
| + String get textAlignLast => |
| + getPropertyValue('${_browserPrefix}text-align-last'); |
| -/// @domName CanvasGradient; @docsEditable true |
| -class CanvasGradient native "*CanvasGradient" { |
| + /** Sets the value of "text-align-last" */ |
| + void set textAlignLast(String value) { |
| + setProperty('${_browserPrefix}text-align-last', value, ''); |
| + } |
| - /// @domName CanvasGradient.addColorStop; @docsEditable true |
| - void addColorStop(num offset, String color) 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. |
| + /** Gets the value of "text-combine" */ |
| + String get textCombine => |
| + getPropertyValue('${_browserPrefix}text-combine'); |
| + /** Sets the value of "text-combine" */ |
| + void set textCombine(String value) { |
| + setProperty('${_browserPrefix}text-combine', value, ''); |
| + } |
| -/// @domName CanvasPattern; @docsEditable true |
| -class CanvasPattern native "*CanvasPattern" { |
| -} |
| -// 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. |
| + /** Gets the value of "text-decoration" */ |
| + String get textDecoration => |
| + getPropertyValue('text-decoration'); |
| + /** Sets the value of "text-decoration" */ |
| + void set textDecoration(String value) { |
| + setProperty('text-decoration', value, ''); |
| + } |
| -/// @domName CanvasRenderingContext; @docsEditable true |
| -class CanvasRenderingContext native "*CanvasRenderingContext" { |
| + /** Gets the value of "text-decoration-line" */ |
| + String get textDecorationLine => |
| + getPropertyValue('${_browserPrefix}text-decoration-line'); |
| - /// @domName CanvasRenderingContext.canvas; @docsEditable true |
| - final CanvasElement canvas; |
| -} |
| -// 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. |
| + /** Sets the value of "text-decoration-line" */ |
| + void set textDecorationLine(String value) { |
| + setProperty('${_browserPrefix}text-decoration-line', value, ''); |
| + } |
| + /** Gets the value of "text-decoration-style" */ |
| + String get textDecorationStyle => |
| + getPropertyValue('${_browserPrefix}text-decoration-style'); |
| -/// @domName CanvasRenderingContext2D |
| -class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRenderingContext2D" { |
| + /** Sets the value of "text-decoration-style" */ |
| + void set textDecorationStyle(String value) { |
| + setProperty('${_browserPrefix}text-decoration-style', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.fillStyle; @docsEditable true |
| - dynamic fillStyle; |
| + /** Gets the value of "text-decorations-in-effect" */ |
| + String get textDecorationsInEffect => |
| + getPropertyValue('${_browserPrefix}text-decorations-in-effect'); |
| - /// @domName CanvasRenderingContext2D.font; @docsEditable true |
| - String font; |
| + /** Sets the value of "text-decorations-in-effect" */ |
| + void set textDecorationsInEffect(String value) { |
| + setProperty('${_browserPrefix}text-decorations-in-effect', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.globalAlpha; @docsEditable true |
| - num globalAlpha; |
| + /** Gets the value of "text-emphasis" */ |
| + String get textEmphasis => |
| + getPropertyValue('${_browserPrefix}text-emphasis'); |
| - /// @domName CanvasRenderingContext2D.globalCompositeOperation; @docsEditable true |
| - String globalCompositeOperation; |
| + /** Sets the value of "text-emphasis" */ |
| + void set textEmphasis(String value) { |
| + setProperty('${_browserPrefix}text-emphasis', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.lineCap; @docsEditable true |
| - String lineCap; |
| + /** Gets the value of "text-emphasis-color" */ |
| + String get textEmphasisColor => |
| + getPropertyValue('${_browserPrefix}text-emphasis-color'); |
| - /// @domName CanvasRenderingContext2D.lineDashOffset; @docsEditable true |
| - num lineDashOffset; |
| + /** Sets the value of "text-emphasis-color" */ |
| + void set textEmphasisColor(String value) { |
| + setProperty('${_browserPrefix}text-emphasis-color', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.lineJoin; @docsEditable true |
| - String lineJoin; |
| + /** Gets the value of "text-emphasis-position" */ |
| + String get textEmphasisPosition => |
| + getPropertyValue('${_browserPrefix}text-emphasis-position'); |
| - /// @domName CanvasRenderingContext2D.lineWidth; @docsEditable true |
| - num lineWidth; |
| + /** Sets the value of "text-emphasis-position" */ |
| + void set textEmphasisPosition(String value) { |
| + setProperty('${_browserPrefix}text-emphasis-position', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.miterLimit; @docsEditable true |
| - num miterLimit; |
| + /** Gets the value of "text-emphasis-style" */ |
| + String get textEmphasisStyle => |
| + getPropertyValue('${_browserPrefix}text-emphasis-style'); |
| - /// @domName CanvasRenderingContext2D.shadowBlur; @docsEditable true |
| - num shadowBlur; |
| - |
| - /// @domName CanvasRenderingContext2D.shadowColor; @docsEditable true |
| - String shadowColor; |
| + /** Sets the value of "text-emphasis-style" */ |
| + void set textEmphasisStyle(String value) { |
| + setProperty('${_browserPrefix}text-emphasis-style', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.shadowOffsetX; @docsEditable true |
| - num shadowOffsetX; |
| + /** Gets the value of "text-fill-color" */ |
| + String get textFillColor => |
| + getPropertyValue('${_browserPrefix}text-fill-color'); |
| - /// @domName CanvasRenderingContext2D.shadowOffsetY; @docsEditable true |
| - num shadowOffsetY; |
| + /** Sets the value of "text-fill-color" */ |
| + void set textFillColor(String value) { |
| + setProperty('${_browserPrefix}text-fill-color', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.strokeStyle; @docsEditable true |
| - dynamic strokeStyle; |
| + /** Gets the value of "text-indent" */ |
| + String get textIndent => |
| + getPropertyValue('text-indent'); |
| - /// @domName CanvasRenderingContext2D.textAlign; @docsEditable true |
| - String textAlign; |
| + /** Sets the value of "text-indent" */ |
| + void set textIndent(String value) { |
| + setProperty('text-indent', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.textBaseline; @docsEditable true |
| - String textBaseline; |
| + /** Gets the value of "text-line-through" */ |
| + String get textLineThrough => |
| + getPropertyValue('text-line-through'); |
| - /// @domName CanvasRenderingContext2D.webkitBackingStorePixelRatio; @docsEditable true |
| - final num webkitBackingStorePixelRatio; |
| + /** Sets the value of "text-line-through" */ |
| + void set textLineThrough(String value) { |
| + setProperty('text-line-through', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.webkitImageSmoothingEnabled; @docsEditable true |
| - bool webkitImageSmoothingEnabled; |
| + /** Gets the value of "text-line-through-color" */ |
| + String get textLineThroughColor => |
| + getPropertyValue('text-line-through-color'); |
| - /// @domName CanvasRenderingContext2D.webkitLineDash; @docsEditable true |
| - List webkitLineDash; |
| + /** Sets the value of "text-line-through-color" */ |
| + void set textLineThroughColor(String value) { |
| + setProperty('text-line-through-color', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.webkitLineDashOffset; @docsEditable true |
| - num webkitLineDashOffset; |
| + /** Gets the value of "text-line-through-mode" */ |
| + String get textLineThroughMode => |
| + getPropertyValue('text-line-through-mode'); |
| - /// @domName CanvasRenderingContext2D.arc; @docsEditable true |
| - void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticlockwise) native; |
| + /** Sets the value of "text-line-through-mode" */ |
| + void set textLineThroughMode(String value) { |
| + setProperty('text-line-through-mode', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.arcTo; @docsEditable true |
| - void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
| + /** Gets the value of "text-line-through-style" */ |
| + String get textLineThroughStyle => |
| + getPropertyValue('text-line-through-style'); |
| - /// @domName CanvasRenderingContext2D.beginPath; @docsEditable true |
| - void beginPath() native; |
| + /** Sets the value of "text-line-through-style" */ |
| + void set textLineThroughStyle(String value) { |
| + setProperty('text-line-through-style', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.bezierCurveTo; @docsEditable true |
| - void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) native; |
| + /** Gets the value of "text-line-through-width" */ |
| + String get textLineThroughWidth => |
| + getPropertyValue('text-line-through-width'); |
| - /// @domName CanvasRenderingContext2D.clearRect; @docsEditable true |
| - void clearRect(num x, num y, num width, num height) native; |
| + /** Sets the value of "text-line-through-width" */ |
| + void set textLineThroughWidth(String value) { |
| + setProperty('text-line-through-width', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.clearShadow; @docsEditable true |
| - void clearShadow() native; |
| + /** Gets the value of "text-orientation" */ |
| + String get textOrientation => |
| + getPropertyValue('${_browserPrefix}text-orientation'); |
| - /// @domName CanvasRenderingContext2D.clip; @docsEditable true |
| - void clip() native; |
| + /** Sets the value of "text-orientation" */ |
| + void set textOrientation(String value) { |
| + setProperty('${_browserPrefix}text-orientation', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.closePath; @docsEditable true |
| - void closePath() native; |
| + /** Gets the value of "text-overflow" */ |
| + String get textOverflow => |
| + getPropertyValue('text-overflow'); |
| - /// @domName CanvasRenderingContext2D.createImageData; @docsEditable true |
| - ImageData createImageData(imagedata_OR_sw, [num sh]) { |
| - if ((?imagedata_OR_sw && (imagedata_OR_sw is ImageData || imagedata_OR_sw == null)) && |
| - !?sh) { |
| - var imagedata_1 = _convertDartToNative_ImageData(imagedata_OR_sw); |
| - return _convertNativeToDart_ImageData(_createImageData_1(imagedata_1)); |
| - } |
| - if ((?imagedata_OR_sw && (imagedata_OR_sw is num || imagedata_OR_sw == null))) { |
| - return _convertNativeToDart_ImageData(_createImageData_2(imagedata_OR_sw, sh)); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| + /** Sets the value of "text-overflow" */ |
| + void set textOverflow(String value) { |
| + setProperty('text-overflow', value, ''); |
| } |
| - @JSName('createImageData') |
| - @Creates('ImageData|=Object') |
| - _createImageData_1(imagedata) native; |
| - @JSName('createImageData') |
| - @Creates('ImageData|=Object') |
| - _createImageData_2(num sw, sh) native; |
| - |
| - /// @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true |
| - CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| - /// @domName CanvasRenderingContext2D.createPattern; @docsEditable true |
| - CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
| + /** Gets the value of "text-overline" */ |
| + String get textOverline => |
| + getPropertyValue('text-overline'); |
| - /// @domName CanvasRenderingContext2D.createRadialGradient; @docsEditable true |
| - CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, num r1) native; |
| + /** Sets the value of "text-overline" */ |
| + void set textOverline(String value) { |
| + setProperty('text-overline', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.drawImage; @docsEditable true |
| - void drawImage(canvas_OR_image_OR_video, num sx_OR_x, num sy_OR_y, [num sw_OR_width, num height_OR_sh, num dx, num dy, num dw, num dh]) native; |
| + /** Gets the value of "text-overline-color" */ |
| + String get textOverlineColor => |
| + getPropertyValue('text-overline-color'); |
| - /// @domName CanvasRenderingContext2D.drawImageFromRect; @docsEditable true |
| - void drawImageFromRect(ImageElement image, [num sx, num sy, num sw, num sh, num dx, num dy, num dw, num dh, String compositeOperation]) native; |
| + /** Sets the value of "text-overline-color" */ |
| + void set textOverlineColor(String value) { |
| + setProperty('text-overline-color', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.fill; @docsEditable true |
| - void fill() native; |
| + /** Gets the value of "text-overline-mode" */ |
| + String get textOverlineMode => |
| + getPropertyValue('text-overline-mode'); |
| - /// @domName CanvasRenderingContext2D.fillRect; @docsEditable true |
| - void fillRect(num x, num y, num width, num height) native; |
| + /** Sets the value of "text-overline-mode" */ |
| + void set textOverlineMode(String value) { |
| + setProperty('text-overline-mode', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.fillText; @docsEditable true |
| - void fillText(String text, num x, num y, [num maxWidth]) native; |
| + /** Gets the value of "text-overline-style" */ |
| + String get textOverlineStyle => |
| + getPropertyValue('text-overline-style'); |
| - /// @domName CanvasRenderingContext2D.getImageData; @docsEditable true |
| - ImageData getImageData(num sx, num sy, num sw, num sh) { |
| - return _convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
| + /** Sets the value of "text-overline-style" */ |
| + void set textOverlineStyle(String value) { |
| + setProperty('text-overline-style', value, ''); |
| } |
| - @JSName('getImageData') |
| - @Creates('ImageData|=Object') |
| - _getImageData_1(sx, sy, sw, sh) native; |
| - /// @domName CanvasRenderingContext2D.getLineDash; @docsEditable true |
| - List<num> getLineDash() native; |
| + /** Gets the value of "text-overline-width" */ |
| + String get textOverlineWidth => |
| + getPropertyValue('text-overline-width'); |
| - /// @domName CanvasRenderingContext2D.isPointInPath; @docsEditable true |
| - bool isPointInPath(num x, num y) native; |
| + /** Sets the value of "text-overline-width" */ |
| + void set textOverlineWidth(String value) { |
| + setProperty('text-overline-width', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.lineTo; @docsEditable true |
| - void lineTo(num x, num y) native; |
| + /** Gets the value of "text-rendering" */ |
| + String get textRendering => |
| + getPropertyValue('text-rendering'); |
| - /// @domName CanvasRenderingContext2D.measureText; @docsEditable true |
| - TextMetrics measureText(String text) native; |
| + /** Sets the value of "text-rendering" */ |
| + void set textRendering(String value) { |
| + setProperty('text-rendering', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.moveTo; @docsEditable true |
| - void moveTo(num x, num y) native; |
| + /** Gets the value of "text-security" */ |
| + String get textSecurity => |
| + getPropertyValue('${_browserPrefix}text-security'); |
| - /// @domName CanvasRenderingContext2D.putImageData; @docsEditable true |
| - void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) { |
| - if (!?dirtyX && |
| - !?dirtyY && |
| - !?dirtyWidth && |
| - !?dirtyHeight) { |
| - var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| - _putImageData_1(imagedata_1, dx, dy); |
| - return; |
| - } |
| - var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| - _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight); |
| - return; |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| + /** Sets the value of "text-security" */ |
| + void set textSecurity(String value) { |
| + setProperty('${_browserPrefix}text-security', value, ''); |
| } |
| - @JSName('putImageData') |
| - void _putImageData_1(imagedata, dx, dy) native; |
| - @JSName('putImageData') |
| - void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native; |
| - |
| - /// @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true |
| - void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
| - /// @domName CanvasRenderingContext2D.rect; @docsEditable true |
| - void rect(num x, num y, num width, num height) native; |
| + /** Gets the value of "text-shadow" */ |
| + String get textShadow => |
| + getPropertyValue('text-shadow'); |
| - /// @domName CanvasRenderingContext2D.restore; @docsEditable true |
| - void restore() native; |
| + /** Sets the value of "text-shadow" */ |
| + void set textShadow(String value) { |
| + setProperty('text-shadow', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.rotate; @docsEditable true |
| - void rotate(num angle) native; |
| + /** Gets the value of "text-size-adjust" */ |
| + String get textSizeAdjust => |
| + getPropertyValue('${_browserPrefix}text-size-adjust'); |
| - /// @domName CanvasRenderingContext2D.save; @docsEditable true |
| - void save() native; |
| + /** Sets the value of "text-size-adjust" */ |
| + void set textSizeAdjust(String value) { |
| + setProperty('${_browserPrefix}text-size-adjust', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.scale; @docsEditable true |
| - void scale(num sx, num sy) native; |
| + /** Gets the value of "text-stroke" */ |
| + String get textStroke => |
| + getPropertyValue('${_browserPrefix}text-stroke'); |
| - /// @domName CanvasRenderingContext2D.setAlpha; @docsEditable true |
| - void setAlpha(num alpha) native; |
| + /** Sets the value of "text-stroke" */ |
| + void set textStroke(String value) { |
| + setProperty('${_browserPrefix}text-stroke', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.setCompositeOperation; @docsEditable true |
| - void setCompositeOperation(String compositeOperation) native; |
| + /** Gets the value of "text-stroke-color" */ |
| + String get textStrokeColor => |
| + getPropertyValue('${_browserPrefix}text-stroke-color'); |
| - /// @domName CanvasRenderingContext2D.setLineCap; @docsEditable true |
| - void setLineCap(String cap) native; |
| + /** Sets the value of "text-stroke-color" */ |
| + void set textStrokeColor(String value) { |
| + setProperty('${_browserPrefix}text-stroke-color', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.setLineDash; @docsEditable true |
| - void setLineDash(List<num> dash) native; |
| + /** Gets the value of "text-stroke-width" */ |
| + String get textStrokeWidth => |
| + getPropertyValue('${_browserPrefix}text-stroke-width'); |
| - /// @domName CanvasRenderingContext2D.setLineJoin; @docsEditable true |
| - void setLineJoin(String join) native; |
| + /** Sets the value of "text-stroke-width" */ |
| + void set textStrokeWidth(String value) { |
| + setProperty('${_browserPrefix}text-stroke-width', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.setLineWidth; @docsEditable true |
| - void setLineWidth(num width) native; |
| + /** Gets the value of "text-transform" */ |
| + String get textTransform => |
| + getPropertyValue('text-transform'); |
| - /// @domName CanvasRenderingContext2D.setMiterLimit; @docsEditable true |
| - void setMiterLimit(num limit) native; |
| + /** Sets the value of "text-transform" */ |
| + void set textTransform(String value) { |
| + setProperty('text-transform', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.setShadow; @docsEditable true |
| - void setShadow(num width, num height, num blur, [c_OR_color_OR_grayLevel_OR_r, num alpha_OR_g_OR_m, num b_OR_y, num a_OR_k, num a]) native; |
| + /** Gets the value of "text-underline" */ |
| + String get textUnderline => |
| + getPropertyValue('text-underline'); |
| - /// @domName CanvasRenderingContext2D.setTransform; @docsEditable true |
| - void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| + /** Sets the value of "text-underline" */ |
| + void set textUnderline(String value) { |
| + setProperty('text-underline', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.stroke; @docsEditable true |
| - void stroke() native; |
| + /** Gets the value of "text-underline-color" */ |
| + String get textUnderlineColor => |
| + getPropertyValue('text-underline-color'); |
| - /// @domName CanvasRenderingContext2D.strokeRect; @docsEditable true |
| - void strokeRect(num x, num y, num width, num height, [num lineWidth]) native; |
| + /** Sets the value of "text-underline-color" */ |
| + void set textUnderlineColor(String value) { |
| + setProperty('text-underline-color', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.strokeText; @docsEditable true |
| - void strokeText(String text, num x, num y, [num maxWidth]) native; |
| + /** Gets the value of "text-underline-mode" */ |
| + String get textUnderlineMode => |
| + getPropertyValue('text-underline-mode'); |
| - /// @domName CanvasRenderingContext2D.transform; @docsEditable true |
| - void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| + /** Sets the value of "text-underline-mode" */ |
| + void set textUnderlineMode(String value) { |
| + setProperty('text-underline-mode', value, ''); |
| + } |
| - /// @domName CanvasRenderingContext2D.translate; @docsEditable true |
| - void translate(num tx, num ty) native; |
| + /** Gets the value of "text-underline-style" */ |
| + String get textUnderlineStyle => |
| + getPropertyValue('text-underline-style'); |
| - /// @domName CanvasRenderingContext2D.webkitGetImageDataHD; @docsEditable true |
| - ImageData webkitGetImageDataHD(num sx, num sy, num sw, num sh) { |
| - return _convertNativeToDart_ImageData(_webkitGetImageDataHD_1(sx, sy, sw, sh)); |
| + /** Sets the value of "text-underline-style" */ |
| + void set textUnderlineStyle(String value) { |
| + setProperty('text-underline-style', value, ''); |
| } |
| - @JSName('webkitGetImageDataHD') |
| - @Creates('ImageData|=Object') |
| - _webkitGetImageDataHD_1(sx, sy, sw, sh) native; |
| - /// @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true |
| - void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) { |
| - if (!?dirtyX && |
| - !?dirtyY && |
| - !?dirtyWidth && |
| - !?dirtyHeight) { |
| - var imagedata_1 = _convertDartToNative_ImageData(imagedata); |
| - _webkitPutImageDataHD_1(imagedata_1, dx, dy); |
| - return; |
| - } |
| - var imagedata_2 = _convertDartToNative_ImageData(imagedata); |
| - _webkitPutImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight); |
| - return; |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| + /** Gets the value of "text-underline-width" */ |
| + String get textUnderlineWidth => |
| + getPropertyValue('text-underline-width'); |
| + |
| + /** Sets the value of "text-underline-width" */ |
| + void set textUnderlineWidth(String value) { |
| + setProperty('text-underline-width', value, ''); |
| } |
| - @JSName('webkitPutImageDataHD') |
| - void _webkitPutImageDataHD_1(imagedata, dx, dy) native; |
| - @JSName('webkitPutImageDataHD') |
| - void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native; |
| + /** Gets the value of "top" */ |
| + String get top => |
| + getPropertyValue('top'); |
| - /** |
| - * Sets the color used inside shapes. |
| - * [r], [g], [b] are 0-255, [a] is 0-1. |
| - */ |
| - void setFillColorRgb(int r, int g, int b, [num a = 1]) { |
| - this.fillStyle = 'rgba($r, $g, $b, $a)'; |
| + /** Sets the value of "top" */ |
| + void set top(String value) { |
| + setProperty('top', value, ''); |
| } |
| - /** |
| - * Sets the color used inside shapes. |
| - * [h] is in degrees, 0-360. |
| - * [s], [l] are in percent, 0-100. |
| - * [a] is 0-1. |
| - */ |
| - void setFillColorHsl(int h, num s, num l, [num a = 1]) { |
| - this.fillStyle = 'hsla($h, $s%, $l%, $a)'; |
| + /** Gets the value of "transform" */ |
| + String get transform => |
| + getPropertyValue('${_browserPrefix}transform'); |
| + |
| + /** Sets the value of "transform" */ |
| + void set transform(String value) { |
| + setProperty('${_browserPrefix}transform', value, ''); |
| } |
| - /** |
| - * Sets the color used for stroking shapes. |
| - * [r], [g], [b] are 0-255, [a] is 0-1. |
| - */ |
| - void setStrokeColorRgb(int r, int g, int b, [num a = 1]) { |
| - this.strokeStyle = 'rgba($r, $g, $b, $a)'; |
| + /** Gets the value of "transform-origin" */ |
| + String get transformOrigin => |
| + getPropertyValue('${_browserPrefix}transform-origin'); |
| + |
| + /** Sets the value of "transform-origin" */ |
| + void set transformOrigin(String value) { |
| + setProperty('${_browserPrefix}transform-origin', value, ''); |
| } |
| - /** |
| - * Sets the color used for stroking shapes. |
| - * [h] is in degrees, 0-360. |
| - * [s], [l] are in percent, 0-100. |
| - * [a] is 0-1. |
| - */ |
| - void setStrokeColorHsl(int h, num s, num l, [num a = 1]) { |
| - this.strokeStyle = 'hsla($h, $s%, $l%, $a)'; |
| + /** Gets the value of "transform-origin-x" */ |
| + String get transformOriginX => |
| + getPropertyValue('${_browserPrefix}transform-origin-x'); |
| + |
| + /** Sets the value of "transform-origin-x" */ |
| + void set transformOriginX(String value) { |
| + setProperty('${_browserPrefix}transform-origin-x', value, ''); |
| } |
| -} |
| -// 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. |
| + /** Gets the value of "transform-origin-y" */ |
| + String get transformOriginY => |
| + getPropertyValue('${_browserPrefix}transform-origin-y'); |
| -/// @domName CharacterData; @docsEditable true |
| -class CharacterData extends Node native "*CharacterData" { |
| + /** Sets the value of "transform-origin-y" */ |
| + void set transformOriginY(String value) { |
| + setProperty('${_browserPrefix}transform-origin-y', value, ''); |
| + } |
| - /// @domName CharacterData.data; @docsEditable true |
| - String data; |
| + /** Gets the value of "transform-origin-z" */ |
| + String get transformOriginZ => |
| + getPropertyValue('${_browserPrefix}transform-origin-z'); |
| - /// @domName CharacterData.length; @docsEditable true |
| - final int length; |
| + /** Sets the value of "transform-origin-z" */ |
| + void set transformOriginZ(String value) { |
| + setProperty('${_browserPrefix}transform-origin-z', value, ''); |
| + } |
| - /// @domName CharacterData.appendData; @docsEditable true |
| - void appendData(String data) native; |
| + /** Gets the value of "transform-style" */ |
| + String get transformStyle => |
| + getPropertyValue('${_browserPrefix}transform-style'); |
| - /// @domName CharacterData.deleteData; @docsEditable true |
| - void deleteData(int offset, int length) native; |
| + /** Sets the value of "transform-style" */ |
| + void set transformStyle(String value) { |
| + setProperty('${_browserPrefix}transform-style', value, ''); |
| + } |
| - /// @domName CharacterData.insertData; @docsEditable true |
| - void insertData(int offset, String data) native; |
| + /** Gets the value of "transition" */ |
| + String get transition => |
| + getPropertyValue('${_browserPrefix}transition'); |
| - /// @domName CharacterData.remove; @docsEditable true |
| - void remove() native; |
| + /** Sets the value of "transition" */ |
| + void set transition(String value) { |
| + setProperty('${_browserPrefix}transition', value, ''); |
| + } |
| - /// @domName CharacterData.replaceData; @docsEditable true |
| - void replaceData(int offset, int length, String data) native; |
| + /** Gets the value of "transition-delay" */ |
| + String get transitionDelay => |
| + getPropertyValue('${_browserPrefix}transition-delay'); |
| - /// @domName CharacterData.substringData; @docsEditable true |
| - String substringData(int offset, int length) 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. |
| + /** Sets the value of "transition-delay" */ |
| + void set transitionDelay(String value) { |
| + setProperty('${_browserPrefix}transition-delay', value, ''); |
| + } |
| + /** Gets the value of "transition-duration" */ |
| + String get transitionDuration => |
| + getPropertyValue('${_browserPrefix}transition-duration'); |
| -/// @domName ClientRect; @docsEditable true |
| -class ClientRect native "*ClientRect" { |
| + /** Sets the value of "transition-duration" */ |
| + void set transitionDuration(String value) { |
| + setProperty('${_browserPrefix}transition-duration', value, ''); |
| + } |
| - /// @domName ClientRect.bottom; @docsEditable true |
| - final num bottom; |
| + /** Gets the value of "transition-property" */ |
| + String get transitionProperty => |
| + getPropertyValue('${_browserPrefix}transition-property'); |
| - /// @domName ClientRect.height; @docsEditable true |
| - final num height; |
| + /** Sets the value of "transition-property" */ |
| + void set transitionProperty(String value) { |
| + setProperty('${_browserPrefix}transition-property', value, ''); |
| + } |
| - /// @domName ClientRect.left; @docsEditable true |
| - final num left; |
| + /** Gets the value of "transition-timing-function" */ |
| + String get transitionTimingFunction => |
| + getPropertyValue('${_browserPrefix}transition-timing-function'); |
| - /// @domName ClientRect.right; @docsEditable true |
| - final num right; |
| + /** Sets the value of "transition-timing-function" */ |
| + void set transitionTimingFunction(String value) { |
| + setProperty('${_browserPrefix}transition-timing-function', value, ''); |
| + } |
| - /// @domName ClientRect.top; @docsEditable true |
| - final num top; |
| + /** Gets the value of "unicode-bidi" */ |
| + String get unicodeBidi => |
| + getPropertyValue('unicode-bidi'); |
| - /// @domName ClientRect.width; @docsEditable true |
| - final num 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. |
| - |
| - |
| -/// @domName Clipboard; @docsEditable true |
| -class Clipboard native "*Clipboard" { |
| - |
| - /// @domName Clipboard.dropEffect; @docsEditable true |
| - String dropEffect; |
| - |
| - /// @domName Clipboard.effectAllowed; @docsEditable true |
| - String effectAllowed; |
| + /** Sets the value of "unicode-bidi" */ |
| + void set unicodeBidi(String value) { |
| + setProperty('unicode-bidi', value, ''); |
| + } |
| - /// @domName Clipboard.files; @docsEditable true |
| - final FileList files; |
| + /** Gets the value of "unicode-range" */ |
| + String get unicodeRange => |
| + getPropertyValue('unicode-range'); |
| - /// @domName Clipboard.items; @docsEditable true |
| - final DataTransferItemList items; |
| + /** Sets the value of "unicode-range" */ |
| + void set unicodeRange(String value) { |
| + setProperty('unicode-range', value, ''); |
| + } |
| - /// @domName Clipboard.types; @docsEditable true |
| - final List types; |
| + /** Gets the value of "user-drag" */ |
| + String get userDrag => |
| + getPropertyValue('${_browserPrefix}user-drag'); |
| - /// @domName Clipboard.clearData; @docsEditable true |
| - void clearData([String type]) native; |
| + /** Sets the value of "user-drag" */ |
| + void set userDrag(String value) { |
| + setProperty('${_browserPrefix}user-drag', value, ''); |
| + } |
| - /// @domName Clipboard.getData; @docsEditable true |
| - String getData(String type) native; |
| + /** Gets the value of "user-modify" */ |
| + String get userModify => |
| + getPropertyValue('${_browserPrefix}user-modify'); |
| - /// @domName Clipboard.setData; @docsEditable true |
| - bool setData(String type, String data) native; |
| + /** Sets the value of "user-modify" */ |
| + void set userModify(String value) { |
| + setProperty('${_browserPrefix}user-modify', value, ''); |
| + } |
| - /// @domName Clipboard.setDragImage; @docsEditable true |
| - void setDragImage(ImageElement image, int x, int y) 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. |
| + /** Gets the value of "user-select" */ |
| + String get userSelect => |
| + getPropertyValue('${_browserPrefix}user-select'); |
| + /** Sets the value of "user-select" */ |
| + void set userSelect(String value) { |
| + setProperty('${_browserPrefix}user-select', value, ''); |
| + } |
| -/// @domName CloseEvent; @docsEditable true |
| -class CloseEvent extends Event native "*CloseEvent" { |
| + /** Gets the value of "user-zoom" */ |
| + String get userZoom => |
| + getPropertyValue('user-zoom'); |
| - /// @domName CloseEvent.code; @docsEditable true |
| - final int code; |
| + /** Sets the value of "user-zoom" */ |
| + void set userZoom(String value) { |
| + setProperty('user-zoom', value, ''); |
| + } |
| - /// @domName CloseEvent.reason; @docsEditable true |
| - final String reason; |
| + /** Gets the value of "vertical-align" */ |
| + String get verticalAlign => |
| + getPropertyValue('vertical-align'); |
| - /// @domName CloseEvent.wasClean; @docsEditable true |
| - final bool wasClean; |
| -} |
| -// 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. |
| + /** Sets the value of "vertical-align" */ |
| + void set verticalAlign(String value) { |
| + setProperty('vertical-align', value, ''); |
| + } |
| + /** Gets the value of "visibility" */ |
| + String get visibility => |
| + getPropertyValue('visibility'); |
| -/// @domName Comment; @docsEditable true |
| -class Comment extends CharacterData native "*Comment" { |
| -} |
| -// 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. |
| + /** Sets the value of "visibility" */ |
| + void set visibility(String value) { |
| + setProperty('visibility', value, ''); |
| + } |
| + /** Gets the value of "white-space" */ |
| + String get whiteSpace => |
| + getPropertyValue('white-space'); |
| -/// @domName CompositionEvent; @docsEditable true |
| -class CompositionEvent extends UIEvent native "*CompositionEvent" { |
| + /** Sets the value of "white-space" */ |
| + void set whiteSpace(String value) { |
| + setProperty('white-space', value, ''); |
| + } |
| - /// @domName CompositionEvent.data; @docsEditable true |
| - final String data; |
| + /** Gets the value of "widows" */ |
| + String get widows => |
| + getPropertyValue('widows'); |
| - /// @domName CompositionEvent.initCompositionEvent; @docsEditable true |
| - void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, LocalWindow viewArg, String dataArg) 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. |
| + /** Sets the value of "widows" */ |
| + void set widows(String value) { |
| + setProperty('widows', value, ''); |
| + } |
| + /** Gets the value of "width" */ |
| + String get width => |
| + getPropertyValue('width'); |
| -/// @domName Console |
| -class Console |
| - // Console is sometimes a singleton bag-of-properties without a prototype. |
| - native "=(typeof console == 'undefined' ? {} : console)" { |
| + /** Sets the value of "width" */ |
| + void set width(String value) { |
| + setProperty('width', value, ''); |
| + } |
| - /// @domName Console.memory; @docsEditable true |
| - final MemoryInfo memory; |
| + /** Gets the value of "word-break" */ |
| + String get wordBreak => |
| + getPropertyValue('word-break'); |
| - /// @domName Console.profiles; @docsEditable true |
| - final List<ScriptProfile> profiles; |
| + /** Sets the value of "word-break" */ |
| + void set wordBreak(String value) { |
| + setProperty('word-break', value, ''); |
| + } |
| - /// @domName Console.assertCondition; @docsEditable true |
| - void assertCondition(bool condition, Object arg) native; |
| + /** Gets the value of "word-spacing" */ |
| + String get wordSpacing => |
| + getPropertyValue('word-spacing'); |
| - /// @domName Console.count; @docsEditable true |
| - void count(Object arg) native; |
| + /** Sets the value of "word-spacing" */ |
| + void set wordSpacing(String value) { |
| + setProperty('word-spacing', value, ''); |
| + } |
| - /// @domName Console.debug; @docsEditable true |
| - void debug(Object arg) native; |
| + /** Gets the value of "word-wrap" */ |
| + String get wordWrap => |
| + getPropertyValue('word-wrap'); |
| - /// @domName Console.dir; @docsEditable true |
| - void dir(Object arg) native; |
| + /** Sets the value of "word-wrap" */ |
| + void set wordWrap(String value) { |
| + setProperty('word-wrap', value, ''); |
| + } |
| - /// @domName Console.dirxml; @docsEditable true |
| - void dirxml(Object arg) native; |
| + /** Gets the value of "wrap" */ |
| + String get wrap => |
| + getPropertyValue('${_browserPrefix}wrap'); |
| - /// @domName Console.error; @docsEditable true |
| - void error(Object arg) native; |
| + /** Sets the value of "wrap" */ |
| + void set wrap(String value) { |
| + setProperty('${_browserPrefix}wrap', value, ''); |
| + } |
| - /// @domName Console.group; @docsEditable true |
| - void group(Object arg) native; |
| + /** Gets the value of "wrap-flow" */ |
| + String get wrapFlow => |
| + getPropertyValue('${_browserPrefix}wrap-flow'); |
| - /// @domName Console.groupCollapsed; @docsEditable true |
| - void groupCollapsed(Object arg) native; |
| + /** Sets the value of "wrap-flow" */ |
| + void set wrapFlow(String value) { |
| + setProperty('${_browserPrefix}wrap-flow', value, ''); |
| + } |
| - /// @domName Console.groupEnd; @docsEditable true |
| - void groupEnd() native; |
| + /** Gets the value of "wrap-through" */ |
| + String get wrapThrough => |
| + getPropertyValue('${_browserPrefix}wrap-through'); |
| - /// @domName Console.info; @docsEditable true |
| - void info(Object arg) native; |
| + /** Sets the value of "wrap-through" */ |
| + void set wrapThrough(String value) { |
| + setProperty('${_browserPrefix}wrap-through', value, ''); |
| + } |
| - /// @domName Console.log; @docsEditable true |
| - void log(Object arg) native; |
| + /** Gets the value of "writing-mode" */ |
| + String get writingMode => |
| + getPropertyValue('${_browserPrefix}writing-mode'); |
| - /// @domName Console.markTimeline; @docsEditable true |
| - void markTimeline(Object arg) native; |
| + /** Sets the value of "writing-mode" */ |
| + void set writingMode(String value) { |
| + setProperty('${_browserPrefix}writing-mode', value, ''); |
| + } |
| - /// @domName Console.profile; @docsEditable true |
| - void profile(String title) native; |
| + /** Gets the value of "z-index" */ |
| + String get zIndex => |
| + getPropertyValue('z-index'); |
| - /// @domName Console.profileEnd; @docsEditable true |
| - void profileEnd(String title) native; |
| + /** Sets the value of "z-index" */ |
| + void set zIndex(String value) { |
| + setProperty('z-index', value, ''); |
| + } |
| - /// @domName Console.time; @docsEditable true |
| - void time(String title) native; |
| + /** Gets the value of "zoom" */ |
| + String get zoom => |
| + getPropertyValue('zoom'); |
| - /// @domName Console.timeEnd; @docsEditable true |
| - void timeEnd(String title, Object arg) native; |
| + /** Sets the value of "zoom" */ |
| + void set zoom(String value) { |
| + setProperty('zoom', value, ''); |
| + } |
| +} |
| +// 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. |
| - /// @domName Console.timeStamp; @docsEditable true |
| - void timeStamp(Object arg) native; |
| - /// @domName Console.trace; @docsEditable true |
| - void trace(Object arg) native; |
| +/// @domName CSSStyleRule; @docsEditable true |
| +class CssStyleRule extends CssRule native "*CSSStyleRule" { |
| - /// @domName Console.warn; @docsEditable true |
| - void warn(Object arg) native; |
| + /// @domName CSSStyleRule.selectorText; @docsEditable true |
| + String selectorText; |
| + /// @domName CSSStyleRule.style; @docsEditable true |
| + final CssStyleDeclaration style; |
| } |
| // 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. |
| -/// @domName HTMLContentElement; @docsEditable true |
| -class ContentElement extends Element implements Element native "*HTMLContentElement" { |
| +/// @domName CSSStyleSheet; @docsEditable true |
| +class CssStyleSheet extends StyleSheet native "*CSSStyleSheet" { |
| - factory ContentElement() => document.$dom_createElement("content"); |
| + /// @domName CSSStyleSheet.cssRules; @docsEditable true |
| + @Returns('_CssRuleList') @Creates('_CssRuleList') |
| + final List<CssRule> cssRules; |
| - /// @domName HTMLContentElement.resetStyleInheritance; @docsEditable true |
| - bool resetStyleInheritance; |
| + /// @domName CSSStyleSheet.ownerRule; @docsEditable true |
| + final CssRule ownerRule; |
| - /// @domName HTMLContentElement.select; @docsEditable true |
| - String select; |
| + /// @domName CSSStyleSheet.rules; @docsEditable true |
| + @Returns('_CssRuleList') @Creates('_CssRuleList') |
| + final List<CssRule> rules; |
| - /// @domName HTMLContentElement.getDistributedNodes; @docsEditable true |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> getDistributedNodes() native; |
| + /// @domName CSSStyleSheet.addRule; @docsEditable true |
| + int addRule(String selector, String style, [int index]) native; |
| + |
| + /// @domName CSSStyleSheet.deleteRule; @docsEditable true |
| + void deleteRule(int index) native; |
| + |
| + /// @domName CSSStyleSheet.insertRule; @docsEditable true |
| + int insertRule(String rule, int index) native; |
| + |
| + /// @domName CSSStyleSheet.removeRule; @docsEditable true |
| + void removeRule(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. |
| -/// @domName Coordinates; @docsEditable true |
| -class Coordinates native "*Coordinates" { |
| +/// @domName WebKitCSSTransformValue; @docsEditable true |
| +class CssTransformValue extends _CssValueList native "*WebKitCSSTransformValue" { |
| - /// @domName Coordinates.accuracy; @docsEditable true |
| - final num accuracy; |
| + static const int CSS_MATRIX = 11; |
| - /// @domName Coordinates.altitude; @docsEditable true |
| - final num altitude; |
| + static const int CSS_MATRIX3D = 21; |
| - /// @domName Coordinates.altitudeAccuracy; @docsEditable true |
| - final num altitudeAccuracy; |
| + static const int CSS_PERSPECTIVE = 20; |
| - /// @domName Coordinates.heading; @docsEditable true |
| - final num heading; |
| + static const int CSS_ROTATE = 4; |
| - /// @domName Coordinates.latitude; @docsEditable true |
| - final num latitude; |
| + static const int CSS_ROTATE3D = 17; |
| - /// @domName Coordinates.longitude; @docsEditable true |
| - final num longitude; |
| + static const int CSS_ROTATEX = 14; |
| - /// @domName Coordinates.speed; @docsEditable true |
| - final num speed; |
| + static const int CSS_ROTATEY = 15; |
| + |
| + static const int CSS_ROTATEZ = 16; |
| + |
| + static const int CSS_SCALE = 5; |
| + |
| + static const int CSS_SCALE3D = 19; |
| + |
| + static const int CSS_SCALEX = 6; |
| + |
| + static const int CSS_SCALEY = 7; |
| + |
| + static const int CSS_SCALEZ = 18; |
| + |
| + static const int CSS_SKEW = 8; |
| + |
| + static const int CSS_SKEWX = 9; |
| + |
| + static const int CSS_SKEWY = 10; |
| + |
| + static const int CSS_TRANSLATE = 1; |
| + |
| + static const int CSS_TRANSLATE3D = 13; |
| + |
| + static const int CSS_TRANSLATEX = 2; |
| + |
| + static const int CSS_TRANSLATEY = 3; |
| + |
| + static const int CSS_TRANSLATEZ = 12; |
| + |
| + /// @domName WebKitCSSTransformValue.operationType; @docsEditable true |
| + final int operationType; |
| } |
| // 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. |
| -/// @domName Counter; @docsEditable true |
| -class Counter native "*Counter" { |
| - |
| - /// @domName Counter.identifier; @docsEditable true |
| - final String identifier; |
| - |
| - /// @domName Counter.listStyle; @docsEditable true |
| - final String listStyle; |
| - |
| - /// @domName Counter.separator; @docsEditable true |
| - final String separator; |
| +/// @domName CSSUnknownRule; @docsEditable true |
| +class CssUnknownRule extends CssRule native "*CSSUnknownRule" { |
| } |
| // 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. |
| -/// @domName Crypto; @docsEditable true |
| -class Crypto native "*Crypto" { |
| +/// @domName CSSValue; @docsEditable true |
| +class CssValue native "*CSSValue" { |
| - /// @domName Crypto.getRandomValues; @docsEditable true |
| - void getRandomValues(ArrayBufferView array) native; |
| + static const int CSS_CUSTOM = 3; |
| + |
| + static const int CSS_INHERIT = 0; |
| + |
| + static const int CSS_PRIMITIVE_VALUE = 1; |
| + |
| + static const int CSS_VALUE_LIST = 2; |
| + |
| + /// @domName CSSValue.cssText; @docsEditable true |
| + String cssText; |
| + |
| + /// @domName CSSValue.cssValueType; @docsEditable true |
| + final int cssValueType; |
| } |
| // 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 |
| @@ -5031,1339 +5100,743 @@ class DListElement extends Element implements Element native "*HTMLDListElement" |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName DOMApplicationCache; @docsEditable true |
| -class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" { |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - DOMApplicationCacheEvents get on => |
| - new DOMApplicationCacheEvents(this); |
| - |
| - static const int CHECKING = 2; |
| - |
| - static const int DOWNLOADING = 3; |
| - |
| - static const int IDLE = 1; |
| - |
| - static const int OBSOLETE = 5; |
| - |
| - static const int UNCACHED = 0; |
| - |
| - static const int UPDATEREADY = 4; |
| - |
| - /// @domName DOMApplicationCache.status; @docsEditable true |
| - final int status; |
| - |
| - /// @domName DOMApplicationCache.abort; @docsEditable true |
| - void abort() native; |
| - |
| - /// @domName DOMApplicationCache.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - |
| - /// @domName DOMApplicationCache.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| - |
| - /// @domName DOMApplicationCache.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| +/// @domName HTMLDataListElement; @docsEditable true |
| +class DataListElement extends Element implements Element native "*HTMLDataListElement" { |
| - /// @domName DOMApplicationCache.swapCache; @docsEditable true |
| - void swapCache() native; |
| + factory DataListElement() => document.$dom_createElement("datalist"); |
| - /// @domName DOMApplicationCache.update; @docsEditable true |
| - void update() native; |
| + /// @domName HTMLDataListElement.options; @docsEditable true |
| + final HtmlCollection options; |
| } |
| +// 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. |
| -class DOMApplicationCacheEvents extends Events { |
| - DOMApplicationCacheEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get cached => this['cached']; |
| - |
| - EventListenerList get checking => this['checking']; |
| - EventListenerList get downloading => this['downloading']; |
| +/// @domName DataTransferItem; @docsEditable true |
| +class DataTransferItem native "*DataTransferItem" { |
| - EventListenerList get error => this['error']; |
| + /// @domName DataTransferItem.kind; @docsEditable true |
| + final String kind; |
| - EventListenerList get noUpdate => this['noupdate']; |
| + /// @domName DataTransferItem.type; @docsEditable true |
| + final String type; |
| - EventListenerList get obsolete => this['obsolete']; |
| + /// @domName DataTransferItem.getAsFile; @docsEditable true |
| + Blob getAsFile() native; |
| - EventListenerList get progress => this['progress']; |
| + /// @domName DataTransferItem.getAsString; @docsEditable true |
| + void getAsString([StringCallback callback]) native; |
| - EventListenerList get updateReady => this['updateready']; |
| + /// @domName DataTransferItem.webkitGetAsEntry; @docsEditable true |
| + Entry webkitGetAsEntry() 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. |
| -/// @domName DOMError; @docsEditable true |
| -class DOMError native "*DOMError" { |
| +/// @domName DataTransferItemList; @docsEditable true |
| +class DataTransferItemList native "*DataTransferItemList" { |
| - /// @domName DOMError.name; @docsEditable true |
| - final String name; |
| + /// @domName DataTransferItemList.length; @docsEditable true |
| + final int length; |
| + |
| + /// @domName DataTransferItemList.add; @docsEditable true |
| + void add(data_OR_file, [String type]) native; |
| + |
| + /// @domName DataTransferItemList.clear; @docsEditable true |
| + void clear() native; |
| + |
| + /// @domName DataTransferItemList.item; @docsEditable true |
| + DataTransferItem 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. |
| -/// @domName DOMException; @docsEditable true |
| -class DOMException native "*DOMException" { |
| +/// @domName DataView; @docsEditable true |
| +class DataView extends ArrayBufferView native "*DataView" { |
| - static const int ABORT_ERR = 20; |
| + factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { |
| + if (!?byteOffset) { |
| + return _DataViewFactoryProvider.createDataView(buffer); |
| + } |
| + if (!?byteLength) { |
| + return _DataViewFactoryProvider.createDataView(buffer, byteOffset); |
| + } |
| + return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLength); |
| + } |
| - static const int DATA_CLONE_ERR = 25; |
| + /// @domName DataView.getFloat32; @docsEditable true |
| + num getFloat32(int byteOffset, {bool littleEndian}) native; |
| - static const int DOMSTRING_SIZE_ERR = 2; |
| + /// @domName DataView.getFloat64; @docsEditable true |
| + num getFloat64(int byteOffset, {bool littleEndian}) native; |
| - static const int HIERARCHY_REQUEST_ERR = 3; |
| + /// @domName DataView.getInt16; @docsEditable true |
| + int getInt16(int byteOffset, {bool littleEndian}) native; |
| - static const int INDEX_SIZE_ERR = 1; |
| + /// @domName DataView.getInt32; @docsEditable true |
| + int getInt32(int byteOffset, {bool littleEndian}) native; |
| - static const int INUSE_ATTRIBUTE_ERR = 10; |
| + /// @domName DataView.getInt8; @docsEditable true |
| + int getInt8(int byteOffset) native; |
| - static const int INVALID_ACCESS_ERR = 15; |
| + /// @domName DataView.getUint16; @docsEditable true |
| + int getUint16(int byteOffset, {bool littleEndian}) native; |
| - static const int INVALID_CHARACTER_ERR = 5; |
| + /// @domName DataView.getUint32; @docsEditable true |
| + int getUint32(int byteOffset, {bool littleEndian}) native; |
| - static const int INVALID_MODIFICATION_ERR = 13; |
| + /// @domName DataView.getUint8; @docsEditable true |
| + int getUint8(int byteOffset) native; |
| - static const int INVALID_NODE_TYPE_ERR = 24; |
| + /// @domName DataView.setFloat32; @docsEditable true |
| + void setFloat32(int byteOffset, num value, {bool littleEndian}) native; |
| - static const int INVALID_STATE_ERR = 11; |
| + /// @domName DataView.setFloat64; @docsEditable true |
| + void setFloat64(int byteOffset, num value, {bool littleEndian}) native; |
| - static const int NAMESPACE_ERR = 14; |
| + /// @domName DataView.setInt16; @docsEditable true |
| + void setInt16(int byteOffset, int value, {bool littleEndian}) native; |
| - static const int NETWORK_ERR = 19; |
| + /// @domName DataView.setInt32; @docsEditable true |
| + void setInt32(int byteOffset, int value, {bool littleEndian}) native; |
| - static const int NOT_FOUND_ERR = 8; |
| + /// @domName DataView.setInt8; @docsEditable true |
| + void setInt8(int byteOffset, int value) native; |
| - static const int NOT_SUPPORTED_ERR = 9; |
| + /// @domName DataView.setUint16; @docsEditable true |
| + void setUint16(int byteOffset, int value, {bool littleEndian}) native; |
| - static const int NO_DATA_ALLOWED_ERR = 6; |
| + /// @domName DataView.setUint32; @docsEditable true |
| + void setUint32(int byteOffset, int value, {bool littleEndian}) native; |
| - static const int NO_MODIFICATION_ALLOWED_ERR = 7; |
| + /// @domName DataView.setUint8; @docsEditable true |
| + void setUint8(int byteOffset, int value) 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. |
| - static const int QUOTA_EXCEEDED_ERR = 22; |
| - static const int SECURITY_ERR = 18; |
| - |
| - static const int SYNTAX_ERR = 12; |
| - |
| - static const int TIMEOUT_ERR = 23; |
| - |
| - static const int TYPE_MISMATCH_ERR = 17; |
| - |
| - static const int URL_MISMATCH_ERR = 21; |
| - |
| - static const int VALIDATION_ERR = 16; |
| - |
| - static const int WRONG_DOCUMENT_ERR = 4; |
| - |
| - /// @domName DOMException.code; @docsEditable true |
| - final int code; |
| - |
| - /// @domName DOMException.message; @docsEditable true |
| - final String message; |
| - |
| - /// @domName DOMException.name; @docsEditable true |
| - final String name; |
| - |
| - /// @domName DOMException.toString; @docsEditable true |
| - String toString() 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. |
| +/// @domName Database; @docsEditable true |
| +class Database native "*Database" { |
| + /// @domName Database.version; @docsEditable true |
| + final String version; |
| -/// @domName DOMFileSystem; @docsEditable true |
| -class DOMFileSystem native "*DOMFileSystem" { |
| + /// @domName Database.changeVersion; @docsEditable true |
| + void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; |
| - /// @domName DOMFileSystem.name; @docsEditable true |
| - final String name; |
| + /// @domName Database.readTransaction; @docsEditable true |
| + void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; |
| - /// @domName DOMFileSystem.root; @docsEditable true |
| - final DirectoryEntry root; |
| + /// @domName Database.transaction; @docsEditable true |
| + void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) 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. |
| +// WARNING: Do not edit - generated code. |
| -/// @domName DOMFileSystemSync; @docsEditable true |
| -class DOMFileSystemSync native "*DOMFileSystemSync" { |
| - |
| - /// @domName DOMFileSystemSync.name; @docsEditable true |
| - final String name; |
| - /// @domName DOMFileSystemSync.root; @docsEditable true |
| - final DirectoryEntrySync root; |
| -} |
| +typedef void DatabaseCallback(database); |
| // 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. |
| -/// @domName DOMImplementation; @docsEditable true |
| -class DOMImplementation native "*DOMImplementation" { |
| +/// @domName DatabaseSync; @docsEditable true |
| +class DatabaseSync native "*DatabaseSync" { |
| - /// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true |
| - @JSName('createCSSStyleSheet') |
| - CSSStyleSheet createCssStyleSheet(String title, String media) native; |
| + /// @domName DatabaseSync.lastErrorMessage; @docsEditable true |
| + final String lastErrorMessage; |
| - /// @domName DOMImplementation.createDocument; @docsEditable true |
| - Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) native; |
| + /// @domName DatabaseSync.version; @docsEditable true |
| + final String version; |
| - /// @domName DOMImplementation.createDocumentType; @docsEditable true |
| - DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native; |
| + /// @domName DatabaseSync.changeVersion; @docsEditable true |
| + void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback]) native; |
| - /// @domName DOMImplementation.createHTMLDocument; @docsEditable true |
| - @JSName('createHTMLDocument') |
| - HtmlDocument createHtmlDocument(String title) native; |
| + /// @domName DatabaseSync.readTransaction; @docsEditable true |
| + void readTransaction(SQLTransactionSyncCallback callback) native; |
| - /// @domName DOMImplementation.hasFeature; @docsEditable true |
| - bool hasFeature(String feature, String version) native; |
| + /// @domName DatabaseSync.transaction; @docsEditable true |
| + void transaction(SQLTransactionSyncCallback callback) 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. |
| -/// @domName MimeType; @docsEditable true |
| -class DOMMimeType native "*MimeType" { |
| +/// @domName DedicatedWorkerContext; @docsEditable true |
| +class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerContext" { |
| - /// @domName MimeType.description; @docsEditable true |
| - final String description; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + DedicatedWorkerContextEvents get on => |
| + new DedicatedWorkerContextEvents(this); |
| - /// @domName MimeType.enabledPlugin; @docsEditable true |
| - final DOMPlugin enabledPlugin; |
| + /// @domName DedicatedWorkerContext.postMessage; @docsEditable true |
| + void postMessage(/*any*/ message, [List messagePorts]) { |
| + if (?messagePorts) { |
| + var message_1 = convertDartToNative_SerializedScriptValue(message); |
| + _postMessage_1(message_1, messagePorts); |
| + return; |
| + } |
| + var message_2 = convertDartToNative_SerializedScriptValue(message); |
| + _postMessage_2(message_2); |
| + return; |
| + } |
| + @JSName('postMessage') |
| + void _postMessage_1(message, List messagePorts) native; |
| + @JSName('postMessage') |
| + void _postMessage_2(message) native; |
| +} |
| - /// @domName MimeType.suffixes; @docsEditable true |
| - final String suffixes; |
| +class DedicatedWorkerContextEvents extends WorkerContextEvents { |
| + DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
| - /// @domName MimeType.type; @docsEditable true |
| - final String type; |
| + EventListenerList get message => this['message']; |
| } |
| // 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. |
| -/// @domName MimeTypeArray; @docsEditable true |
| -class DOMMimeTypeArray implements JavaScriptIndexingBehavior, List<DOMMimeType> native "*MimeTypeArray" { |
| - |
| - /// @domName MimeTypeArray.length; @docsEditable true |
| - final int length; |
| - |
| - DOMMimeType operator[](int index) => JS("DOMMimeType", "#[#]", this, index); |
| - |
| - void operator[]=(int index, DOMMimeType value) { |
| - throw new UnsupportedError("Cannot assign element of immutable List."); |
| - } |
| - // -- start List<DOMMimeType> mixins. |
| - // DOMMimeType is the element type. |
| - |
| - // From Iterable<DOMMimeType>: |
| - |
| - Iterator<DOMMimeType> iterator() { |
| - // Note: NodeLists are not fixed size. And most probably length shouldn't |
| - // be cached in both iterator _and_ forEach method. For now caching it |
| - // for consistency. |
| - return new FixedSizeListIterator<DOMMimeType>(this); |
| - } |
| - |
| - // From Collection<DOMMimeType>: |
| - |
| - void add(DOMMimeType value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| - |
| - void addLast(DOMMimeType value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| - |
| - void addAll(Collection<DOMMimeType> collection) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| - |
| - bool contains(DOMMimeType element) => Collections.contains(this, element); |
| - |
| - void forEach(void f(DOMMimeType element)) => Collections.forEach(this, f); |
| - |
| - Collection map(f(DOMMimeType element)) => Collections.map(this, [], f); |
| - |
| - Collection<DOMMimeType> filter(bool f(DOMMimeType element)) => |
| - Collections.filter(this, <DOMMimeType>[], f); |
| - |
| - bool every(bool f(DOMMimeType element)) => Collections.every(this, f); |
| - |
| - bool some(bool f(DOMMimeType element)) => Collections.some(this, f); |
| - |
| - bool get isEmpty => this.length == 0; |
| - |
| - // From List<DOMMimeType>: |
| - |
| - void sort([Comparator<DOMMimeType> compare = Comparable.compare]) { |
| - throw new UnsupportedError("Cannot sort immutable List."); |
| - } |
| - |
| - int indexOf(DOMMimeType element, [int start = 0]) => |
| - _Lists.indexOf(this, element, start, this.length); |
| - |
| - int lastIndexOf(DOMMimeType element, [int start]) { |
| - if (start == null) start = length - 1; |
| - return _Lists.lastIndexOf(this, element, start); |
| - } |
| - |
| - DOMMimeType get first => this[0]; |
| - |
| - DOMMimeType get last => this[length - 1]; |
| - |
| - DOMMimeType removeLast() { |
| - throw new UnsupportedError("Cannot removeLast on immutable List."); |
| - } |
| - |
| - void setRange(int start, int rangeLength, List<DOMMimeType> from, [int startFrom]) { |
| - throw new UnsupportedError("Cannot setRange on immutable List."); |
| - } |
| - |
| - void removeRange(int start, int rangeLength) { |
| - throw new UnsupportedError("Cannot removeRange on immutable List."); |
| - } |
| - |
| - void insertRange(int start, int rangeLength, [DOMMimeType initialValue]) { |
| - throw new UnsupportedError("Cannot insertRange on immutable List."); |
| - } |
| - |
| - List<DOMMimeType> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <DOMMimeType>[]); |
| - |
| - // -- end List<DOMMimeType> mixins. |
| +/// @domName HTMLDetailsElement; @docsEditable true |
| +class DetailsElement extends Element implements Element native "*HTMLDetailsElement" { |
| - /// @domName MimeTypeArray.item; @docsEditable true |
| - DOMMimeType item(int index) native; |
| + factory DetailsElement() => document.$dom_createElement("details"); |
| - /// @domName MimeTypeArray.namedItem; @docsEditable true |
| - DOMMimeType namedItem(String name) native; |
| + /// @domName HTMLDetailsElement.open; @docsEditable true |
| + bool open; |
| } |
| // 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. |
| -/// @domName DOMParser; @docsEditable true |
| -class DOMParser native "*DOMParser" { |
| - |
| - factory DOMParser() => _DOMParserFactoryProvider.createDOMParser(); |
| +/// @domName DeviceMotionEvent; @docsEditable true |
| +class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { |
| - /// @domName DOMParser.parseFromString; @docsEditable true |
| - Document parseFromString(String str, String contentType) native; |
| + /// @domName DeviceMotionEvent.interval; @docsEditable true |
| + final num interval; |
| } |
| // 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. |
| -/// @domName Plugin; @docsEditable true |
| -class DOMPlugin native "*Plugin" { |
| - |
| - /// @domName Plugin.description; @docsEditable true |
| - final String description; |
| +/// @domName DeviceOrientationEvent; @docsEditable true |
| +class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { |
| - /// @domName Plugin.filename; @docsEditable true |
| - final String filename; |
| + /// @domName DeviceOrientationEvent.absolute; @docsEditable true |
| + final bool absolute; |
| - /// @domName Plugin.length; @docsEditable true |
| - final int length; |
| + /// @domName DeviceOrientationEvent.alpha; @docsEditable true |
| + final num alpha; |
| - /// @domName Plugin.name; @docsEditable true |
| - final String name; |
| + /// @domName DeviceOrientationEvent.beta; @docsEditable true |
| + final num beta; |
| - /// @domName Plugin.item; @docsEditable true |
| - DOMMimeType item(int index) native; |
| + /// @domName DeviceOrientationEvent.gamma; @docsEditable true |
| + final num gamma; |
| - /// @domName Plugin.namedItem; @docsEditable true |
| - DOMMimeType namedItem(String name) native; |
| + /// @domName DeviceOrientationEvent.initDeviceOrientationEvent; @docsEditable true |
| + void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) 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. |
| -/// @domName PluginArray; @docsEditable true |
| -class DOMPluginArray implements JavaScriptIndexingBehavior, List<DOMPlugin> native "*PluginArray" { |
| +/// @domName HTMLDirectoryElement; @docsEditable true |
| +class DirectoryElement extends Element implements Element native "*HTMLDirectoryElement" { |
| - /// @domName PluginArray.length; @docsEditable true |
| - final int length; |
| + /// @domName HTMLDirectoryElement.compact; @docsEditable true |
| + bool compact; |
| +} |
| +// 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. |
| - DOMPlugin operator[](int index) => JS("DOMPlugin", "#[#]", this, index); |
| - void operator[]=(int index, DOMPlugin value) { |
| - throw new UnsupportedError("Cannot assign element of immutable List."); |
| - } |
| - // -- start List<DOMPlugin> mixins. |
| - // DOMPlugin is the element type. |
| +/// @domName DirectoryEntry; @docsEditable true |
| +class DirectoryEntry extends Entry native "*DirectoryEntry" { |
| - // From Iterable<DOMPlugin>: |
| + /// @domName DirectoryEntry.createReader; @docsEditable true |
| + DirectoryReader createReader() native; |
| - Iterator<DOMPlugin> iterator() { |
| - // Note: NodeLists are not fixed size. And most probably length shouldn't |
| - // be cached in both iterator _and_ forEach method. For now caching it |
| - // for consistency. |
| - return new FixedSizeListIterator<DOMPlugin>(this); |
| + /// @domName DirectoryEntry.getDirectory; @docsEditable true |
| + void getDirectory(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) { |
| + if (?errorCallback) { |
| + var options_1 = convertDartToNative_Dictionary(options); |
| + _getDirectory_1(path, options_1, successCallback, errorCallback); |
| + return; |
| + } |
| + if (?successCallback) { |
| + var options_2 = convertDartToNative_Dictionary(options); |
| + _getDirectory_2(path, options_2, successCallback); |
| + return; |
| + } |
| + if (?options) { |
| + var options_3 = convertDartToNative_Dictionary(options); |
| + _getDirectory_3(path, options_3); |
| + return; |
| + } |
| + _getDirectory_4(path); |
| + return; |
| } |
| + @JSName('getDirectory') |
| + void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallback errorCallback) native; |
| + @JSName('getDirectory') |
| + void _getDirectory_2(path, options, EntryCallback successCallback) native; |
| + @JSName('getDirectory') |
| + void _getDirectory_3(path, options) native; |
| + @JSName('getDirectory') |
| + void _getDirectory_4(path) native; |
| - // From Collection<DOMPlugin>: |
| - |
| - void add(DOMPlugin value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| - |
| - void addLast(DOMPlugin value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| - |
| - void addAll(Collection<DOMPlugin> collection) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| + /// @domName DirectoryEntry.getFile; @docsEditable true |
| + void getFile(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) { |
| + if (?errorCallback) { |
| + var options_1 = convertDartToNative_Dictionary(options); |
| + _getFile_1(path, options_1, successCallback, errorCallback); |
| + return; |
| + } |
| + if (?successCallback) { |
| + var options_2 = convertDartToNative_Dictionary(options); |
| + _getFile_2(path, options_2, successCallback); |
| + return; |
| + } |
| + if (?options) { |
| + var options_3 = convertDartToNative_Dictionary(options); |
| + _getFile_3(path, options_3); |
| + return; |
| + } |
| + _getFile_4(path); |
| + return; |
| } |
| + @JSName('getFile') |
| + void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback errorCallback) native; |
| + @JSName('getFile') |
| + void _getFile_2(path, options, EntryCallback successCallback) native; |
| + @JSName('getFile') |
| + void _getFile_3(path, options) native; |
| + @JSName('getFile') |
| + void _getFile_4(path) native; |
| - bool contains(DOMPlugin element) => Collections.contains(this, element); |
| - |
| - void forEach(void f(DOMPlugin element)) => Collections.forEach(this, f); |
| - |
| - Collection map(f(DOMPlugin element)) => Collections.map(this, [], f); |
| - |
| - Collection<DOMPlugin> filter(bool f(DOMPlugin element)) => |
| - Collections.filter(this, <DOMPlugin>[], f); |
| - |
| - bool every(bool f(DOMPlugin element)) => Collections.every(this, f); |
| + /// @domName DirectoryEntry.removeRecursively; @docsEditable true |
| + void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback]) 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. |
| - bool some(bool f(DOMPlugin element)) => Collections.some(this, f); |
| - bool get isEmpty => this.length == 0; |
| +/// @domName DirectoryEntrySync; @docsEditable true |
| +class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { |
| - // From List<DOMPlugin>: |
| + /// @domName DirectoryEntrySync.createReader; @docsEditable true |
| + DirectoryReaderSync createReader() native; |
| - void sort([Comparator<DOMPlugin> compare = Comparable.compare]) { |
| - throw new UnsupportedError("Cannot sort immutable List."); |
| + /// @domName DirectoryEntrySync.getDirectory; @docsEditable true |
| + DirectoryEntrySync getDirectory(String path, Map flags) { |
| + var flags_1 = convertDartToNative_Dictionary(flags); |
| + return _getDirectory_1(path, flags_1); |
| } |
| + @JSName('getDirectory') |
| + DirectoryEntrySync _getDirectory_1(path, flags) native; |
| - int indexOf(DOMPlugin element, [int start = 0]) => |
| - _Lists.indexOf(this, element, start, this.length); |
| - |
| - int lastIndexOf(DOMPlugin element, [int start]) { |
| - if (start == null) start = length - 1; |
| - return _Lists.lastIndexOf(this, element, start); |
| + /// @domName DirectoryEntrySync.getFile; @docsEditable true |
| + FileEntrySync getFile(String path, Map flags) { |
| + var flags_1 = convertDartToNative_Dictionary(flags); |
| + return _getFile_1(path, flags_1); |
| } |
| + @JSName('getFile') |
| + FileEntrySync _getFile_1(path, flags) native; |
| - DOMPlugin get first => this[0]; |
| - |
| - DOMPlugin get last => this[length - 1]; |
| + /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true |
| + void removeRecursively() 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. |
| - DOMPlugin removeLast() { |
| - throw new UnsupportedError("Cannot removeLast on immutable List."); |
| - } |
| - void setRange(int start, int rangeLength, List<DOMPlugin> from, [int startFrom]) { |
| - throw new UnsupportedError("Cannot setRange on immutable List."); |
| - } |
| +/// @domName DirectoryReader; @docsEditable true |
| +class DirectoryReader native "*DirectoryReader" { |
| - void removeRange(int start, int rangeLength) { |
| - throw new UnsupportedError("Cannot removeRange on immutable List."); |
| - } |
| + /// @domName DirectoryReader.readEntries; @docsEditable true |
| + void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback]) 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. |
| - void insertRange(int start, int rangeLength, [DOMPlugin initialValue]) { |
| - throw new UnsupportedError("Cannot insertRange on immutable List."); |
| - } |
| - List<DOMPlugin> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <DOMPlugin>[]); |
| +/// @domName DirectoryReaderSync; @docsEditable true |
| +class DirectoryReaderSync native "*DirectoryReaderSync" { |
| - // -- end List<DOMPlugin> mixins. |
| + /// @domName DirectoryReaderSync.readEntries; @docsEditable true |
| + @Returns('_EntryArraySync') @Creates('_EntryArraySync') |
| + List<EntrySync> readEntries() 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. |
| - /// @domName PluginArray.item; @docsEditable true |
| - DOMPlugin item(int index) native; |
| - /// @domName PluginArray.namedItem; @docsEditable true |
| - DOMPlugin namedItem(String name) native; |
| +/** |
| + * Represents an HTML <div> element. |
| + * |
| + * The [DivElement] is a generic container for content and does not have any |
| + * special significance. It is functionally similar to [SpanElement]. |
| + * |
| + * The [DivElement] is a block-level element, as opposed to [SpanElement], |
| + * which is an inline-level element. |
| + * |
| + * Example usage: |
| + * |
| + * DivElement div = new DivElement(); |
| + * div.text = 'Here's my new DivElem |
| + * document.body.elements.add(elem); |
| + * |
| + * See also: |
| + * |
| + * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. |
| + * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) from W3C. |
| + * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C. |
| + */ |
| +/// @domName HTMLDivElement; @docsEditable true |
| +class DivElement extends Element implements Element native "*HTMLDivElement" { |
| - /// @domName PluginArray.refresh; @docsEditable true |
| - void refresh(bool reload) native; |
| + factory DivElement() => document.$dom_createElement("div"); |
| } |
| // 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. |
| -/// @domName Selection; @docsEditable true |
| -class DOMSelection native "*Selection" { |
| +/// @domName Document |
| +/** |
| + * The base class for all documents. |
| + * |
| + * Each web page loaded in the browser has its own [Document] object, which is |
| + * typically an [HtmlDocument]. |
| + * |
| + * If you aren't comfortable with DOM concepts, see the Dart tutorial |
| + * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connect-dart-html/). |
| + */ |
| +class Document extends Node native "*Document" |
| +{ |
| - /// @domName Selection.anchorNode; @docsEditable true |
| - final Node anchorNode; |
| - /// @domName Selection.anchorOffset; @docsEditable true |
| - final int anchorOffset; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + DocumentEvents get on => |
| + new DocumentEvents(this); |
| - /// @domName Selection.baseNode; @docsEditable true |
| - final Node baseNode; |
| + /// @domName Document.body; @docsEditable true |
| + @JSName('body') |
| + Element $dom_body; |
| - /// @domName Selection.baseOffset; @docsEditable true |
| - final int baseOffset; |
| + /// @domName Document.charset; @docsEditable true |
| + String charset; |
| - /// @domName Selection.extentNode; @docsEditable true |
| - final Node extentNode; |
| + /// @domName Document.cookie; @docsEditable true |
| + String cookie; |
| - /// @domName Selection.extentOffset; @docsEditable true |
| - final int extentOffset; |
| + /// Returns the [Window] associated with the document. |
| + /// @domName Document.defaultView; @docsEditable true |
| + Window get window => _convertNativeToDart_Window(this._window); |
| + @JSName('defaultView') |
| + @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
| + final dynamic _window; |
| - /// @domName Selection.focusNode; @docsEditable true |
| - final Node focusNode; |
| + /// @domName Document.documentElement; @docsEditable true |
| + final Element documentElement; |
| - /// @domName Selection.focusOffset; @docsEditable true |
| - final int focusOffset; |
| + /// @domName Document.domain; @docsEditable true |
| + final String domain; |
| - /// @domName Selection.isCollapsed; @docsEditable true |
| - final bool isCollapsed; |
| + /// @domName Document.head; @docsEditable true |
| + @JSName('head') |
| + final HeadElement $dom_head; |
| - /// @domName Selection.rangeCount; @docsEditable true |
| - final int rangeCount; |
| + /// @domName Document.implementation; @docsEditable true |
| + final DomImplementation implementation; |
| - /// @domName Selection.type; @docsEditable true |
| - final String type; |
| + /// @domName Document.lastModified; @docsEditable true |
| + @JSName('lastModified') |
| + final String $dom_lastModified; |
| - /// @domName Selection.addRange; @docsEditable true |
| - void addRange(Range range) native; |
| + /// @domName Document.preferredStylesheetSet; @docsEditable true |
| + final String preferredStylesheetSet; |
| - /// @domName Selection.collapse; @docsEditable true |
| - void collapse(Node node, int index) native; |
| + /// @domName Document.readyState; @docsEditable true |
| + final String readyState; |
| - /// @domName Selection.collapseToEnd; @docsEditable true |
| - void collapseToEnd() native; |
| + /// @domName Document.referrer; @docsEditable true |
| + @JSName('referrer') |
| + final String $dom_referrer; |
| - /// @domName Selection.collapseToStart; @docsEditable true |
| - void collapseToStart() native; |
| + /// @domName Document.selectedStylesheetSet; @docsEditable true |
| + String selectedStylesheetSet; |
| - /// @domName Selection.containsNode; @docsEditable true |
| - bool containsNode(Node node, bool allowPartial) native; |
| + /// @domName Document.styleSheets; @docsEditable true |
| + @JSName('styleSheets') |
| + @Returns('_StyleSheetList') @Creates('_StyleSheetList') |
| + final List<StyleSheet> $dom_styleSheets; |
| - /// @domName Selection.deleteFromDocument; @docsEditable true |
| - void deleteFromDocument() native; |
| + /// @domName Document.title; @docsEditable true |
| + @JSName('title') |
| + String $dom_title; |
| - /// @domName Selection.empty; @docsEditable true |
| - void empty() native; |
| + /// @domName Document.webkitFullscreenElement; @docsEditable true |
| + @JSName('webkitFullscreenElement') |
| + final Element $dom_webkitFullscreenElement; |
| - /// @domName Selection.extend; @docsEditable true |
| - void extend(Node node, int offset) native; |
| + /// @domName Document.webkitFullscreenEnabled; @docsEditable true |
| + @JSName('webkitFullscreenEnabled') |
| + final bool $dom_webkitFullscreenEnabled; |
| - /// @domName Selection.getRangeAt; @docsEditable true |
| - Range getRangeAt(int index) native; |
| + /// @domName Document.webkitHidden; @docsEditable true |
| + @JSName('webkitHidden') |
| + final bool $dom_webkitHidden; |
| - /// @domName Selection.modify; @docsEditable true |
| - void modify(String alter, String direction, String granularity) native; |
| + /// @domName Document.webkitIsFullScreen; @docsEditable true |
| + @JSName('webkitIsFullScreen') |
| + final bool $dom_webkitIsFullScreen; |
| - /// @domName Selection.removeAllRanges; @docsEditable true |
| - void removeAllRanges() native; |
| + /// @domName Document.webkitPointerLockElement; @docsEditable true |
| + @JSName('webkitPointerLockElement') |
| + final Element $dom_webkitPointerLockElement; |
| - /// @domName Selection.selectAllChildren; @docsEditable true |
| - void selectAllChildren(Node node) native; |
| + /// @domName Document.webkitVisibilityState; @docsEditable true |
| + @JSName('webkitVisibilityState') |
| + final String $dom_webkitVisibilityState; |
| - /// @domName Selection.setBaseAndExtent; @docsEditable true |
| - void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) native; |
| + /// @domName Document.caretRangeFromPoint; @docsEditable true |
| + @JSName('caretRangeFromPoint') |
| + Range $dom_caretRangeFromPoint(int x, int y) native; |
| - /// @domName Selection.setPosition; @docsEditable true |
| - void setPosition(Node node, int offset) native; |
| + /// @domName Document.createCDATASection; @docsEditable true |
| + @JSName('createCDATASection') |
| + CDataSection createCDataSection(String data) native; |
| - /// @domName Selection.toString; @docsEditable true |
| - String toString() 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. |
| + /// @domName Document.createDocumentFragment; @docsEditable true |
| + DocumentFragment createDocumentFragment() native; |
| + /// @domName Document.createElement; @docsEditable true |
| + @JSName('createElement') |
| + Element $dom_createElement(String tagName) native; |
| -/// @domName DOMSettableTokenList; @docsEditable true |
| -class DOMSettableTokenList extends DOMTokenList native "*DOMSettableTokenList" { |
| + /// @domName Document.createElementNS; @docsEditable true |
| + @JSName('createElementNS') |
| + Element $dom_createElementNS(String namespaceURI, String qualifiedName) native; |
| - /// @domName DOMSettableTokenList.value; @docsEditable true |
| - String value; |
| -} |
| -// 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. |
| + /// @domName Document.createEvent; @docsEditable true |
| + @JSName('createEvent') |
| + Event $dom_createEvent(String eventType) native; |
| + /// @domName Document.createRange; @docsEditable true |
| + Range createRange() native; |
| -/// @domName DOMStringMap |
| -abstract class DOMStringMap { |
| -} |
| -// 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. |
| + /// @domName Document.createTextNode; @docsEditable true |
| + @JSName('createTextNode') |
| + Text $dom_createTextNode(String data) native; |
| + /// @domName Document.createTouch; @docsEditable true |
| + Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num webkitRotationAngle, num webkitForce) { |
| + var target_1 = _convertDartToNative_EventTarget(target); |
| + return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
| + } |
| + @JSName('createTouch') |
| + Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) native; |
| -/// @domName DOMTokenList; @docsEditable true |
| -class DOMTokenList native "*DOMTokenList" { |
| + /// @domName Document.createTouchList; @docsEditable true |
| + @JSName('createTouchList') |
| + TouchList $dom_createTouchList() native; |
| - /// @domName DOMTokenList.length; @docsEditable true |
| - final int length; |
| + /// @domName Document.elementFromPoint; @docsEditable true |
| + @JSName('elementFromPoint') |
| + Element $dom_elementFromPoint(int x, int y) native; |
| - /// @domName DOMTokenList.contains; @docsEditable true |
| - bool contains(String token) native; |
| + /// @domName Document.execCommand; @docsEditable true |
| + bool execCommand(String command, bool userInterface, String value) native; |
| - /// @domName DOMTokenList.item; @docsEditable true |
| - String item(int index) native; |
| + /// @domName Document.getCSSCanvasContext; @docsEditable true |
| + @JSName('getCSSCanvasContext') |
| + CanvasRenderingContext getCssCanvasContext(String contextId, String name, int width, int height) native; |
| - /// @domName DOMTokenList.toString; @docsEditable true |
| - String toString() native; |
| + /// @domName Document.getElementById; @docsEditable true |
| + @JSName('getElementById') |
| + Element $dom_getElementById(String elementId) native; |
| - /// @domName DOMTokenList.toggle; @docsEditable true |
| - bool toggle(String token, [bool force]) 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. |
| + /// @domName Document.getElementsByClassName; @docsEditable true |
| + @JSName('getElementsByClassName') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_getElementsByClassName(String tagname) native; |
| + /// @domName Document.getElementsByName; @docsEditable true |
| + @JSName('getElementsByName') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_getElementsByName(String elementName) native; |
| -/// @domName HTMLDataListElement; @docsEditable true |
| -class DataListElement extends Element implements Element native "*HTMLDataListElement" { |
| + /// @domName Document.getElementsByTagName; @docsEditable true |
| + @JSName('getElementsByTagName') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_getElementsByTagName(String tagname) native; |
| - factory DataListElement() => document.$dom_createElement("datalist"); |
| + /// @domName Document.queryCommandEnabled; @docsEditable true |
| + bool queryCommandEnabled(String command) native; |
| - /// @domName HTMLDataListElement.options; @docsEditable true |
| - final HTMLCollection options; |
| -} |
| -// 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. |
| + /// @domName Document.queryCommandIndeterm; @docsEditable true |
| + bool queryCommandIndeterm(String command) native; |
| + /// @domName Document.queryCommandState; @docsEditable true |
| + bool queryCommandState(String command) native; |
| -/// @domName DataTransferItem; @docsEditable true |
| -class DataTransferItem native "*DataTransferItem" { |
| + /// @domName Document.queryCommandSupported; @docsEditable true |
| + bool queryCommandSupported(String command) native; |
| - /// @domName DataTransferItem.kind; @docsEditable true |
| - final String kind; |
| + /// @domName Document.queryCommandValue; @docsEditable true |
| + String queryCommandValue(String command) native; |
| - /// @domName DataTransferItem.type; @docsEditable true |
| - final String type; |
| + /// @domName Document.querySelector; @docsEditable true |
| + @JSName('querySelector') |
| + Element $dom_querySelector(String selectors) native; |
| - /// @domName DataTransferItem.getAsFile; @docsEditable true |
| - Blob getAsFile() native; |
| + /// @domName Document.querySelectorAll; @docsEditable true |
| + @JSName('querySelectorAll') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_querySelectorAll(String selectors) native; |
| - /// @domName DataTransferItem.getAsString; @docsEditable true |
| - void getAsString([StringCallback callback]) native; |
| + /// @domName Document.webkitCancelFullScreen; @docsEditable true |
| + @JSName('webkitCancelFullScreen') |
| + void $dom_webkitCancelFullScreen() native; |
| - /// @domName DataTransferItem.webkitGetAsEntry; @docsEditable true |
| - Entry webkitGetAsEntry() 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. |
| + /// @domName Document.webkitExitFullscreen; @docsEditable true |
| + @JSName('webkitExitFullscreen') |
| + void $dom_webkitExitFullscreen() native; |
| + |
| + /// @domName Document.webkitExitPointerLock; @docsEditable true |
| + @JSName('webkitExitPointerLock') |
| + void $dom_webkitExitPointerLock() native; |
| -/// @domName DataTransferItemList; @docsEditable true |
| -class DataTransferItemList native "*DataTransferItemList" { |
| + /** |
| + * Finds the first descendant element of this document that matches the |
| + * specified group of selectors. |
| + * |
| + * Unless your webpage contains multiple documents, the top-level query |
| + * method behaves the same as this method, so you should use it instead to |
| + * save typing a few characters. |
| + * |
| + * [selectors] should be a string using CSS selector syntax. |
| + * var element1 = document.query('.className'); |
| + * var element2 = document.query('#id'); |
| + * |
| + * For details about CSS selector syntax, see the |
| + * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| + */ |
| + Element query(String selectors) { |
| + // It is fine for our RegExp to detect element id query selectors to have |
| + // false negatives but not false positives. |
| + if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) { |
| + return $dom_getElementById(selectors.substring(1)); |
| + } |
| + return $dom_querySelector(selectors); |
| + } |
| - /// @domName DataTransferItemList.length; @docsEditable true |
| - final int length; |
| + /** |
| + * Finds all descendant elements of this document that match the specified |
| + * group of selectors. |
| + * |
| + * Unless your webpage contains multiple documents, the top-level queryAll |
| + * method behaves the same as this method, so you should use it instead to |
| + * save typing a few characters. |
| + * |
| + * [selectors] should be a string using CSS selector syntax. |
| + * var items = document.queryAll('.itemClassName'); |
| + * |
| + * For details about CSS selector syntax, see the |
| + * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| + */ |
| + List<Element> queryAll(String selectors) { |
| + if (new RegExp("""^\\[name=["'][^'"]+['"]\\]\$""").hasMatch(selectors)) { |
| + final mutableMatches = $dom_getElementsByName( |
| + selectors.substring(7,selectors.length - 2)); |
| + int len = mutableMatches.length; |
| + final copyOfMatches = new List<Element>(len); |
| + for (int i = 0; i < len; ++i) { |
| + copyOfMatches[i] = mutableMatches[i]; |
| + } |
| + return new _FrozenElementList._wrap(copyOfMatches); |
| + } else if (new RegExp("^[*a-zA-Z0-9]+\$").hasMatch(selectors)) { |
| + final mutableMatches = $dom_getElementsByTagName(selectors); |
| + int len = mutableMatches.length; |
| + final copyOfMatches = new List<Element>(len); |
| + for (int i = 0; i < len; ++i) { |
| + copyOfMatches[i] = mutableMatches[i]; |
| + } |
| + return new _FrozenElementList._wrap(copyOfMatches); |
| + } else { |
| + return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| + } |
| + } |
| +} |
| - /// @domName DataTransferItemList.add; @docsEditable true |
| - void add(data_OR_file, [String type]) native; |
| +class DocumentEvents extends ElementEvents { |
| + DocumentEvents(EventTarget _ptr) : super(_ptr); |
| - /// @domName DataTransferItemList.clear; @docsEditable true |
| - void clear() native; |
| + EventListenerList get readyStateChange => this['readystatechange']; |
| - /// @domName DataTransferItemList.item; @docsEditable true |
| - DataTransferItem item(int index) native; |
| + EventListenerList get selectionChange => this['selectionchange']; |
| + |
| + EventListenerList get pointerLockChange => this['webkitpointerlockchange']; |
| + |
| + EventListenerList get pointerLockError => this['webkitpointerlockerror']; |
| } |
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| +// Copyright (c) 2011, 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 DataView; @docsEditable true |
| -class DataView extends ArrayBufferView native "*DataView" { |
| +Future<CssStyleDeclaration> _emptyStyleFuture() { |
| + return _createMeasurementFuture(() => new Element.tag('div').style, |
| + new Completer<CssStyleDeclaration>()); |
| +} |
| - factory DataView(ArrayBuffer buffer, [int byteOffset, int byteLength]) { |
| - if (!?byteOffset) { |
| - return _DataViewFactoryProvider.createDataView(buffer); |
| - } |
| - if (!?byteLength) { |
| - return _DataViewFactoryProvider.createDataView(buffer, byteOffset); |
| - } |
| - return _DataViewFactoryProvider.createDataView(buffer, byteOffset, byteLength); |
| +class _FrozenCssClassSet extends CssClassSet { |
| + void writeClasses(Set s) { |
| + throw new UnsupportedError( |
| + 'frozen class set cannot be modified'); |
| } |
| + Set<String> readClasses() => new Set<String>(); |
| - /// @domName DataView.getFloat32; @docsEditable true |
| - num getFloat32(int byteOffset, {bool littleEndian}) native; |
| + bool get frozen => true; |
| +} |
| - /// @domName DataView.getFloat64; @docsEditable true |
| - num getFloat64(int byteOffset, {bool littleEndian}) native; |
| +/// @domName DocumentFragment |
| +class DocumentFragment extends Node native "*DocumentFragment" { |
| + factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentFragment(); |
| - /// @domName DataView.getInt16; @docsEditable true |
| - int getInt16(int byteOffset, {bool littleEndian}) native; |
| + factory DocumentFragment.html(String html) => |
| + _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); |
| - /// @domName DataView.getInt32; @docsEditable true |
| - int getInt32(int byteOffset, {bool littleEndian}) native; |
| + factory DocumentFragment.svg(String svgContent) => |
| + _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); |
| - /// @domName DataView.getInt8; @docsEditable true |
| - int getInt8(int byteOffset) native; |
| + List<Element> get elements => this.children; |
| - /// @domName DataView.getUint16; @docsEditable true |
| - int getUint16(int byteOffset, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.getUint32; @docsEditable true |
| - int getUint32(int byteOffset, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.getUint8; @docsEditable true |
| - int getUint8(int byteOffset) native; |
| - |
| - /// @domName DataView.setFloat32; @docsEditable true |
| - void setFloat32(int byteOffset, num value, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.setFloat64; @docsEditable true |
| - void setFloat64(int byteOffset, num value, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.setInt16; @docsEditable true |
| - void setInt16(int byteOffset, int value, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.setInt32; @docsEditable true |
| - void setInt32(int byteOffset, int value, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.setInt8; @docsEditable true |
| - void setInt8(int byteOffset, int value) native; |
| - |
| - /// @domName DataView.setUint16; @docsEditable true |
| - void setUint16(int byteOffset, int value, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.setUint32; @docsEditable true |
| - void setUint32(int byteOffset, int value, {bool littleEndian}) native; |
| - |
| - /// @domName DataView.setUint8; @docsEditable true |
| - void setUint8(int byteOffset, int value) 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. |
| - |
| - |
| -/// @domName Database; @docsEditable true |
| -class Database native "*Database" { |
| - |
| - /// @domName Database.version; @docsEditable true |
| - final String version; |
| - |
| - /// @domName Database.changeVersion; @docsEditable true |
| - void changeVersion(String oldVersion, String newVersion, [SQLTransactionCallback callback, SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; |
| - |
| - /// @domName Database.readTransaction; @docsEditable true |
| - void readTransaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) native; |
| - |
| - /// @domName Database.transaction; @docsEditable true |
| - void transaction(SQLTransactionCallback callback, [SQLTransactionErrorCallback errorCallback, VoidCallback successCallback]) 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. |
| - |
| -// WARNING: Do not edit - generated code. |
| - |
| - |
| -typedef void DatabaseCallback(database); |
| -// 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. |
| - |
| - |
| -/// @domName DatabaseSync; @docsEditable true |
| -class DatabaseSync native "*DatabaseSync" { |
| - |
| - /// @domName DatabaseSync.lastErrorMessage; @docsEditable true |
| - final String lastErrorMessage; |
| - |
| - /// @domName DatabaseSync.version; @docsEditable true |
| - final String version; |
| - |
| - /// @domName DatabaseSync.changeVersion; @docsEditable true |
| - void changeVersion(String oldVersion, String newVersion, [SQLTransactionSyncCallback callback]) native; |
| - |
| - /// @domName DatabaseSync.readTransaction; @docsEditable true |
| - void readTransaction(SQLTransactionSyncCallback callback) native; |
| - |
| - /// @domName DatabaseSync.transaction; @docsEditable true |
| - void transaction(SQLTransactionSyncCallback callback) 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. |
| - |
| - |
| -/// @domName DedicatedWorkerContext; @docsEditable true |
| -class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerContext" { |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - DedicatedWorkerContextEvents get on => |
| - new DedicatedWorkerContextEvents(this); |
| - |
| - /// @domName DedicatedWorkerContext.postMessage; @docsEditable true |
| - void postMessage(/*any*/ message, [List messagePorts]) { |
| - if (?messagePorts) { |
| - var message_1 = convertDartToNative_SerializedScriptValue(message); |
| - _postMessage_1(message_1, messagePorts); |
| - return; |
| - } |
| - var message_2 = convertDartToNative_SerializedScriptValue(message); |
| - _postMessage_2(message_2); |
| - return; |
| - } |
| - @JSName('postMessage') |
| - void _postMessage_1(message, List messagePorts) native; |
| - @JSName('postMessage') |
| - void _postMessage_2(message) native; |
| -} |
| - |
| -class DedicatedWorkerContextEvents extends WorkerContextEvents { |
| - DedicatedWorkerContextEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get message => this['message']; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName HTMLDetailsElement; @docsEditable true |
| -class DetailsElement extends Element implements Element native "*HTMLDetailsElement" { |
| - |
| - factory DetailsElement() => document.$dom_createElement("details"); |
| - |
| - /// @domName HTMLDetailsElement.open; @docsEditable true |
| - bool open; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName DeviceMotionEvent; @docsEditable true |
| -class DeviceMotionEvent extends Event native "*DeviceMotionEvent" { |
| - |
| - /// @domName DeviceMotionEvent.interval; @docsEditable true |
| - final num interval; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName DeviceOrientationEvent; @docsEditable true |
| -class DeviceOrientationEvent extends Event native "*DeviceOrientationEvent" { |
| - |
| - /// @domName DeviceOrientationEvent.absolute; @docsEditable true |
| - final bool absolute; |
| - |
| - /// @domName DeviceOrientationEvent.alpha; @docsEditable true |
| - final num alpha; |
| - |
| - /// @domName DeviceOrientationEvent.beta; @docsEditable true |
| - final num beta; |
| - |
| - /// @domName DeviceOrientationEvent.gamma; @docsEditable true |
| - final num gamma; |
| - |
| - /// @domName DeviceOrientationEvent.initDeviceOrientationEvent; @docsEditable true |
| - void initDeviceOrientationEvent(String type, bool bubbles, bool cancelable, num alpha, num beta, num gamma, bool absolute) 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. |
| - |
| - |
| -/// @domName HTMLDirectoryElement; @docsEditable true |
| -class DirectoryElement extends Element implements Element native "*HTMLDirectoryElement" { |
| - |
| - /// @domName HTMLDirectoryElement.compact; @docsEditable true |
| - bool compact; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName DirectoryEntry; @docsEditable true |
| -class DirectoryEntry extends Entry native "*DirectoryEntry" { |
| - |
| - /// @domName DirectoryEntry.createReader; @docsEditable true |
| - DirectoryReader createReader() native; |
| - |
| - /// @domName DirectoryEntry.getDirectory; @docsEditable true |
| - void getDirectory(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) { |
| - if (?errorCallback) { |
| - var options_1 = convertDartToNative_Dictionary(options); |
| - _getDirectory_1(path, options_1, successCallback, errorCallback); |
| - return; |
| - } |
| - if (?successCallback) { |
| - var options_2 = convertDartToNative_Dictionary(options); |
| - _getDirectory_2(path, options_2, successCallback); |
| - return; |
| - } |
| - if (?options) { |
| - var options_3 = convertDartToNative_Dictionary(options); |
| - _getDirectory_3(path, options_3); |
| - return; |
| - } |
| - _getDirectory_4(path); |
| - return; |
| - } |
| - @JSName('getDirectory') |
| - void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallback errorCallback) native; |
| - @JSName('getDirectory') |
| - void _getDirectory_2(path, options, EntryCallback successCallback) native; |
| - @JSName('getDirectory') |
| - void _getDirectory_3(path, options) native; |
| - @JSName('getDirectory') |
| - void _getDirectory_4(path) native; |
| - |
| - /// @domName DirectoryEntry.getFile; @docsEditable true |
| - void getFile(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) { |
| - if (?errorCallback) { |
| - var options_1 = convertDartToNative_Dictionary(options); |
| - _getFile_1(path, options_1, successCallback, errorCallback); |
| - return; |
| - } |
| - if (?successCallback) { |
| - var options_2 = convertDartToNative_Dictionary(options); |
| - _getFile_2(path, options_2, successCallback); |
| - return; |
| - } |
| - if (?options) { |
| - var options_3 = convertDartToNative_Dictionary(options); |
| - _getFile_3(path, options_3); |
| - return; |
| - } |
| - _getFile_4(path); |
| - return; |
| - } |
| - @JSName('getFile') |
| - void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback errorCallback) native; |
| - @JSName('getFile') |
| - void _getFile_2(path, options, EntryCallback successCallback) native; |
| - @JSName('getFile') |
| - void _getFile_3(path, options) native; |
| - @JSName('getFile') |
| - void _getFile_4(path) native; |
| - |
| - /// @domName DirectoryEntry.removeRecursively; @docsEditable true |
| - void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback]) 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. |
| - |
| - |
| -/// @domName DirectoryEntrySync; @docsEditable true |
| -class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { |
| - |
| - /// @domName DirectoryEntrySync.createReader; @docsEditable true |
| - DirectoryReaderSync createReader() native; |
| - |
| - /// @domName DirectoryEntrySync.getDirectory; @docsEditable true |
| - DirectoryEntrySync getDirectory(String path, Map flags) { |
| - var flags_1 = convertDartToNative_Dictionary(flags); |
| - return _getDirectory_1(path, flags_1); |
| - } |
| - @JSName('getDirectory') |
| - DirectoryEntrySync _getDirectory_1(path, flags) native; |
| - |
| - /// @domName DirectoryEntrySync.getFile; @docsEditable true |
| - FileEntrySync getFile(String path, Map flags) { |
| - var flags_1 = convertDartToNative_Dictionary(flags); |
| - return _getFile_1(path, flags_1); |
| - } |
| - @JSName('getFile') |
| - FileEntrySync _getFile_1(path, flags) native; |
| - |
| - /// @domName DirectoryEntrySync.removeRecursively; @docsEditable true |
| - void removeRecursively() 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. |
| - |
| - |
| -/// @domName DirectoryReader; @docsEditable true |
| -class DirectoryReader native "*DirectoryReader" { |
| - |
| - /// @domName DirectoryReader.readEntries; @docsEditable true |
| - void readEntries(EntriesCallback successCallback, [ErrorCallback errorCallback]) 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. |
| - |
| - |
| -/// @domName DirectoryReaderSync; @docsEditable true |
| -class DirectoryReaderSync native "*DirectoryReaderSync" { |
| - |
| - /// @domName DirectoryReaderSync.readEntries; @docsEditable true |
| - @Returns('_EntryArraySync') @Creates('_EntryArraySync') |
| - List<EntrySync> readEntries() 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. |
| - |
| - |
| -/** |
| - * Represents an HTML <div> element. |
| - * |
| - * The [DivElement] is a generic container for content and does not have any |
| - * special significance. It is functionally similar to [SpanElement]. |
| - * |
| - * The [DivElement] is a block-level element, as opposed to [SpanElement], |
| - * which is an inline-level element. |
| - * |
| - * Example usage: |
| - * |
| - * DivElement div = new DivElement(); |
| - * div.text = 'Here's my new DivElem |
| - * document.body.elements.add(elem); |
| - * |
| - * See also: |
| - * |
| - * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. |
| - * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) from W3C. |
| - * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes) from W3C. |
| - */ |
| -/// @domName HTMLDivElement; @docsEditable true |
| -class DivElement extends Element implements Element native "*HTMLDivElement" { |
| - |
| - factory DivElement() => document.$dom_createElement("div"); |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName Document |
| -/** |
| - * The base class for all documents. |
| - * |
| - * Each web page loaded in the browser has its own [Document] object, which is |
| - * typically an [HtmlDocument]. |
| - * |
| - * If you aren't comfortable with DOM concepts, see the Dart tutorial |
| - * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connect-dart-html/). |
| - */ |
| -class Document extends Node native "*Document" |
| -{ |
| - |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - DocumentEvents get on => |
| - new DocumentEvents(this); |
| - |
| - /// @domName Document.body; @docsEditable true |
| - @JSName('body') |
| - Element $dom_body; |
| - |
| - /// @domName Document.charset; @docsEditable true |
| - String charset; |
| - |
| - /// @domName Document.cookie; @docsEditable true |
| - String cookie; |
| - |
| - /// Returns the [Window] associated with the document. |
| - /// @domName Document.defaultView; @docsEditable true |
| - Window get window => _convertNativeToDart_Window(this._window); |
| - @JSName('defaultView') |
| - @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
| - final dynamic _window; |
| - |
| - /// @domName Document.documentElement; @docsEditable true |
| - final Element documentElement; |
| - |
| - /// @domName Document.domain; @docsEditable true |
| - final String domain; |
| - |
| - /// @domName Document.head; @docsEditable true |
| - @JSName('head') |
| - final HeadElement $dom_head; |
| - |
| - /// @domName Document.implementation; @docsEditable true |
| - final DOMImplementation implementation; |
| - |
| - /// @domName Document.lastModified; @docsEditable true |
| - @JSName('lastModified') |
| - final String $dom_lastModified; |
| - |
| - /// @domName Document.preferredStylesheetSet; @docsEditable true |
| - final String preferredStylesheetSet; |
| - |
| - /// @domName Document.readyState; @docsEditable true |
| - final String readyState; |
| - |
| - /// @domName Document.referrer; @docsEditable true |
| - @JSName('referrer') |
| - final String $dom_referrer; |
| - |
| - /// @domName Document.selectedStylesheetSet; @docsEditable true |
| - String selectedStylesheetSet; |
| - |
| - /// @domName Document.styleSheets; @docsEditable true |
| - @JSName('styleSheets') |
| - @Returns('_StyleSheetList') @Creates('_StyleSheetList') |
| - final List<StyleSheet> $dom_styleSheets; |
| - |
| - /// @domName Document.title; @docsEditable true |
| - @JSName('title') |
| - String $dom_title; |
| - |
| - /// @domName Document.webkitFullscreenElement; @docsEditable true |
| - @JSName('webkitFullscreenElement') |
| - final Element $dom_webkitFullscreenElement; |
| - |
| - /// @domName Document.webkitFullscreenEnabled; @docsEditable true |
| - @JSName('webkitFullscreenEnabled') |
| - final bool $dom_webkitFullscreenEnabled; |
| - |
| - /// @domName Document.webkitHidden; @docsEditable true |
| - @JSName('webkitHidden') |
| - final bool $dom_webkitHidden; |
| - |
| - /// @domName Document.webkitIsFullScreen; @docsEditable true |
| - @JSName('webkitIsFullScreen') |
| - final bool $dom_webkitIsFullScreen; |
| - |
| - /// @domName Document.webkitPointerLockElement; @docsEditable true |
| - @JSName('webkitPointerLockElement') |
| - final Element $dom_webkitPointerLockElement; |
| - |
| - /// @domName Document.webkitVisibilityState; @docsEditable true |
| - @JSName('webkitVisibilityState') |
| - final String $dom_webkitVisibilityState; |
| - |
| - /// @domName Document.caretRangeFromPoint; @docsEditable true |
| - @JSName('caretRangeFromPoint') |
| - Range $dom_caretRangeFromPoint(int x, int y) native; |
| - |
| - /// @domName Document.createCDATASection; @docsEditable true |
| - @JSName('createCDATASection') |
| - CDATASection createCDataSection(String data) native; |
| - |
| - /// @domName Document.createDocumentFragment; @docsEditable true |
| - DocumentFragment createDocumentFragment() native; |
| - |
| - /// @domName Document.createElement; @docsEditable true |
| - @JSName('createElement') |
| - Element $dom_createElement(String tagName) native; |
| - |
| - /// @domName Document.createElementNS; @docsEditable true |
| - @JSName('createElementNS') |
| - Element $dom_createElementNS(String namespaceURI, String qualifiedName) native; |
| - |
| - /// @domName Document.createEvent; @docsEditable true |
| - @JSName('createEvent') |
| - Event $dom_createEvent(String eventType) native; |
| - |
| - /// @domName Document.createRange; @docsEditable true |
| - Range createRange() native; |
| - |
| - /// @domName Document.createTextNode; @docsEditable true |
| - @JSName('createTextNode') |
| - Text $dom_createTextNode(String data) native; |
| - |
| - /// @domName Document.createTouch; @docsEditable true |
| - Touch createTouch(LocalWindow window, EventTarget target, int identifier, int pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY, num webkitRotationAngle, num webkitForce) { |
| - var target_1 = _convertDartToNative_EventTarget(target); |
| - return _createTouch_1(window, target_1, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
| - } |
| - @JSName('createTouch') |
| - Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) native; |
| - |
| - /// @domName Document.createTouchList; @docsEditable true |
| - @JSName('createTouchList') |
| - TouchList $dom_createTouchList() native; |
| - |
| - /// @domName Document.elementFromPoint; @docsEditable true |
| - @JSName('elementFromPoint') |
| - Element $dom_elementFromPoint(int x, int y) native; |
| - |
| - /// @domName Document.execCommand; @docsEditable true |
| - bool execCommand(String command, bool userInterface, String value) native; |
| - |
| - /// @domName Document.getCSSCanvasContext; @docsEditable true |
| - @JSName('getCSSCanvasContext') |
| - CanvasRenderingContext getCssCanvasContext(String contextId, String name, int width, int height) native; |
| - |
| - /// @domName Document.getElementById; @docsEditable true |
| - @JSName('getElementById') |
| - Element $dom_getElementById(String elementId) native; |
| - |
| - /// @domName Document.getElementsByClassName; @docsEditable true |
| - @JSName('getElementsByClassName') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_getElementsByClassName(String tagname) native; |
| - |
| - /// @domName Document.getElementsByName; @docsEditable true |
| - @JSName('getElementsByName') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_getElementsByName(String elementName) native; |
| - |
| - /// @domName Document.getElementsByTagName; @docsEditable true |
| - @JSName('getElementsByTagName') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_getElementsByTagName(String tagname) native; |
| - |
| - /// @domName Document.queryCommandEnabled; @docsEditable true |
| - bool queryCommandEnabled(String command) native; |
| - |
| - /// @domName Document.queryCommandIndeterm; @docsEditable true |
| - bool queryCommandIndeterm(String command) native; |
| - |
| - /// @domName Document.queryCommandState; @docsEditable true |
| - bool queryCommandState(String command) native; |
| - |
| - /// @domName Document.queryCommandSupported; @docsEditable true |
| - bool queryCommandSupported(String command) native; |
| - |
| - /// @domName Document.queryCommandValue; @docsEditable true |
| - String queryCommandValue(String command) native; |
| - |
| - /// @domName Document.querySelector; @docsEditable true |
| - @JSName('querySelector') |
| - Element $dom_querySelector(String selectors) native; |
| - |
| - /// @domName Document.querySelectorAll; @docsEditable true |
| - @JSName('querySelectorAll') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_querySelectorAll(String selectors) native; |
| - |
| - /// @domName Document.webkitCancelFullScreen; @docsEditable true |
| - @JSName('webkitCancelFullScreen') |
| - void $dom_webkitCancelFullScreen() native; |
| - |
| - /// @domName Document.webkitExitFullscreen; @docsEditable true |
| - @JSName('webkitExitFullscreen') |
| - void $dom_webkitExitFullscreen() native; |
| - |
| - /// @domName Document.webkitExitPointerLock; @docsEditable true |
| - @JSName('webkitExitPointerLock') |
| - void $dom_webkitExitPointerLock() native; |
| - |
| - |
| - /** |
| - * Finds the first descendant element of this document that matches the |
| - * specified group of selectors. |
| - * |
| - * Unless your webpage contains multiple documents, the top-level query |
| - * method behaves the same as this method, so you should use it instead to |
| - * save typing a few characters. |
| - * |
| - * [selectors] should be a string using CSS selector syntax. |
| - * var element1 = document.query('.className'); |
| - * var element2 = document.query('#id'); |
| - * |
| - * For details about CSS selector syntax, see the |
| - * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| - */ |
| - Element query(String selectors) { |
| - // It is fine for our RegExp to detect element id query selectors to have |
| - // false negatives but not false positives. |
| - if (new RegExp("^#[_a-zA-Z]\\w*\$").hasMatch(selectors)) { |
| - return $dom_getElementById(selectors.substring(1)); |
| - } |
| - return $dom_querySelector(selectors); |
| - } |
| - |
| - /** |
| - * Finds all descendant elements of this document that match the specified |
| - * group of selectors. |
| - * |
| - * Unless your webpage contains multiple documents, the top-level queryAll |
| - * method behaves the same as this method, so you should use it instead to |
| - * save typing a few characters. |
| - * |
| - * [selectors] should be a string using CSS selector syntax. |
| - * var items = document.queryAll('.itemClassName'); |
| - * |
| - * For details about CSS selector syntax, see the |
| - * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| - */ |
| - List<Element> queryAll(String selectors) { |
| - if (new RegExp("""^\\[name=["'][^'"]+['"]\\]\$""").hasMatch(selectors)) { |
| - final mutableMatches = $dom_getElementsByName( |
| - selectors.substring(7,selectors.length - 2)); |
| - int len = mutableMatches.length; |
| - final copyOfMatches = new List<Element>(len); |
| - for (int i = 0; i < len; ++i) { |
| - copyOfMatches[i] = mutableMatches[i]; |
| - } |
| - return new _FrozenElementList._wrap(copyOfMatches); |
| - } else if (new RegExp("^[*a-zA-Z0-9]+\$").hasMatch(selectors)) { |
| - final mutableMatches = $dom_getElementsByTagName(selectors); |
| - int len = mutableMatches.length; |
| - final copyOfMatches = new List<Element>(len); |
| - for (int i = 0; i < len; ++i) { |
| - copyOfMatches[i] = mutableMatches[i]; |
| - } |
| - return new _FrozenElementList._wrap(copyOfMatches); |
| - } else { |
| - return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| - } |
| - } |
| -} |
| - |
| -class DocumentEvents extends ElementEvents { |
| - DocumentEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get readyStateChange => this['readystatechange']; |
| - |
| - EventListenerList get selectionChange => this['selectionchange']; |
| - |
| - EventListenerList get pointerLockChange => this['webkitpointerlockchange']; |
| - |
| - EventListenerList get pointerLockError => this['webkitpointerlockerror']; |
| -} |
| -// Copyright (c) 2011, 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. |
| - |
| - |
| -Future<CSSStyleDeclaration> _emptyStyleFuture() { |
| - return _createMeasurementFuture(() => new Element.tag('div').style, |
| - new Completer<CSSStyleDeclaration>()); |
| -} |
| - |
| -class _FrozenCssClassSet extends CssClassSet { |
| - void writeClasses(Set s) { |
| - throw new UnsupportedError( |
| - 'frozen class set cannot be modified'); |
| - } |
| - Set<String> readClasses() => new Set<String>(); |
| - |
| - bool get frozen => true; |
| -} |
| - |
| -/// @domName DocumentFragment |
| -class DocumentFragment extends Node native "*DocumentFragment" { |
| - factory DocumentFragment() => _DocumentFragmentFactoryProvider.createDocumentFragment(); |
| - |
| - factory DocumentFragment.html(String html) => |
| - _DocumentFragmentFactoryProvider.createDocumentFragment_html(html); |
| - |
| - factory DocumentFragment.svg(String svgContent) => |
| - _DocumentFragmentFactoryProvider.createDocumentFragment_svg(svgContent); |
| - |
| - List<Element> get elements => this.children; |
| - |
| - // TODO: The type of value should be Collection<Element>. See http://b/5392897 |
| - void set elements(value) { |
| - this.children = value; |
| - } |
| + // TODO: The type of value should be Collection<Element>. See http://b/5392897 |
| + void set elements(value) { |
| + this.children = value; |
| + } |
| // Native field is used only by Dart code so does not lead to instantiation |
| // of native classes |
| @@ -6479,10 +5952,10 @@ class DocumentFragment extends Node native "*DocumentFragment" { |
| Map<String, String> get attributes => const {}; |
| CssClassSet get classes => new _FrozenCssClassSet(); |
| Map<String, String> get dataAttributes => const {}; |
| - CSSStyleDeclaration get style => new Element.tag('div').style; |
| - Future<CSSStyleDeclaration> get computedStyle => |
| + CssStyleDeclaration get style => new Element.tag('div').style; |
| + Future<CssStyleDeclaration> get computedStyle => |
| _emptyStyleFuture(); |
| - Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) => |
| + Future<CssStyleDeclaration> getComputedStyle(String pseudoElement) => |
| _emptyStyleFuture(); |
| bool matchesSelector(String selectors) => false; |
| @@ -6643,1461 +6116,1488 @@ class DocumentType extends Node native "*DocumentType" { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName EXTTextureFilterAnisotropic; @docsEditable true |
| -class EXTTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { |
| - |
| - static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
| +/// @domName DOMError; @docsEditable true |
| +class DomError native "*DOMError" { |
| - static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
| + /// @domName DOMError.name; @docsEditable true |
| + final String name; |
| } |
| // 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. |
| -// TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| -// functionality. |
| -class _ChildrenElementList implements List { |
| - // Raw Element. |
| - final Element _element; |
| - final HTMLCollection _childElements; |
| +/// @domName DOMException; @docsEditable true |
| +class DomException native "*DOMException" { |
| - _ChildrenElementList._wrap(Element element) |
| - : _childElements = element.$dom_children, |
| - _element = element; |
| + static const int ABORT_ERR = 20; |
| - List<Element> _toList() { |
| - final output = new List(_childElements.length); |
| - for (int i = 0, len = _childElements.length; i < len; i++) { |
| - output[i] = _childElements[i]; |
| - } |
| - return output; |
| - } |
| + static const int DATA_CLONE_ERR = 25; |
| - bool contains(Element element) => _childElements.contains(element); |
| + static const int DOMSTRING_SIZE_ERR = 2; |
| - void forEach(void f(Element element)) { |
| - for (Element element in _childElements) { |
| - f(element); |
| - } |
| - } |
| + static const int HIERARCHY_REQUEST_ERR = 3; |
| - List<Element> filter(bool f(Element element)) { |
| - final output = []; |
| - forEach((Element element) { |
| - if (f(element)) { |
| - output.add(element); |
| - } |
| - }); |
| - return new _FrozenElementList._wrap(output); |
| - } |
| + static const int INDEX_SIZE_ERR = 1; |
| - bool every(bool f(Element element)) { |
| - for (Element element in this) { |
| - if (!f(element)) { |
| - return false; |
| - } |
| - }; |
| - return true; |
| - } |
| + static const int INUSE_ATTRIBUTE_ERR = 10; |
| - bool some(bool f(Element element)) { |
| - for (Element element in this) { |
| - if (f(element)) { |
| - return true; |
| - } |
| - }; |
| - return false; |
| - } |
| + static const int INVALID_ACCESS_ERR = 15; |
| - Collection map(f(Element element)) { |
| - final out = []; |
| - for (Element el in this) { |
| - out.add(f(el)); |
| - } |
| - return out; |
| - } |
| + static const int INVALID_CHARACTER_ERR = 5; |
| - bool get isEmpty { |
| - return _element.$dom_firstElementChild == null; |
| - } |
| + static const int INVALID_MODIFICATION_ERR = 13; |
| - int get length { |
| - return _childElements.length; |
| - } |
| + static const int INVALID_NODE_TYPE_ERR = 24; |
| - Element operator [](int index) { |
| - return _childElements[index]; |
| - } |
| + static const int INVALID_STATE_ERR = 11; |
| - void operator []=(int index, Element value) { |
| - _element.$dom_replaceChild(value, _childElements[index]); |
| - } |
| + static const int NAMESPACE_ERR = 14; |
| - void set length(int newLength) { |
| - // TODO(jacobr): remove children when length is reduced. |
| - throw new UnsupportedError(''); |
| - } |
| + static const int NETWORK_ERR = 19; |
| - Element add(Element value) { |
| - _element.$dom_appendChild(value); |
| - return value; |
| - } |
| + static const int NOT_FOUND_ERR = 8; |
| - Element addLast(Element value) => add(value); |
| + static const int NOT_SUPPORTED_ERR = 9; |
| - Iterator<Element> iterator() => _toList().iterator(); |
| + static const int NO_DATA_ALLOWED_ERR = 6; |
| - void addAll(Collection<Element> collection) { |
| - for (Element element in collection) { |
| - _element.$dom_appendChild(element); |
| - } |
| - } |
| + static const int NO_MODIFICATION_ALLOWED_ERR = 7; |
| + |
| + static const int QUOTA_EXCEEDED_ERR = 22; |
| + |
| + static const int SECURITY_ERR = 18; |
| + |
| + static const int SYNTAX_ERR = 12; |
| + |
| + static const int TIMEOUT_ERR = 23; |
| + |
| + static const int TYPE_MISMATCH_ERR = 17; |
| + |
| + static const int URL_MISMATCH_ERR = 21; |
| + |
| + static const int VALIDATION_ERR = 16; |
| + |
| + static const int WRONG_DOCUMENT_ERR = 4; |
| + |
| + /// @domName DOMException.code; @docsEditable true |
| + final int code; |
| + |
| + /// @domName DOMException.message; @docsEditable true |
| + final String message; |
| + |
| + /// @domName DOMException.name; @docsEditable true |
| + final String name; |
| + |
| + /// @domName DOMException.toString; @docsEditable true |
| + String toString() 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. |
| + |
| + |
| +/// @domName DOMImplementation; @docsEditable true |
| +class DomImplementation native "*DOMImplementation" { |
| + |
| + /// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true |
| + @JSName('createCSSStyleSheet') |
| + CssStyleSheet createCssStyleSheet(String title, String media) native; |
| + |
| + /// @domName DOMImplementation.createDocument; @docsEditable true |
| + Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) native; |
| + |
| + /// @domName DOMImplementation.createDocumentType; @docsEditable true |
| + DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native; |
| + |
| + /// @domName DOMImplementation.createHTMLDocument; @docsEditable true |
| + @JSName('createHTMLDocument') |
| + HtmlDocument createHtmlDocument(String title) native; |
| + |
| + /// @domName DOMImplementation.hasFeature; @docsEditable true |
| + bool hasFeature(String feature, String version) 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. |
| - void sort([Comparator<Element> compare = Comparable.compare]) { |
| - throw new UnsupportedError('TODO(jacobr): should we impl?'); |
| - } |
| - void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| - throw new UnimplementedError(); |
| - } |
| +/// @domName MimeType; @docsEditable true |
| +class DomMimeType native "*MimeType" { |
| - void removeRange(int start, int rangeLength) { |
| - throw new UnimplementedError(); |
| - } |
| + /// @domName MimeType.description; @docsEditable true |
| + final String description; |
| - void insertRange(int start, int rangeLength, [initialValue = null]) { |
| - throw new UnimplementedError(); |
| - } |
| + /// @domName MimeType.enabledPlugin; @docsEditable true |
| + final DomPlugin enabledPlugin; |
| - List getRange(int start, int rangeLength) => |
| - new _FrozenElementList._wrap(_Lists.getRange(this, start, rangeLength, |
| - [])); |
| + /// @domName MimeType.suffixes; @docsEditable true |
| + final String suffixes; |
| - int indexOf(Element element, [int start = 0]) { |
| - return _Lists.indexOf(this, element, start, this.length); |
| - } |
| + /// @domName MimeType.type; @docsEditable true |
| + final String type; |
| +} |
| +// 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. |
| - int lastIndexOf(Element element, [int start = null]) { |
| - if (start == null) start = length - 1; |
| - return _Lists.lastIndexOf(this, element, start); |
| - } |
| - void clear() { |
| - // It is unclear if we want to keep non element nodes? |
| - _element.text = ''; |
| - } |
| +/// @domName MimeTypeArray; @docsEditable true |
| +class DomMimeTypeArray implements JavaScriptIndexingBehavior, List<DomMimeType> native "*MimeTypeArray" { |
| - Element removeLast() { |
| - final result = this.last; |
| - if (result != null) { |
| - _element.$dom_removeChild(result); |
| - } |
| - return result; |
| - } |
| + /// @domName MimeTypeArray.length; @docsEditable true |
| + final int length; |
| - Element get first { |
| - return _element.$dom_firstElementChild; |
| + DomMimeType operator[](int index) => JS("DomMimeType", "#[#]", this, index); |
| + |
| + void operator[]=(int index, DomMimeType value) { |
| + throw new UnsupportedError("Cannot assign element of immutable List."); |
| } |
| + // -- start List<DomMimeType> mixins. |
| + // DomMimeType is the element type. |
| + // From Iterable<DomMimeType>: |
| - Element get last { |
| - return _element.$dom_lastElementChild; |
| + Iterator<DomMimeType> iterator() { |
| + // Note: NodeLists are not fixed size. And most probably length shouldn't |
| + // be cached in both iterator _and_ forEach method. For now caching it |
| + // for consistency. |
| + return new FixedSizeListIterator<DomMimeType>(this); |
| } |
| -} |
| - |
| -// TODO(jacobr): this is an inefficient implementation but it is hard to see |
| -// a better option given that we cannot quite force NodeList to be an |
| -// ElementList as there are valid cases where a NodeList JavaScript object |
| -// contains Node objects that are not Elements. |
| -class _FrozenElementList implements List { |
| - final List<Node> _nodeList; |
| - _FrozenElementList._wrap(this._nodeList); |
| + // From Collection<DomMimeType>: |
| - bool contains(Element element) { |
| - for (Element el in this) { |
| - if (el == element) return true; |
| - } |
| - return false; |
| + void add(DomMimeType value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void forEach(void f(Element element)) { |
| - for (Element el in this) { |
| - f(el); |
| - } |
| + void addLast(DomMimeType value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - Collection map(f(Element element)) { |
| - final out = []; |
| - for (Element el in this) { |
| - out.add(f(el)); |
| - } |
| - return out; |
| + void addAll(Collection<DomMimeType> collection) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - List<Element> filter(bool f(Element element)) { |
| - final out = []; |
| - for (Element el in this) { |
| - if (f(el)) out.add(el); |
| - } |
| - return out; |
| - } |
| + bool contains(DomMimeType element) => Collections.contains(this, element); |
| - bool every(bool f(Element element)) { |
| - for(Element element in this) { |
| - if (!f(element)) { |
| - return false; |
| - } |
| - }; |
| - return true; |
| - } |
| + void forEach(void f(DomMimeType element)) => Collections.forEach(this, f); |
| - bool some(bool f(Element element)) { |
| - for(Element element in this) { |
| - if (f(element)) { |
| - return true; |
| - } |
| - }; |
| - return false; |
| - } |
| + Collection map(f(DomMimeType element)) => Collections.map(this, [], f); |
| - bool get isEmpty => _nodeList.isEmpty; |
| + Collection<DomMimeType> filter(bool f(DomMimeType element)) => |
| + Collections.filter(this, <DomMimeType>[], f); |
| - int get length => _nodeList.length; |
| + bool every(bool f(DomMimeType element)) => Collections.every(this, f); |
| - Element operator [](int index) => _nodeList[index]; |
| + bool some(bool f(DomMimeType element)) => Collections.some(this, f); |
| - void operator []=(int index, Element value) { |
| - throw new UnsupportedError(''); |
| - } |
| + bool get isEmpty => this.length == 0; |
| - void set length(int newLength) { |
| - _nodeList.length = newLength; |
| - } |
| + // From List<DomMimeType>: |
| - void add(Element value) { |
| - throw new UnsupportedError(''); |
| + void sort([Comparator<DomMimeType> compare = Comparable.compare]) { |
| + throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - void addLast(Element value) { |
| - throw new UnsupportedError(''); |
| + int indexOf(DomMimeType element, [int start = 0]) => |
| + _Lists.indexOf(this, element, start, this.length); |
| + |
| + int lastIndexOf(DomMimeType element, [int start]) { |
| + if (start == null) start = length - 1; |
| + return _Lists.lastIndexOf(this, element, start); |
| } |
| - Iterator<Element> iterator() => new _FrozenElementListIterator(this); |
| + DomMimeType get first => this[0]; |
| - void addAll(Collection<Element> collection) { |
| - throw new UnsupportedError(''); |
| - } |
| + DomMimeType get last => this[length - 1]; |
| - void sort([Comparator<Element> compare = Comparable.compare]) { |
| - throw new UnsupportedError(''); |
| + DomMimeType removeLast() { |
| + throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| - throw new UnsupportedError(''); |
| + void setRange(int start, int rangeLength, List<DomMimeType> from, [int startFrom]) { |
| + throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| void removeRange(int start, int rangeLength) { |
| - throw new UnsupportedError(''); |
| + throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [initialValue = null]) { |
| - throw new UnsupportedError(''); |
| + void insertRange(int start, int rangeLength, [DomMimeType initialValue]) { |
| + throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<Element> getRange(int start, int rangeLength) => |
| - new _FrozenElementList._wrap(_nodeList.getRange(start, rangeLength)); |
| + List<DomMimeType> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <DomMimeType>[]); |
| - int indexOf(Element element, [int start = 0]) => |
| - _nodeList.indexOf(element, start); |
| + // -- end List<DomMimeType> mixins. |
| - int lastIndexOf(Element element, [int start = null]) => |
| - _nodeList.lastIndexOf(element, start); |
| + /// @domName MimeTypeArray.item; @docsEditable true |
| + DomMimeType item(int index) native; |
| - void clear() { |
| - throw new UnsupportedError(''); |
| - } |
| + /// @domName MimeTypeArray.namedItem; @docsEditable true |
| + DomMimeType namedItem(String name) 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. |
| - Element removeLast() { |
| - throw new UnsupportedError(''); |
| - } |
| - Element get first => _nodeList.first; |
| +/// @domName DOMParser; @docsEditable true |
| +class DomParser native "*DOMParser" { |
| - Element get last => _nodeList.last; |
| + factory DomParser() => _DomParserFactoryProvider.createDomParser(); |
| + |
| + /// @domName DOMParser.parseFromString; @docsEditable true |
| + Document parseFromString(String str, String contentType) 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. |
| -class _FrozenElementListIterator implements Iterator<Element> { |
| - final _FrozenElementList _list; |
| - int _index = 0; |
| - _FrozenElementListIterator(this._list); |
| +/// @domName Plugin; @docsEditable true |
| +class DomPlugin native "*Plugin" { |
| - /** |
| - * Gets the next element in the iteration. Throws a |
| - * [StateError("No more elements")] if no element is left. |
| - */ |
| - Element next() { |
| - if (!hasNext) { |
| - throw new StateError("No more elements"); |
| - } |
| + /// @domName Plugin.description; @docsEditable true |
| + final String description; |
| - return _list[_index++]; |
| - } |
| + /// @domName Plugin.filename; @docsEditable true |
| + final String filename; |
| - /** |
| - * Returns whether the [Iterator] has elements left. |
| - */ |
| - bool get hasNext => _index < _list.length; |
| -} |
| + /// @domName Plugin.length; @docsEditable true |
| + final int length; |
| -class _ElementCssClassSet extends CssClassSet { |
| + /// @domName Plugin.name; @docsEditable true |
| + final String name; |
| - final Element _element; |
| + /// @domName Plugin.item; @docsEditable true |
| + DomMimeType item(int index) native; |
| - _ElementCssClassSet(this._element); |
| + /// @domName Plugin.namedItem; @docsEditable true |
| + DomMimeType namedItem(String name) 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. |
| - Set<String> readClasses() { |
| - var s = new Set<String>(); |
| - var classname = _element.$dom_className; |
| - for (String name in classname.split(' ')) { |
| - String trimmed = name.trim(); |
| - if (!trimmed.isEmpty) { |
| - s.add(trimmed); |
| - } |
| - } |
| - return s; |
| - } |
| +/// @domName PluginArray; @docsEditable true |
| +class DomPluginArray implements JavaScriptIndexingBehavior, List<DomPlugin> native "*PluginArray" { |
| - void writeClasses(Set<String> s) { |
| - List list = new List.from(s); |
| - _element.$dom_className = Strings.join(list, ' '); |
| - } |
| -} |
| + /// @domName PluginArray.length; @docsEditable true |
| + final int length; |
| -/// @domName Element |
| -abstract class Element extends Node implements ElementTraversal native "*Element" { |
| + DomPlugin operator[](int index) => JS("DomPlugin", "#[#]", this, index); |
| - factory Element.html(String html) => |
| - _ElementFactoryProvider.createElement_html(html); |
| - factory Element.tag(String tag) => |
| - _ElementFactoryProvider.createElement_tag(tag); |
| + void operator[]=(int index, DomPlugin value) { |
| + throw new UnsupportedError("Cannot assign element of immutable List."); |
| + } |
| + // -- start List<DomPlugin> mixins. |
| + // DomPlugin is the element type. |
| - /** |
| - * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute, |
| - * Element.removeAttribute |
| - */ |
| - Map<String, String> get attributes => new _ElementAttributeMap(this); |
| + // From Iterable<DomPlugin>: |
| - void set attributes(Map<String, String> value) { |
| - Map<String, String> attributes = this.attributes; |
| - attributes.clear(); |
| - for (String key in value.keys) { |
| - attributes[key] = value[key]; |
| - } |
| + Iterator<DomPlugin> iterator() { |
| + // Note: NodeLists are not fixed size. And most probably length shouldn't |
| + // be cached in both iterator _and_ forEach method. For now caching it |
| + // for consistency. |
| + return new FixedSizeListIterator<DomPlugin>(this); |
| } |
| - /** |
| - * Deprecated, use innerHtml instead. |
| - */ |
| - String get innerHTML => this.innerHtml; |
| - void set innerHTML(String value) { |
| - this.innerHtml = value; |
| + // From Collection<DomPlugin>: |
| + |
| + void add(DomPlugin value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| + |
| + void addLast(DomPlugin value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void set elements(Collection<Element> value) { |
| - this.children = value; |
| + void addAll(Collection<DomPlugin> collection) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - /** |
| - * Deprecated, use [children] instead. |
| - */ |
| - List<Element> get elements => this.children; |
| + bool contains(DomPlugin element) => Collections.contains(this, element); |
| - /** |
| - * @domName childElementCount, firstElementChild, lastElementChild, |
| - * children, Node.nodes.add |
| - */ |
| - List<Element> get children => new _ChildrenElementList._wrap(this); |
| + void forEach(void f(DomPlugin element)) => Collections.forEach(this, f); |
| - void set children(Collection<Element> value) { |
| - // Copy list first since we don't want liveness during iteration. |
| - List copy = new List.from(value); |
| - var children = this.children; |
| - children.clear(); |
| - children.addAll(copy); |
| - } |
| + Collection map(f(DomPlugin element)) => Collections.map(this, [], f); |
| - Element query(String selectors) => $dom_querySelector(selectors); |
| + Collection<DomPlugin> filter(bool f(DomPlugin element)) => |
| + Collections.filter(this, <DomPlugin>[], f); |
| - List<Element> queryAll(String selectors) => |
| - new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| + bool every(bool f(DomPlugin element)) => Collections.every(this, f); |
| - /** @domName className, classList */ |
| - CssClassSet get classes => new _ElementCssClassSet(this); |
| + bool some(bool f(DomPlugin element)) => Collections.some(this, f); |
| - void set classes(Collection<String> value) { |
| - CssClassSet classSet = classes; |
| - classSet.clear(); |
| - classSet.addAll(value); |
| - } |
| + bool get isEmpty => this.length == 0; |
| - Map<String, String> get dataAttributes => |
| - new _DataAttributeMap(attributes); |
| + // From List<DomPlugin>: |
| - void set dataAttributes(Map<String, String> value) { |
| - final dataAttributes = this.dataAttributes; |
| - dataAttributes.clear(); |
| - for (String key in value.keys) { |
| - dataAttributes[key] = value[key]; |
| - } |
| + void sort([Comparator<DomPlugin> compare = Comparable.compare]) { |
| + throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - /** |
| - * Gets a map for manipulating the attributes of a particular namespace. |
| - * This is primarily useful for SVG attributes such as xref:link. |
| - */ |
| - Map<String, String> getNamespacedAttributes(String namespace) { |
| - return new _NamespacedAttributeMap(this, namespace); |
| - } |
| + int indexOf(DomPlugin element, [int start = 0]) => |
| + _Lists.indexOf(this, element, start, this.length); |
| - /** @domName Window.getComputedStyle */ |
| - Future<CSSStyleDeclaration> get computedStyle { |
| - // TODO(jacobr): last param should be null, see b/5045788 |
| - return getComputedStyle(''); |
| + int lastIndexOf(DomPlugin element, [int start]) { |
| + if (start == null) start = length - 1; |
| + return _Lists.lastIndexOf(this, element, start); |
| } |
| - /** @domName Window.getComputedStyle */ |
| - Future<CSSStyleDeclaration> getComputedStyle(String pseudoElement) { |
| - return _createMeasurementFuture( |
| - () => window.$dom_getComputedStyle(this, pseudoElement), |
| - new Completer<CSSStyleDeclaration>()); |
| + DomPlugin get first => this[0]; |
| + |
| + DomPlugin get last => this[length - 1]; |
| + |
| + DomPlugin removeLast() { |
| + throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - /** |
| - * Adds the specified element to after the last child of this. |
| - */ |
| - void append(Element e) { |
| - this.children.add(e); |
| + void setRange(int start, int rangeLength, List<DomPlugin> from, [int startFrom]) { |
| + throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| - /** |
| - * Adds the specified text as a text node after the last child of this. |
| - */ |
| - void appendText(String text) { |
| - this.insertAdjacentText('beforeend', text); |
| + void removeRange(int start, int rangeLength) { |
| + throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - /** |
| - * Parses the specified text as HTML and adds the resulting node after the |
| - * last child of this. |
| - */ |
| - void appendHtml(String text) { |
| - this.insertAdjacentHtml('beforeend', text); |
| + void insertRange(int start, int rangeLength, [DomPlugin initialValue]) { |
| + throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - // Hooks to support custom WebComponents. |
| - /** |
| - * Experimental support for [web components][wc]. This field stores a |
| - * reference to the component implementation. It was inspired by Mozilla's |
| - * [x-tags][] project. Please note: in the future it may be possible to |
| - * `extend Element` from your class, in which case this field will be |
| - * deprecated and will simply return this [Element] object. |
| - * |
| - * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html |
| - * [x-tags]: http://x-tags.org/ |
| - */ |
| - @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| - var xtag; |
| + List<DomPlugin> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <DomPlugin>[]); |
| - // TODO(vsm): Implement noSuchMethod or similar for dart2js. |
| + // -- end List<DomPlugin> mixins. |
| - /** @domName Element.insertAdjacentText */ |
| - void insertAdjacentText(String where, String text) { |
| - if (JS('bool', '!!#.insertAdjacentText', this)) { |
| - _insertAdjacentText(where, text); |
| - } else { |
| - _insertAdjacentNode(where, new Text(text)); |
| - } |
| - } |
| + /// @domName PluginArray.item; @docsEditable true |
| + DomPlugin item(int index) native; |
| - @JSName('insertAdjacentText') |
| - void _insertAdjacentText(String where, String text) native; |
| + /// @domName PluginArray.namedItem; @docsEditable true |
| + DomPlugin namedItem(String name) native; |
| - /** @domName Element.insertAdjacentHTML */ |
| - void insertAdjacentHtml(String where, String text) { |
| - if (JS('bool', '!!#.insertAdjacentHtml', this)) { |
| - _insertAdjacentHtml(where, text); |
| - } else { |
| - _insertAdjacentNode(where, new DocumentFragment.html(text)); |
| - } |
| - } |
| + /// @domName PluginArray.refresh; @docsEditable true |
| + void refresh(bool reload) 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. |
| - @JSName('insertAdjacentHTML') |
| - void _insertAdjacentHTML(String where, String text) native; |
| - /** @domName Element.insertAdjacentHTML */ |
| - Element insertAdjacentElement(String where, Element element) { |
| - if (JS('bool', '!!#.insertAdjacentElement', this)) { |
| - _insertAdjacentElement(where, element); |
| - } else { |
| - _insertAdjacentNode(where, element); |
| - } |
| - return element; |
| - } |
| +/// @domName Selection; @docsEditable true |
| +class DomSelection native "*Selection" { |
| - @JSName('insertAdjacentElement') |
| - void _insertAdjacentElement(String where, Element element) native; |
| + /// @domName Selection.anchorNode; @docsEditable true |
| + final Node anchorNode; |
| - void _insertAdjacentNode(String where, Node node) { |
| - switch (where.toLowerCase()) { |
| - case 'beforebegin': |
| - this.parent.insertBefore(node, this); |
| - break; |
| - case 'afterbegin': |
| - var first = this.nodes.length > 0 ? this.nodes[0] : null; |
| - this.insertBefore(node, first); |
| - break; |
| - case 'beforeend': |
| - this.nodes.add(node); |
| - break; |
| - case 'afterend': |
| - this.parent.insertBefore(node, this.nextNode); |
| - break; |
| - default: |
| - throw new ArgumentError("Invalid position ${where}"); |
| - } |
| - } |
| + /// @domName Selection.anchorOffset; @docsEditable true |
| + final int anchorOffset; |
| + /// @domName Selection.baseNode; @docsEditable true |
| + final Node baseNode; |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - ElementEvents get on => |
| - new ElementEvents(this); |
| + /// @domName Selection.baseOffset; @docsEditable true |
| + final int baseOffset; |
| - /// @domName HTMLElement.children; @docsEditable true |
| - @JSName('children') |
| - final HTMLCollection $dom_children; |
| + /// @domName Selection.extentNode; @docsEditable true |
| + final Node extentNode; |
| - /// @domName HTMLElement.contentEditable; @docsEditable true |
| - String contentEditable; |
| + /// @domName Selection.extentOffset; @docsEditable true |
| + final int extentOffset; |
| - /// @domName HTMLElement.dir; @docsEditable true |
| - String dir; |
| + /// @domName Selection.focusNode; @docsEditable true |
| + final Node focusNode; |
| - /// @domName HTMLElement.draggable; @docsEditable true |
| - bool draggable; |
| + /// @domName Selection.focusOffset; @docsEditable true |
| + final int focusOffset; |
| - /// @domName HTMLElement.hidden; @docsEditable true |
| - bool hidden; |
| + /// @domName Selection.isCollapsed; @docsEditable true |
| + final bool isCollapsed; |
| - /// @domName HTMLElement.id; @docsEditable true |
| - String id; |
| + /// @domName Selection.rangeCount; @docsEditable true |
| + final int rangeCount; |
| - /// @domName HTMLElement.innerHTML; @docsEditable true |
| - @JSName('innerHTML') |
| - String innerHtml; |
| + /// @domName Selection.type; @docsEditable true |
| + final String type; |
| - /// @domName HTMLElement.isContentEditable; @docsEditable true |
| - final bool isContentEditable; |
| + /// @domName Selection.addRange; @docsEditable true |
| + void addRange(Range range) native; |
| - /// @domName HTMLElement.lang; @docsEditable true |
| - String lang; |
| + /// @domName Selection.collapse; @docsEditable true |
| + void collapse(Node node, int index) native; |
| - /// @domName HTMLElement.outerHTML; @docsEditable true |
| - @JSName('outerHTML') |
| - final String outerHtml; |
| + /// @domName Selection.collapseToEnd; @docsEditable true |
| + void collapseToEnd() native; |
| - /// @domName HTMLElement.spellcheck; @docsEditable true |
| - bool spellcheck; |
| + /// @domName Selection.collapseToStart; @docsEditable true |
| + void collapseToStart() native; |
| - /// @domName HTMLElement.tabIndex; @docsEditable true |
| - int tabIndex; |
| + /// @domName Selection.containsNode; @docsEditable true |
| + bool containsNode(Node node, bool allowPartial) native; |
| - /// @domName HTMLElement.title; @docsEditable true |
| - String title; |
| + /// @domName Selection.deleteFromDocument; @docsEditable true |
| + void deleteFromDocument() native; |
| - /// @domName HTMLElement.translate; @docsEditable true |
| - bool translate; |
| + /// @domName Selection.empty; @docsEditable true |
| + void empty() native; |
| - /// @domName HTMLElement.webkitdropzone; @docsEditable true |
| - String webkitdropzone; |
| + /// @domName Selection.extend; @docsEditable true |
| + void extend(Node node, int offset) native; |
| - /// @domName HTMLElement.click; @docsEditable true |
| - void click() native; |
| + /// @domName Selection.getRangeAt; @docsEditable true |
| + Range getRangeAt(int index) native; |
| - static const int ALLOW_KEYBOARD_INPUT = 1; |
| + /// @domName Selection.modify; @docsEditable true |
| + void modify(String alter, String direction, String granularity) native; |
| - /// @domName Element.childElementCount; @docsEditable true |
| - @JSName('childElementCount') |
| - final int $dom_childElementCount; |
| + /// @domName Selection.removeAllRanges; @docsEditable true |
| + void removeAllRanges() native; |
| + |
| + /// @domName Selection.selectAllChildren; @docsEditable true |
| + void selectAllChildren(Node node) native; |
| + |
| + /// @domName Selection.setBaseAndExtent; @docsEditable true |
| + void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int extentOffset) native; |
| + |
| + /// @domName Selection.setPosition; @docsEditable true |
| + void setPosition(Node node, int offset) native; |
| + |
| + /// @domName Selection.toString; @docsEditable true |
| + String toString() 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. |
| + |
| + |
| +/// @domName DOMSettableTokenList; @docsEditable true |
| +class DomSettableTokenList extends DomTokenList native "*DOMSettableTokenList" { |
| - /// @domName Element.className; @docsEditable true |
| - @JSName('className') |
| - String $dom_className; |
| + /// @domName DOMSettableTokenList.value; @docsEditable true |
| + String value; |
| +} |
| +// 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. |
| - /// @domName Element.clientHeight; @docsEditable true |
| - final int clientHeight; |
| - /// @domName Element.clientLeft; @docsEditable true |
| - final int clientLeft; |
| +/// @domName DOMStringMap |
| +abstract class DomStringMap { |
| +} |
| +// 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. |
| - /// @domName Element.clientTop; @docsEditable true |
| - final int clientTop; |
| - /// @domName Element.clientWidth; @docsEditable true |
| - final int clientWidth; |
| +/// @domName DOMTokenList; @docsEditable true |
| +class DomTokenList native "*DOMTokenList" { |
| - /// @domName Element.dataset; @docsEditable true |
| - final Map<String, String> dataset; |
| + /// @domName DOMTokenList.length; @docsEditable true |
| + final int length; |
| - /// @domName Element.firstElementChild; @docsEditable true |
| - @JSName('firstElementChild') |
| - final Element $dom_firstElementChild; |
| + /// @domName DOMTokenList.contains; @docsEditable true |
| + bool contains(String token) native; |
| - /// @domName Element.lastElementChild; @docsEditable true |
| - @JSName('lastElementChild') |
| - final Element $dom_lastElementChild; |
| + /// @domName DOMTokenList.item; @docsEditable true |
| + String item(int index) native; |
| - /// @domName Element.nextElementSibling; @docsEditable true |
| - final Element nextElementSibling; |
| + /// @domName DOMTokenList.toString; @docsEditable true |
| + String toString() native; |
| - /// @domName Element.offsetHeight; @docsEditable true |
| - final int offsetHeight; |
| + /// @domName DOMTokenList.toggle; @docsEditable true |
| + bool toggle(String token, [bool force]) 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. |
| - /// @domName Element.offsetLeft; @docsEditable true |
| - final int offsetLeft; |
| - /// @domName Element.offsetParent; @docsEditable true |
| - final Element offsetParent; |
| +// TODO(jacobr): use _Lists.dart to remove some of the duplicated |
| +// functionality. |
| +class _ChildrenElementList implements List { |
| + // Raw Element. |
| + final Element _element; |
| + final HtmlCollection _childElements; |
| - /// @domName Element.offsetTop; @docsEditable true |
| - final int offsetTop; |
| + _ChildrenElementList._wrap(Element element) |
| + : _childElements = element.$dom_children, |
| + _element = element; |
| - /// @domName Element.offsetWidth; @docsEditable true |
| - final int offsetWidth; |
| + List<Element> _toList() { |
| + final output = new List(_childElements.length); |
| + for (int i = 0, len = _childElements.length; i < len; i++) { |
| + output[i] = _childElements[i]; |
| + } |
| + return output; |
| + } |
| - /// @domName Element.previousElementSibling; @docsEditable true |
| - final Element previousElementSibling; |
| + bool contains(Element element) => _childElements.contains(element); |
| - /// @domName Element.scrollHeight; @docsEditable true |
| - final int scrollHeight; |
| + void forEach(void f(Element element)) { |
| + for (Element element in _childElements) { |
| + f(element); |
| + } |
| + } |
| - /// @domName Element.scrollLeft; @docsEditable true |
| - int scrollLeft; |
| + List<Element> filter(bool f(Element element)) { |
| + final output = []; |
| + forEach((Element element) { |
| + if (f(element)) { |
| + output.add(element); |
| + } |
| + }); |
| + return new _FrozenElementList._wrap(output); |
| + } |
| - /// @domName Element.scrollTop; @docsEditable true |
| - int scrollTop; |
| + bool every(bool f(Element element)) { |
| + for (Element element in this) { |
| + if (!f(element)) { |
| + return false; |
| + } |
| + }; |
| + return true; |
| + } |
| - /// @domName Element.scrollWidth; @docsEditable true |
| - final int scrollWidth; |
| + bool some(bool f(Element element)) { |
| + for (Element element in this) { |
| + if (f(element)) { |
| + return true; |
| + } |
| + }; |
| + return false; |
| + } |
| - /// @domName Element.style; @docsEditable true |
| - final CSSStyleDeclaration style; |
| + Collection map(f(Element element)) { |
| + final out = []; |
| + for (Element el in this) { |
| + out.add(f(el)); |
| + } |
| + return out; |
| + } |
| - /// @domName Element.tagName; @docsEditable true |
| - final String tagName; |
| + bool get isEmpty { |
| + return _element.$dom_firstElementChild == null; |
| + } |
| - /// @domName Element.blur; @docsEditable true |
| - void blur() native; |
| + int get length { |
| + return _childElements.length; |
| + } |
| - /// @domName Element.focus; @docsEditable true |
| - void focus() native; |
| + Element operator [](int index) { |
| + return _childElements[index]; |
| + } |
| - /// @domName Element.getAttribute; @docsEditable true |
| - @JSName('getAttribute') |
| - String $dom_getAttribute(String name) native; |
| + void operator []=(int index, Element value) { |
| + _element.$dom_replaceChild(value, _childElements[index]); |
| + } |
| - /// @domName Element.getAttributeNS; @docsEditable true |
| - @JSName('getAttributeNS') |
| - String $dom_getAttributeNS(String namespaceURI, String localName) native; |
| + void set length(int newLength) { |
| + // TODO(jacobr): remove children when length is reduced. |
| + throw new UnsupportedError(''); |
| + } |
| - /// @domName Element.getBoundingClientRect; @docsEditable true |
| - ClientRect getBoundingClientRect() native; |
| + Element add(Element value) { |
| + _element.$dom_appendChild(value); |
| + return value; |
| + } |
| - /// @domName Element.getClientRects; @docsEditable true |
| - @Returns('_ClientRectList') @Creates('_ClientRectList') |
| - List<ClientRect> getClientRects() native; |
| + Element addLast(Element value) => add(value); |
| - /// @domName Element.getElementsByClassName; @docsEditable true |
| - @JSName('getElementsByClassName') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_getElementsByClassName(String name) native; |
| + Iterator<Element> iterator() => _toList().iterator(); |
| - /// @domName Element.getElementsByTagName; @docsEditable true |
| - @JSName('getElementsByTagName') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_getElementsByTagName(String name) native; |
| + void addAll(Collection<Element> collection) { |
| + for (Element element in collection) { |
| + _element.$dom_appendChild(element); |
| + } |
| + } |
| - /// @domName Element.hasAttribute; @docsEditable true |
| - @JSName('hasAttribute') |
| - bool $dom_hasAttribute(String name) native; |
| + void sort([Comparator<Element> compare = Comparable.compare]) { |
| + throw new UnsupportedError('TODO(jacobr): should we impl?'); |
| + } |
| - /// @domName Element.hasAttributeNS; @docsEditable true |
| - @JSName('hasAttributeNS') |
| - bool $dom_hasAttributeNS(String namespaceURI, String localName) native; |
| + void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| + throw new UnimplementedError(); |
| + } |
| - /// @domName Element.querySelector; @docsEditable true |
| - @JSName('querySelector') |
| - Element $dom_querySelector(String selectors) native; |
| + void removeRange(int start, int rangeLength) { |
| + throw new UnimplementedError(); |
| + } |
| - /// @domName Element.querySelectorAll; @docsEditable true |
| - @JSName('querySelectorAll') |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> $dom_querySelectorAll(String selectors) native; |
| + void insertRange(int start, int rangeLength, [initialValue = null]) { |
| + throw new UnimplementedError(); |
| + } |
| - /// @domName Element.removeAttribute; @docsEditable true |
| - @JSName('removeAttribute') |
| - void $dom_removeAttribute(String name) native; |
| + List getRange(int start, int rangeLength) => |
| + new _FrozenElementList._wrap(_Lists.getRange(this, start, rangeLength, |
| + [])); |
| - /// @domName Element.removeAttributeNS; @docsEditable true |
| - @JSName('removeAttributeNS') |
| - void $dom_removeAttributeNS(String namespaceURI, String localName) native; |
| + int indexOf(Element element, [int start = 0]) { |
| + return _Lists.indexOf(this, element, start, this.length); |
| + } |
| - /// @domName Element.scrollByLines; @docsEditable true |
| - void scrollByLines(int lines) native; |
| + int lastIndexOf(Element element, [int start = null]) { |
| + if (start == null) start = length - 1; |
| + return _Lists.lastIndexOf(this, element, start); |
| + } |
| - /// @domName Element.scrollByPages; @docsEditable true |
| - void scrollByPages(int pages) native; |
| + void clear() { |
| + // It is unclear if we want to keep non element nodes? |
| + _element.text = ''; |
| + } |
| - /// @domName Element.scrollIntoViewIfNeeded; @docsEditable true |
| - @JSName('scrollIntoViewIfNeeded') |
| - void scrollIntoView([bool centerIfNeeded]) native; |
| + Element removeLast() { |
| + final result = this.last; |
| + if (result != null) { |
| + _element.$dom_removeChild(result); |
| + } |
| + return result; |
| + } |
| - /// @domName Element.setAttribute; @docsEditable true |
| - @JSName('setAttribute') |
| - void $dom_setAttribute(String name, String value) native; |
| + Element get first { |
| + return _element.$dom_firstElementChild; |
| + } |
| - /// @domName Element.setAttributeNS; @docsEditable true |
| - @JSName('setAttributeNS') |
| - void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String value) native; |
| - /// @domName Element.webkitMatchesSelector; @docsEditable true |
| - @JSName('webkitMatchesSelector') |
| - bool matchesSelector(String selectors) native; |
| + Element get last { |
| + return _element.$dom_lastElementChild; |
| + } |
| +} |
| + |
| +// TODO(jacobr): this is an inefficient implementation but it is hard to see |
| +// a better option given that we cannot quite force NodeList to be an |
| +// ElementList as there are valid cases where a NodeList JavaScript object |
| +// contains Node objects that are not Elements. |
| +class _FrozenElementList implements List { |
| + final List<Node> _nodeList; |
| - /// @domName Element.webkitRequestFullScreen; @docsEditable true |
| - void webkitRequestFullScreen(int flags) native; |
| + _FrozenElementList._wrap(this._nodeList); |
| - /// @domName Element.webkitRequestFullscreen; @docsEditable true |
| - void webkitRequestFullscreen() native; |
| + bool contains(Element element) { |
| + for (Element el in this) { |
| + if (el == element) return true; |
| + } |
| + return false; |
| + } |
| - /// @domName Element.webkitRequestPointerLock; @docsEditable true |
| - void webkitRequestPointerLock() native; |
| + void forEach(void f(Element element)) { |
| + for (Element el in this) { |
| + f(el); |
| + } |
| + } |
| -} |
| + Collection map(f(Element element)) { |
| + final out = []; |
| + for (Element el in this) { |
| + out.add(f(el)); |
| + } |
| + return out; |
| + } |
| -// Temporary dispatch hook to support WebComponents. |
| -Function dynamicUnknownElementDispatcher; |
| + List<Element> filter(bool f(Element element)) { |
| + final out = []; |
| + for (Element el in this) { |
| + if (f(el)) out.add(el); |
| + } |
| + return out; |
| + } |
| -final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
| -class _ElementFactoryProvider { |
| - static final _CUSTOM_PARENT_TAG_MAP = const { |
| - 'body' : 'html', |
| - 'head' : 'html', |
| - 'caption' : 'table', |
| - 'td': 'tr', |
| - 'colgroup': 'table', |
| - 'col' : 'colgroup', |
| - 'tr' : 'tbody', |
| - 'tbody' : 'table', |
| - 'tfoot' : 'table', |
| - 'thead' : 'table', |
| - 'track' : 'audio', |
| - }; |
| + bool every(bool f(Element element)) { |
| + for(Element element in this) { |
| + if (!f(element)) { |
| + return false; |
| + } |
| + }; |
| + return true; |
| + } |
| - /** @domName Document.createElement */ |
| - static Element createElement_html(String html) { |
| - // TODO(jacobr): this method can be made more robust and performant. |
| - // 1) Cache the dummy parent elements required to use innerHTML rather than |
| - // creating them every call. |
| - // 2) Verify that the html does not contain leading or trailing text nodes. |
| - // 3) Verify that the html does not contain both <head> and <body> tags. |
| - // 4) Detatch the created element from its dummy parent. |
| - String parentTag = 'div'; |
| - String tag; |
| - final match = _START_TAG_REGEXP.firstMatch(html); |
| - if (match != null) { |
| - tag = match.group(1).toLowerCase(); |
| - if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { |
| - parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; |
| + bool some(bool f(Element element)) { |
| + for(Element element in this) { |
| + if (f(element)) { |
| + return true; |
| } |
| - } |
| - final Element temp = new Element.tag(parentTag); |
| - temp.innerHtml = html; |
| + }; |
| + return false; |
| + } |
| - Element element; |
| - if (temp.children.length == 1) { |
| - element = temp.children[0]; |
| - } else if (parentTag == 'html' && temp.children.length == 2) { |
| - // Work around for edge case in WebKit and possibly other browsers where |
| - // both body and head elements are created even though the inner html |
| - // only contains a head or body element. |
| - element = temp.children[tag == 'head' ? 0 : 1]; |
| - } else { |
| - throw new ArgumentError('HTML had ${temp.children.length} ' |
| - 'top level elements but 1 expected'); |
| - } |
| - element.remove(); |
| - return element; |
| + bool get isEmpty => _nodeList.isEmpty; |
| + |
| + int get length => _nodeList.length; |
| + |
| + Element operator [](int index) => _nodeList[index]; |
| + |
| + void operator []=(int index, Element value) { |
| + throw new UnsupportedError(''); |
| } |
| - /** @domName Document.createElement */ |
| - // Optimization to improve performance until the dart2js compiler inlines this |
| - // method. |
| - static Element createElement_tag(String tag) => |
| - JS('Element', 'document.createElement(#)', tag); |
| -} |
| -// 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. |
| + void set length(int newLength) { |
| + _nodeList.length = newLength; |
| + } |
| + void add(Element value) { |
| + throw new UnsupportedError(''); |
| + } |
| -class ElementEvents extends Events { |
| - ElementEvents(EventTarget _ptr) : super(_ptr); |
| + void addLast(Element value) { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get abort => this['abort']; |
| + Iterator<Element> iterator() => new _FrozenElementListIterator(this); |
| - EventListenerList get beforeCopy => this['beforecopy']; |
| + void addAll(Collection<Element> collection) { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get beforeCut => this['beforecut']; |
| + void sort([Comparator<Element> compare = Comparable.compare]) { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get beforePaste => this['beforepaste']; |
| + void setRange(int start, int rangeLength, List from, [int startFrom = 0]) { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get blur => this['blur']; |
| + void removeRange(int start, int rangeLength) { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get change => this['change']; |
| + void insertRange(int start, int rangeLength, [initialValue = null]) { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get click => this['click']; |
| + List<Element> getRange(int start, int rangeLength) => |
| + new _FrozenElementList._wrap(_nodeList.getRange(start, rangeLength)); |
| - EventListenerList get contextMenu => this['contextmenu']; |
| + int indexOf(Element element, [int start = 0]) => |
| + _nodeList.indexOf(element, start); |
| - EventListenerList get copy => this['copy']; |
| + int lastIndexOf(Element element, [int start = null]) => |
| + _nodeList.lastIndexOf(element, start); |
| - EventListenerList get cut => this['cut']; |
| + void clear() { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get doubleClick => this['dblclick']; |
| + Element removeLast() { |
| + throw new UnsupportedError(''); |
| + } |
| - EventListenerList get drag => this['drag']; |
| + Element get first => _nodeList.first; |
| - EventListenerList get dragEnd => this['dragend']; |
| + Element get last => _nodeList.last; |
| +} |
| - EventListenerList get dragEnter => this['dragenter']; |
| +class _FrozenElementListIterator implements Iterator<Element> { |
| + final _FrozenElementList _list; |
| + int _index = 0; |
| - EventListenerList get dragLeave => this['dragleave']; |
| + _FrozenElementListIterator(this._list); |
| - EventListenerList get dragOver => this['dragover']; |
| + /** |
| + * Gets the next element in the iteration. Throws a |
| + * [StateError("No more elements")] if no element is left. |
| + */ |
| + Element next() { |
| + if (!hasNext) { |
| + throw new StateError("No more elements"); |
| + } |
| - EventListenerList get dragStart => this['dragstart']; |
| + return _list[_index++]; |
| + } |
| - EventListenerList get drop => this['drop']; |
| + /** |
| + * Returns whether the [Iterator] has elements left. |
| + */ |
| + bool get hasNext => _index < _list.length; |
| +} |
| - EventListenerList get error => this['error']; |
| +class _ElementCssClassSet extends CssClassSet { |
| - EventListenerList get focus => this['focus']; |
| + final Element _element; |
| - EventListenerList get input => this['input']; |
| + _ElementCssClassSet(this._element); |
| - EventListenerList get invalid => this['invalid']; |
| + Set<String> readClasses() { |
| + var s = new Set<String>(); |
| + var classname = _element.$dom_className; |
| - EventListenerList get keyDown => this['keydown']; |
| + for (String name in classname.split(' ')) { |
| + String trimmed = name.trim(); |
| + if (!trimmed.isEmpty) { |
| + s.add(trimmed); |
| + } |
| + } |
| + return s; |
| + } |
| - EventListenerList get keyPress => this['keypress']; |
| + void writeClasses(Set<String> s) { |
| + List list = new List.from(s); |
| + _element.$dom_className = Strings.join(list, ' '); |
| + } |
| +} |
| - EventListenerList get keyUp => this['keyup']; |
| +/// @domName Element |
| +abstract class Element extends Node implements ElementTraversal native "*Element" { |
| - EventListenerList get load => this['load']; |
| + factory Element.html(String html) => |
| + _ElementFactoryProvider.createElement_html(html); |
| + factory Element.tag(String tag) => |
| + _ElementFactoryProvider.createElement_tag(tag); |
| - EventListenerList get mouseDown => this['mousedown']; |
| + /** |
| + * @domName Element.hasAttribute, Element.getAttribute, Element.setAttribute, |
| + * Element.removeAttribute |
| + */ |
| + Map<String, String> get attributes => new _ElementAttributeMap(this); |
| - EventListenerList get mouseMove => this['mousemove']; |
| + void set attributes(Map<String, String> value) { |
| + Map<String, String> attributes = this.attributes; |
| + attributes.clear(); |
| + for (String key in value.keys) { |
| + attributes[key] = value[key]; |
| + } |
| + } |
| - EventListenerList get mouseOut => this['mouseout']; |
| + /** |
| + * Deprecated, use innerHtml instead. |
| + */ |
| + String get innerHTML => this.innerHtml; |
| + void set innerHTML(String value) { |
| + this.innerHtml = value; |
| + } |
| - EventListenerList get mouseOver => this['mouseover']; |
| + void set elements(Collection<Element> value) { |
| + this.children = value; |
| + } |
| - EventListenerList get mouseUp => this['mouseup']; |
| + /** |
| + * Deprecated, use [children] instead. |
| + */ |
| + List<Element> get elements => this.children; |
| - EventListenerList get paste => this['paste']; |
| + /** |
| + * @domName childElementCount, firstElementChild, lastElementChild, |
| + * children, Node.nodes.add |
| + */ |
| + List<Element> get children => new _ChildrenElementList._wrap(this); |
| - EventListenerList get reset => this['reset']; |
| + void set children(Collection<Element> value) { |
| + // Copy list first since we don't want liveness during iteration. |
| + List copy = new List.from(value); |
| + var children = this.children; |
| + children.clear(); |
| + children.addAll(copy); |
| + } |
| - EventListenerList get scroll => this['scroll']; |
| + Element query(String selectors) => $dom_querySelector(selectors); |
| - EventListenerList get search => this['search']; |
| + List<Element> queryAll(String selectors) => |
| + new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); |
| - EventListenerList get select => this['select']; |
| + /** @domName className, classList */ |
| + CssClassSet get classes => new _ElementCssClassSet(this); |
| - EventListenerList get selectStart => this['selectstart']; |
| + void set classes(Collection<String> value) { |
| + CssClassSet classSet = classes; |
| + classSet.clear(); |
| + classSet.addAll(value); |
| + } |
| - EventListenerList get submit => this['submit']; |
| + Map<String, String> get dataAttributes => |
| + new _DataAttributeMap(attributes); |
| - EventListenerList get touchCancel => this['touchcancel']; |
| + void set dataAttributes(Map<String, String> value) { |
| + final dataAttributes = this.dataAttributes; |
| + dataAttributes.clear(); |
| + for (String key in value.keys) { |
| + dataAttributes[key] = value[key]; |
| + } |
| + } |
| - EventListenerList get touchEnd => this['touchend']; |
| + /** |
| + * Gets a map for manipulating the attributes of a particular namespace. |
| + * This is primarily useful for SVG attributes such as xref:link. |
| + */ |
| + Map<String, String> getNamespacedAttributes(String namespace) { |
| + return new _NamespacedAttributeMap(this, namespace); |
| + } |
| - EventListenerList get touchEnter => this['touchenter']; |
| + /** @domName Window.getComputedStyle */ |
| + Future<CssStyleDeclaration> get computedStyle { |
| + // TODO(jacobr): last param should be null, see b/5045788 |
| + return getComputedStyle(''); |
| + } |
| - EventListenerList get touchLeave => this['touchleave']; |
| + /** @domName Window.getComputedStyle */ |
| + Future<CssStyleDeclaration> getComputedStyle(String pseudoElement) { |
| + return _createMeasurementFuture( |
| + () => window.$dom_getComputedStyle(this, pseudoElement), |
| + new Completer<CssStyleDeclaration>()); |
| + } |
| - EventListenerList get touchMove => this['touchmove']; |
| + /** |
| + * Adds the specified element to after the last child of this. |
| + */ |
| + void append(Element e) { |
| + this.children.add(e); |
| + } |
| - EventListenerList get touchStart => this['touchstart']; |
| + /** |
| + * Adds the specified text as a text node after the last child of this. |
| + */ |
| + void appendText(String text) { |
| + this.insertAdjacentText('beforeend', text); |
| + } |
| - EventListenerList get transitionEnd => this['webkitTransitionEnd']; |
| + /** |
| + * Parses the specified text as HTML and adds the resulting node after the |
| + * last child of this. |
| + */ |
| + void appendHtml(String text) { |
| + this.insertAdjacentHtml('beforeend', text); |
| + } |
| - EventListenerList get fullscreenChange => this['webkitfullscreenchange']; |
| + // Hooks to support custom WebComponents. |
| + /** |
| + * Experimental support for [web components][wc]. This field stores a |
| + * reference to the component implementation. It was inspired by Mozilla's |
| + * [x-tags][] project. Please note: in the future it may be possible to |
| + * `extend Element` from your class, in which case this field will be |
| + * deprecated and will simply return this [Element] object. |
| + * |
| + * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html |
| + * [x-tags]: http://x-tags.org/ |
| + */ |
| + @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| + var xtag; |
| - EventListenerList get fullscreenError => this['webkitfullscreenerror']; |
| + // TODO(vsm): Implement noSuchMethod or similar for dart2js. |
| - EventListenerList get mouseWheel { |
| - if (JS('bool', '#.onwheel !== undefined', _ptr)) { |
| - // W3C spec, and should be IE9+, but IE has a bug exposing onwheel. |
| - return this['wheel']; |
| - } else if (JS('bool', '#.onmousewheel !== undefined', _ptr)) { |
| - // Chrome & IE |
| - return this['mousewheel']; |
| + /** @domName Element.insertAdjacentText */ |
| + void insertAdjacentText(String where, String text) { |
| + if (JS('bool', '!!#.insertAdjacentText', this)) { |
| + _insertAdjacentText(where, text); |
| } else { |
| - // Firefox |
| - return this['DOMMouseScroll']; |
| + _insertAdjacentNode(where, new Text(text)); |
| } |
| } |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName ElementTimeControl |
| -abstract class ElementTimeControl { |
| - /// @domName ElementTimeControl.beginElement; @docsEditable true |
| - void beginElement(); |
| + @JSName('insertAdjacentText') |
| + void _insertAdjacentText(String where, String text) native; |
| - /// @domName ElementTimeControl.beginElementAt; @docsEditable true |
| - void beginElementAt(num offset); |
| + /** @domName Element.insertAdjacentHTML */ |
| + void insertAdjacentHtml(String where, String text) { |
| + if (JS('bool', '!!#.insertAdjacentHtml', this)) { |
| + _insertAdjacentHtml(where, text); |
| + } else { |
| + _insertAdjacentNode(where, new DocumentFragment.html(text)); |
| + } |
| + } |
| - /// @domName ElementTimeControl.endElement; @docsEditable true |
| - void endElement(); |
| + @JSName('insertAdjacentHTML') |
| + void _insertAdjacentHTML(String where, String text) native; |
| - /// @domName ElementTimeControl.endElementAt; @docsEditable true |
| - void endElementAt(num offset); |
| -} |
| -// 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. |
| + /** @domName Element.insertAdjacentHTML */ |
| + Element insertAdjacentElement(String where, Element element) { |
| + if (JS('bool', '!!#.insertAdjacentElement', this)) { |
| + _insertAdjacentElement(where, element); |
| + } else { |
| + _insertAdjacentNode(where, element); |
| + } |
| + return element; |
| + } |
| + @JSName('insertAdjacentElement') |
| + void _insertAdjacentElement(String where, Element element) native; |
| -/// @domName ElementTraversal |
| -abstract class ElementTraversal { |
| + void _insertAdjacentNode(String where, Node node) { |
| + switch (where.toLowerCase()) { |
| + case 'beforebegin': |
| + this.parent.insertBefore(node, this); |
| + break; |
| + case 'afterbegin': |
| + var first = this.nodes.length > 0 ? this.nodes[0] : null; |
| + this.insertBefore(node, first); |
| + break; |
| + case 'beforeend': |
| + this.nodes.add(node); |
| + break; |
| + case 'afterend': |
| + this.parent.insertBefore(node, this.nextNode); |
| + break; |
| + default: |
| + throw new ArgumentError("Invalid position ${where}"); |
| + } |
| + } |
| - int childElementCount; |
| - Element firstElementChild; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + ElementEvents get on => |
| + new ElementEvents(this); |
| - Element lastElementChild; |
| + /// @domName HTMLElement.children; @docsEditable true |
| + @JSName('children') |
| + final HtmlCollection $dom_children; |
| - Element nextElementSibling; |
| + /// @domName HTMLElement.contentEditable; @docsEditable true |
| + String contentEditable; |
| - Element previousElementSibling; |
| -} |
| -// 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. |
| + /// @domName HTMLElement.dir; @docsEditable true |
| + String dir; |
| + /// @domName HTMLElement.draggable; @docsEditable true |
| + bool draggable; |
| -/// @domName HTMLEmbedElement; @docsEditable true |
| -class EmbedElement extends Element implements Element native "*HTMLEmbedElement" { |
| + /// @domName HTMLElement.hidden; @docsEditable true |
| + bool hidden; |
| - factory EmbedElement() => document.$dom_createElement("embed"); |
| + /// @domName HTMLElement.id; @docsEditable true |
| + String id; |
| - /// @domName HTMLEmbedElement.align; @docsEditable true |
| - String align; |
| + /// @domName HTMLElement.innerHTML; @docsEditable true |
| + @JSName('innerHTML') |
| + String innerHtml; |
| - /// @domName HTMLEmbedElement.height; @docsEditable true |
| - String height; |
| + /// @domName HTMLElement.isContentEditable; @docsEditable true |
| + final bool isContentEditable; |
| - /// @domName HTMLEmbedElement.name; @docsEditable true |
| - String name; |
| + /// @domName HTMLElement.lang; @docsEditable true |
| + String lang; |
| - /// @domName HTMLEmbedElement.src; @docsEditable true |
| - String src; |
| + /// @domName HTMLElement.outerHTML; @docsEditable true |
| + @JSName('outerHTML') |
| + final String outerHtml; |
| - /// @domName HTMLEmbedElement.type; @docsEditable true |
| - String type; |
| + /// @domName HTMLElement.spellcheck; @docsEditable true |
| + bool spellcheck; |
| - /// @domName HTMLEmbedElement.width; @docsEditable true |
| - String 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. |
| + /// @domName HTMLElement.tabIndex; @docsEditable true |
| + int tabIndex; |
| + /// @domName HTMLElement.title; @docsEditable true |
| + String title; |
| -/// @domName EntityReference; @docsEditable true |
| -class EntityReference extends Node native "*EntityReference" { |
| -} |
| -// 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. |
| + /// @domName HTMLElement.translate; @docsEditable true |
| + bool translate; |
| -// WARNING: Do not edit - generated code. |
| + /// @domName HTMLElement.webkitdropzone; @docsEditable true |
| + String webkitdropzone; |
| + /// @domName HTMLElement.click; @docsEditable true |
| + void click() native; |
| -typedef void EntriesCallback(List<Entry> entries); |
| -// 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. |
| + static const int ALLOW_KEYBOARD_INPUT = 1; |
| + /// @domName Element.childElementCount; @docsEditable true |
| + @JSName('childElementCount') |
| + final int $dom_childElementCount; |
| -/// @domName Entry; @docsEditable true |
| -class Entry native "*Entry" { |
| + /// @domName Element.className; @docsEditable true |
| + @JSName('className') |
| + String $dom_className; |
| - /// @domName Entry.filesystem; @docsEditable true |
| - final DOMFileSystem filesystem; |
| + /// @domName Element.clientHeight; @docsEditable true |
| + final int clientHeight; |
| - /// @domName Entry.fullPath; @docsEditable true |
| - final String fullPath; |
| + /// @domName Element.clientLeft; @docsEditable true |
| + final int clientLeft; |
| - /// @domName Entry.isDirectory; @docsEditable true |
| - final bool isDirectory; |
| + /// @domName Element.clientTop; @docsEditable true |
| + final int clientTop; |
| - /// @domName Entry.isFile; @docsEditable true |
| - final bool isFile; |
| + /// @domName Element.clientWidth; @docsEditable true |
| + final int clientWidth; |
| - /// @domName Entry.name; @docsEditable true |
| - final String name; |
| + /// @domName Element.dataset; @docsEditable true |
| + final Map<String, String> dataset; |
| - /// @domName Entry.copyTo; @docsEditable true |
| - void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]) native; |
| + /// @domName Element.firstElementChild; @docsEditable true |
| + @JSName('firstElementChild') |
| + final Element $dom_firstElementChild; |
| - /// @domName Entry.getMetadata; @docsEditable true |
| - void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback]) native; |
| + /// @domName Element.lastElementChild; @docsEditable true |
| + @JSName('lastElementChild') |
| + final Element $dom_lastElementChild; |
| - /// @domName Entry.getParent; @docsEditable true |
| - void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) native; |
| + /// @domName Element.nextElementSibling; @docsEditable true |
| + final Element nextElementSibling; |
| - /// @domName Entry.moveTo; @docsEditable true |
| - void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]) native; |
| + /// @domName Element.offsetHeight; @docsEditable true |
| + final int offsetHeight; |
| - /// @domName Entry.remove; @docsEditable true |
| - void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) native; |
| + /// @domName Element.offsetLeft; @docsEditable true |
| + final int offsetLeft; |
| - /// @domName Entry.toURL; @docsEditable true |
| - @JSName('toURL') |
| - String toUrl() 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. |
| + /// @domName Element.offsetParent; @docsEditable true |
| + final Element offsetParent; |
| -// WARNING: Do not edit - generated code. |
| + /// @domName Element.offsetTop; @docsEditable true |
| + final int offsetTop; |
| + /// @domName Element.offsetWidth; @docsEditable true |
| + final int offsetWidth; |
| -typedef void EntryCallback(Entry entry); |
| -// 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. |
| + /// @domName Element.previousElementSibling; @docsEditable true |
| + final Element previousElementSibling; |
| + /// @domName Element.scrollHeight; @docsEditable true |
| + final int scrollHeight; |
| -/// @domName EntrySync; @docsEditable true |
| -class EntrySync native "*EntrySync" { |
| + /// @domName Element.scrollLeft; @docsEditable true |
| + int scrollLeft; |
| - /// @domName EntrySync.filesystem; @docsEditable true |
| - final DOMFileSystemSync filesystem; |
| + /// @domName Element.scrollTop; @docsEditable true |
| + int scrollTop; |
| - /// @domName EntrySync.fullPath; @docsEditable true |
| - final String fullPath; |
| + /// @domName Element.scrollWidth; @docsEditable true |
| + final int scrollWidth; |
| - /// @domName EntrySync.isDirectory; @docsEditable true |
| - final bool isDirectory; |
| + /// @domName Element.style; @docsEditable true |
| + final CssStyleDeclaration style; |
| - /// @domName EntrySync.isFile; @docsEditable true |
| - final bool isFile; |
| + /// @domName Element.tagName; @docsEditable true |
| + final String tagName; |
| - /// @domName EntrySync.name; @docsEditable true |
| - final String name; |
| + /// @domName Element.blur; @docsEditable true |
| + void blur() native; |
| - /// @domName EntrySync.copyTo; @docsEditable true |
| - EntrySync copyTo(DirectoryEntrySync parent, String name) native; |
| + /// @domName Element.focus; @docsEditable true |
| + void focus() native; |
| - /// @domName EntrySync.getMetadata; @docsEditable true |
| - Metadata getMetadata() native; |
| + /// @domName Element.getAttribute; @docsEditable true |
| + @JSName('getAttribute') |
| + String $dom_getAttribute(String name) native; |
| - /// @domName EntrySync.getParent; @docsEditable true |
| - EntrySync getParent() native; |
| + /// @domName Element.getAttributeNS; @docsEditable true |
| + @JSName('getAttributeNS') |
| + String $dom_getAttributeNS(String namespaceURI, String localName) native; |
| - /// @domName EntrySync.moveTo; @docsEditable true |
| - EntrySync moveTo(DirectoryEntrySync parent, String name) native; |
| + /// @domName Element.getBoundingClientRect; @docsEditable true |
| + ClientRect getBoundingClientRect() native; |
| - /// @domName EntrySync.remove; @docsEditable true |
| - void remove() native; |
| + /// @domName Element.getClientRects; @docsEditable true |
| + @Returns('_ClientRectList') @Creates('_ClientRectList') |
| + List<ClientRect> getClientRects() native; |
| - /// @domName EntrySync.toURL; @docsEditable true |
| - @JSName('toURL') |
| - String toUrl() 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. |
| + /// @domName Element.getElementsByClassName; @docsEditable true |
| + @JSName('getElementsByClassName') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_getElementsByClassName(String name) native; |
| -// WARNING: Do not edit - generated code. |
| + /// @domName Element.getElementsByTagName; @docsEditable true |
| + @JSName('getElementsByTagName') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_getElementsByTagName(String name) native; |
| + /// @domName Element.hasAttribute; @docsEditable true |
| + @JSName('hasAttribute') |
| + bool $dom_hasAttribute(String name) native; |
| -typedef void ErrorCallback(FileError error); |
| -// 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. |
| + /// @domName Element.hasAttributeNS; @docsEditable true |
| + @JSName('hasAttributeNS') |
| + bool $dom_hasAttributeNS(String namespaceURI, String localName) native; |
| + /// @domName Element.querySelector; @docsEditable true |
| + @JSName('querySelector') |
| + Element $dom_querySelector(String selectors) native; |
| -/// @domName ErrorEvent; @docsEditable true |
| -class ErrorEvent extends Event native "*ErrorEvent" { |
| + /// @domName Element.querySelectorAll; @docsEditable true |
| + @JSName('querySelectorAll') |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> $dom_querySelectorAll(String selectors) native; |
| - /// @domName ErrorEvent.filename; @docsEditable true |
| - final String filename; |
| + /// @domName Element.removeAttribute; @docsEditable true |
| + @JSName('removeAttribute') |
| + void $dom_removeAttribute(String name) native; |
| - /// @domName ErrorEvent.lineno; @docsEditable true |
| - final int lineno; |
| + /// @domName Element.removeAttributeNS; @docsEditable true |
| + @JSName('removeAttributeNS') |
| + void $dom_removeAttributeNS(String namespaceURI, String localName) native; |
| - /// @domName ErrorEvent.message; @docsEditable true |
| - final String message; |
| -} |
| -// 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. |
| + /// @domName Element.scrollByLines; @docsEditable true |
| + void scrollByLines(int lines) native; |
| -// WARNING: Do not edit - generated code. |
| + /// @domName Element.scrollByPages; @docsEditable true |
| + void scrollByPages(int pages) native; |
| + /// @domName Element.scrollIntoViewIfNeeded; @docsEditable true |
| + @JSName('scrollIntoViewIfNeeded') |
| + void scrollIntoView([bool centerIfNeeded]) native; |
| -/// @domName Event |
| -class Event native "*Event" { |
| - // In JS, canBubble and cancelable are technically required parameters to |
| - // init*Event. In practice, though, if they aren't provided they simply |
| - // default to false (since that's Boolean(undefined)). |
| - // |
| - // Contrary to JS, we default canBubble and cancelable to true, since that's |
| - // what people want most of the time anyway. |
| - factory Event(String type, [bool canBubble = true, bool cancelable = true]) => |
| - _EventFactoryProvider.createEvent(type, canBubble, cancelable); |
| + /// @domName Element.setAttribute; @docsEditable true |
| + @JSName('setAttribute') |
| + void $dom_setAttribute(String name, String value) native; |
| - static const int AT_TARGET = 2; |
| + /// @domName Element.setAttributeNS; @docsEditable true |
| + @JSName('setAttributeNS') |
| + void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String value) native; |
| - static const int BLUR = 8192; |
| + /// @domName Element.webkitMatchesSelector; @docsEditable true |
| + @JSName('webkitMatchesSelector') |
| + bool matchesSelector(String selectors) native; |
| - static const int BUBBLING_PHASE = 3; |
| + /// @domName Element.webkitRequestFullScreen; @docsEditable true |
| + void webkitRequestFullScreen(int flags) native; |
| - static const int CAPTURING_PHASE = 1; |
| + /// @domName Element.webkitRequestFullscreen; @docsEditable true |
| + void webkitRequestFullscreen() native; |
| - static const int CHANGE = 32768; |
| + /// @domName Element.webkitRequestPointerLock; @docsEditable true |
| + void webkitRequestPointerLock() native; |
| - static const int CLICK = 64; |
| +} |
| - static const int DBLCLICK = 128; |
| +// Temporary dispatch hook to support WebComponents. |
| +Function dynamicUnknownElementDispatcher; |
| - static const int DRAGDROP = 2048; |
| +final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
| +class _ElementFactoryProvider { |
| + static final _CUSTOM_PARENT_TAG_MAP = const { |
| + 'body' : 'html', |
| + 'head' : 'html', |
| + 'caption' : 'table', |
| + 'td': 'tr', |
| + 'colgroup': 'table', |
| + 'col' : 'colgroup', |
| + 'tr' : 'tbody', |
| + 'tbody' : 'table', |
| + 'tfoot' : 'table', |
| + 'thead' : 'table', |
| + 'track' : 'audio', |
| + }; |
| - static const int FOCUS = 4096; |
| + /** @domName Document.createElement */ |
| + static Element createElement_html(String html) { |
| + // TODO(jacobr): this method can be made more robust and performant. |
| + // 1) Cache the dummy parent elements required to use innerHTML rather than |
| + // creating them every call. |
| + // 2) Verify that the html does not contain leading or trailing text nodes. |
| + // 3) Verify that the html does not contain both <head> and <body> tags. |
| + // 4) Detatch the created element from its dummy parent. |
| + String parentTag = 'div'; |
| + String tag; |
| + final match = _START_TAG_REGEXP.firstMatch(html); |
| + if (match != null) { |
| + tag = match.group(1).toLowerCase(); |
| + if (_CUSTOM_PARENT_TAG_MAP.containsKey(tag)) { |
| + parentTag = _CUSTOM_PARENT_TAG_MAP[tag]; |
| + } |
| + } |
| + final Element temp = new Element.tag(parentTag); |
| + temp.innerHtml = html; |
| - static const int KEYDOWN = 256; |
| + Element element; |
| + if (temp.children.length == 1) { |
| + element = temp.children[0]; |
| + } else if (parentTag == 'html' && temp.children.length == 2) { |
| + // Work around for edge case in WebKit and possibly other browsers where |
| + // both body and head elements are created even though the inner html |
| + // only contains a head or body element. |
| + element = temp.children[tag == 'head' ? 0 : 1]; |
| + } else { |
| + throw new ArgumentError('HTML had ${temp.children.length} ' |
| + 'top level elements but 1 expected'); |
| + } |
| + element.remove(); |
| + return element; |
| + } |
| - static const int KEYPRESS = 1024; |
| + /** @domName Document.createElement */ |
| + // Optimization to improve performance until the dart2js compiler inlines this |
| + // method. |
| + static Element createElement_tag(String tag) => |
| + JS('Element', 'document.createElement(#)', tag); |
| +} |
| +// 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. |
| - static const int KEYUP = 512; |
| - static const int MOUSEDOWN = 1; |
| +class ElementEvents extends Events { |
| + ElementEvents(EventTarget _ptr) : super(_ptr); |
| - static const int MOUSEDRAG = 32; |
| + EventListenerList get abort => this['abort']; |
| - static const int MOUSEMOVE = 16; |
| + EventListenerList get beforeCopy => this['beforecopy']; |
| - static const int MOUSEOUT = 8; |
| + EventListenerList get beforeCut => this['beforecut']; |
| - static const int MOUSEOVER = 4; |
| + EventListenerList get beforePaste => this['beforepaste']; |
| - static const int MOUSEUP = 2; |
| + EventListenerList get blur => this['blur']; |
| - static const int NONE = 0; |
| + EventListenerList get change => this['change']; |
| - static const int SELECT = 16384; |
| + EventListenerList get click => this['click']; |
| - /// @domName Event.bubbles; @docsEditable true |
| - final bool bubbles; |
| + EventListenerList get contextMenu => this['contextmenu']; |
| - /// @domName Event.cancelBubble; @docsEditable true |
| - bool cancelBubble; |
| + EventListenerList get copy => this['copy']; |
| - /// @domName Event.cancelable; @docsEditable true |
| - final bool cancelable; |
| + EventListenerList get cut => this['cut']; |
| - /// @domName Event.clipboardData; @docsEditable true |
| - final Clipboard clipboardData; |
| + EventListenerList get doubleClick => this['dblclick']; |
| - /// @domName Event.currentTarget; @docsEditable true |
| - EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._currentTarget); |
| - @JSName('currentTarget') |
| - @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
| - final dynamic _currentTarget; |
| + EventListenerList get drag => this['drag']; |
| - /// @domName Event.defaultPrevented; @docsEditable true |
| - final bool defaultPrevented; |
| + EventListenerList get dragEnd => this['dragend']; |
| - /// @domName Event.eventPhase; @docsEditable true |
| - final int eventPhase; |
| + EventListenerList get dragEnter => this['dragenter']; |
| - /// @domName Event.returnValue; @docsEditable true |
| - bool returnValue; |
| + EventListenerList get dragLeave => this['dragleave']; |
| - /// @domName Event.target; @docsEditable true |
| - EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
| - @JSName('target') |
| - @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
| - final dynamic _target; |
| + EventListenerList get dragOver => this['dragover']; |
| - /// @domName Event.timeStamp; @docsEditable true |
| - final int timeStamp; |
| + EventListenerList get dragStart => this['dragstart']; |
| - /// @domName Event.type; @docsEditable true |
| - final String type; |
| + EventListenerList get drop => this['drop']; |
| - /// @domName Event.initEvent; @docsEditable true |
| - @JSName('initEvent') |
| - void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native; |
| + EventListenerList get error => this['error']; |
| - /// @domName Event.preventDefault; @docsEditable true |
| - void preventDefault() native; |
| + EventListenerList get focus => this['focus']; |
| - /// @domName Event.stopImmediatePropagation; @docsEditable true |
| - void stopImmediatePropagation() native; |
| + EventListenerList get input => this['input']; |
| - /// @domName Event.stopPropagation; @docsEditable true |
| - void stopPropagation() native; |
| + EventListenerList get invalid => this['invalid']; |
| -} |
| -// 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. |
| + EventListenerList get keyDown => this['keydown']; |
| + EventListenerList get keyPress => this['keypress']; |
| -/// @domName EventException; @docsEditable true |
| -class EventException native "*EventException" { |
| + EventListenerList get keyUp => this['keyup']; |
| - static const int DISPATCH_REQUEST_ERR = 1; |
| + EventListenerList get load => this['load']; |
| - static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
| + EventListenerList get mouseDown => this['mousedown']; |
| - /// @domName EventException.code; @docsEditable true |
| - final int code; |
| + EventListenerList get mouseMove => this['mousemove']; |
| - /// @domName EventException.message; @docsEditable true |
| - final String message; |
| + EventListenerList get mouseOut => this['mouseout']; |
| - /// @domName EventException.name; @docsEditable true |
| - final String name; |
| + EventListenerList get mouseOver => this['mouseover']; |
| - /// @domName EventException.toString; @docsEditable true |
| - String toString() 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. |
| + EventListenerList get mouseUp => this['mouseup']; |
| + EventListenerList get paste => this['paste']; |
| -/// @domName EventSource; @docsEditable true |
| -class EventSource extends EventTarget native "*EventSource" { |
| + EventListenerList get reset => this['reset']; |
| - factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEventSource(scriptUrl); |
| + EventListenerList get scroll => this['scroll']; |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - EventSourceEvents get on => |
| - new EventSourceEvents(this); |
| + EventListenerList get search => this['search']; |
| - static const int CLOSED = 2; |
| + EventListenerList get select => this['select']; |
| - static const int CONNECTING = 0; |
| + EventListenerList get selectStart => this['selectstart']; |
| - static const int OPEN = 1; |
| + EventListenerList get submit => this['submit']; |
| - /// @domName EventSource.readyState; @docsEditable true |
| - final int readyState; |
| + EventListenerList get touchCancel => this['touchcancel']; |
| - /// @domName EventSource.url; @docsEditable true |
| - final String url; |
| + EventListenerList get touchEnd => this['touchend']; |
| - /// @domName EventSource.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + EventListenerList get touchEnter => this['touchenter']; |
| - /// @domName EventSource.close; @docsEditable true |
| - void close() native; |
| + EventListenerList get touchLeave => this['touchleave']; |
| - /// @domName EventSource.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| + EventListenerList get touchMove => this['touchmove']; |
| - /// @domName EventSource.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| -} |
| + EventListenerList get touchStart => this['touchstart']; |
| -class EventSourceEvents extends Events { |
| - EventSourceEvents(EventTarget _ptr) : super(_ptr); |
| + EventListenerList get transitionEnd => this['webkitTransitionEnd']; |
| - EventListenerList get error => this['error']; |
| + EventListenerList get fullscreenChange => this['webkitfullscreenchange']; |
| - EventListenerList get message => this['message']; |
| + EventListenerList get fullscreenError => this['webkitfullscreenerror']; |
| - EventListenerList get open => this['open']; |
| + EventListenerList get mouseWheel { |
| + if (JS('bool', '#.onwheel !== undefined', _ptr)) { |
| + // W3C spec, and should be IE9+, but IE has a bug exposing onwheel. |
| + return this['wheel']; |
| + } else if (JS('bool', '#.onmousewheel !== undefined', _ptr)) { |
| + // Chrome & IE |
| + return this['mousewheel']; |
| + } else { |
| + // Firefox |
| + return this['DOMMouseScroll']; |
| + } |
| + } |
| } |
| // 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. |
| -/** |
| - * Base class that supports listening for and dispatching browser events. |
| - * |
| - * Events can either be accessed by string name (using the indexed getter) or by |
| - * getters exposed by subclasses. Use the getters exposed by subclasses when |
| - * possible for better compile-time type checks. |
| - * |
| - * Using an indexed getter: |
| - * events['mouseover'].add((e) => print("Mouse over!")); |
| - * |
| - * Using a getter provided by a subclass: |
| - * elementEvents.mouseOver.add((e) => print("Mouse over!")); |
| - */ |
| -class Events { |
| - /* Raw event target. */ |
| - final EventTarget _ptr; |
| - |
| - Events(this._ptr); |
| - |
| - EventListenerList operator [](String type) { |
| - return new EventListenerList(_ptr, type); |
| - } |
| -} |
| - |
| -/** |
| - * Supports adding, removing, and dispatching events for a specific event type. |
| - */ |
| -class EventListenerList { |
| - |
| - final EventTarget _ptr; |
| - final String _type; |
| - |
| - EventListenerList(this._ptr, this._type); |
| - |
| - // TODO(jacobr): implement equals. |
| - |
| - EventListenerList add(EventListener listener, |
| - [bool useCapture = false]) { |
| - _add(listener, useCapture); |
| - return this; |
| - } |
| +/// @domName ElementTimeControl |
| +abstract class ElementTimeControl { |
| - EventListenerList remove(EventListener listener, |
| - [bool useCapture = false]) { |
| - _remove(listener, useCapture); |
| - return this; |
| - } |
| + /// @domName ElementTimeControl.beginElement; @docsEditable true |
| + void beginElement(); |
| - bool dispatch(Event evt) { |
| - return _ptr.$dom_dispatchEvent(evt); |
| - } |
| + /// @domName ElementTimeControl.beginElementAt; @docsEditable true |
| + void beginElementAt(num offset); |
| - void _add(EventListener listener, bool useCapture) { |
| - _ptr.$dom_addEventListener(_type, listener, useCapture); |
| - } |
| + /// @domName ElementTimeControl.endElement; @docsEditable true |
| + void endElement(); |
| - void _remove(EventListener listener, bool useCapture) { |
| - _ptr.$dom_removeEventListener(_type, listener, useCapture); |
| - } |
| + /// @domName ElementTimeControl.endElementAt; @docsEditable true |
| + void endElementAt(num offset); |
| } |
| +// 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. |
| -/// @domName EventTarget |
| -/** |
| - * Base class for all browser objects that support events. |
| - * |
| - * Use the [on] property to add, remove, and dispatch events (rather than |
| - * [$dom_addEventListener], [$dom_dispatchEvent], and |
| - * [$dom_removeEventListener]) for compile-time type checks and a more concise |
| - * API. |
| - */ |
| -class EventTarget native "*EventTarget" { |
| - /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent */ |
| - Events get on => new Events(this); |
| +/// @domName ElementTraversal |
| +abstract class ElementTraversal { |
| - /// @domName EventTarget.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + int childElementCount; |
| + |
| + Element firstElementChild; |
| - /// @domName EventTarget.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event event) native; |
| + Element lastElementChild; |
| - /// @domName EventTarget.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + Element nextElementSibling; |
| + Element previousElementSibling; |
| } |
| // 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. |
| -/// @domName HTMLFieldSetElement; @docsEditable true |
| -class FieldSetElement extends Element implements Element native "*HTMLFieldSetElement" { |
| - |
| - factory FieldSetElement() => document.$dom_createElement("fieldset"); |
| +/// @domName HTMLEmbedElement; @docsEditable true |
| +class EmbedElement extends Element implements Element native "*HTMLEmbedElement" { |
| - /// @domName HTMLFieldSetElement.disabled; @docsEditable true |
| - bool disabled; |
| + factory EmbedElement() => document.$dom_createElement("embed"); |
| - /// @domName HTMLFieldSetElement.elements; @docsEditable true |
| - final HTMLCollection elements; |
| + /// @domName HTMLEmbedElement.align; @docsEditable true |
| + String align; |
| - /// @domName HTMLFieldSetElement.form; @docsEditable true |
| - final FormElement form; |
| + /// @domName HTMLEmbedElement.height; @docsEditable true |
| + String height; |
| - /// @domName HTMLFieldSetElement.name; @docsEditable true |
| + /// @domName HTMLEmbedElement.name; @docsEditable true |
| String name; |
| - /// @domName HTMLFieldSetElement.type; @docsEditable true |
| - final String type; |
| - |
| - /// @domName HTMLFieldSetElement.validationMessage; @docsEditable true |
| - final String validationMessage; |
| - |
| - /// @domName HTMLFieldSetElement.validity; @docsEditable true |
| - final ValidityState validity; |
| - |
| - /// @domName HTMLFieldSetElement.willValidate; @docsEditable true |
| - final bool willValidate; |
| + /// @domName HTMLEmbedElement.src; @docsEditable true |
| + String src; |
| - /// @domName HTMLFieldSetElement.checkValidity; @docsEditable true |
| - bool checkValidity() native; |
| + /// @domName HTMLEmbedElement.type; @docsEditable true |
| + String type; |
| - /// @domName HTMLFieldSetElement.setCustomValidity; @docsEditable true |
| - void setCustomValidity(String error) native; |
| + /// @domName HTMLEmbedElement.width; @docsEditable true |
| + String 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. |
| -/// @domName File; @docsEditable true |
| -class File extends Blob native "*File" { |
| - |
| - /// @domName File.lastModifiedDate; @docsEditable true |
| - final Date lastModifiedDate; |
| - |
| - /// @domName File.name; @docsEditable true |
| - final String name; |
| - |
| - /// @domName File.webkitRelativePath; @docsEditable true |
| - final String webkitRelativePath; |
| +/// @domName EntityReference; @docsEditable true |
| +class EntityReference extends Node native "*EntityReference" { |
| } |
| // 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 |
| @@ -8106,387 +7606,471 @@ class File extends Blob native "*File" { |
| // WARNING: Do not edit - generated code. |
| -typedef void FileCallback(File file); |
| +typedef void EntriesCallback(List<Entry> entries); |
| // 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. |
| -/// @domName FileEntry; @docsEditable true |
| -class FileEntry extends Entry native "*FileEntry" { |
| +/// @domName Entry; @docsEditable true |
| +class Entry native "*Entry" { |
| - /// @domName FileEntry.createWriter; @docsEditable true |
| - void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]) native; |
| + /// @domName Entry.filesystem; @docsEditable true |
| + final FileSystem filesystem; |
| - /// @domName FileEntry.file; @docsEditable true |
| - void file(FileCallback successCallback, [ErrorCallback errorCallback]) native; |
| + /// @domName Entry.fullPath; @docsEditable true |
| + final String fullPath; |
| + |
| + /// @domName Entry.isDirectory; @docsEditable true |
| + final bool isDirectory; |
| + |
| + /// @domName Entry.isFile; @docsEditable true |
| + final bool isFile; |
| + |
| + /// @domName Entry.name; @docsEditable true |
| + final String name; |
| + |
| + /// @domName Entry.copyTo; @docsEditable true |
| + void copyTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]) native; |
| + |
| + /// @domName Entry.getMetadata; @docsEditable true |
| + void getMetadata(MetadataCallback successCallback, [ErrorCallback errorCallback]) native; |
| + |
| + /// @domName Entry.getParent; @docsEditable true |
| + void getParent([EntryCallback successCallback, ErrorCallback errorCallback]) native; |
| + |
| + /// @domName Entry.moveTo; @docsEditable true |
| + void moveTo(DirectoryEntry parent, [String name, EntryCallback successCallback, ErrorCallback errorCallback]) native; |
| + |
| + /// @domName Entry.remove; @docsEditable true |
| + void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) native; |
| + |
| + /// @domName Entry.toURL; @docsEditable true |
| + @JSName('toURL') |
| + String toUrl() 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. |
| +// WARNING: Do not edit - generated code. |
| -/// @domName FileEntrySync; @docsEditable true |
| -class FileEntrySync extends EntrySync native "*FileEntrySync" { |
| - |
| - /// @domName FileEntrySync.createWriter; @docsEditable true |
| - FileWriterSync createWriter() native; |
| - /// @domName FileEntrySync.file; @docsEditable true |
| - File file() native; |
| -} |
| +typedef void EntryCallback(Entry entry); |
| // 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. |
| -/// @domName FileError; @docsEditable true |
| -class FileError native "*FileError" { |
| +/// @domName EntrySync; @docsEditable true |
| +class EntrySync native "*EntrySync" { |
| - static const int ABORT_ERR = 3; |
| + /// @domName EntrySync.filesystem; @docsEditable true |
| + final FileSystemSync filesystem; |
| - static const int ENCODING_ERR = 5; |
| + /// @domName EntrySync.fullPath; @docsEditable true |
| + final String fullPath; |
| - static const int INVALID_MODIFICATION_ERR = 9; |
| + /// @domName EntrySync.isDirectory; @docsEditable true |
| + final bool isDirectory; |
| - static const int INVALID_STATE_ERR = 7; |
| + /// @domName EntrySync.isFile; @docsEditable true |
| + final bool isFile; |
| - static const int NOT_FOUND_ERR = 1; |
| + /// @domName EntrySync.name; @docsEditable true |
| + final String name; |
| - static const int NOT_READABLE_ERR = 4; |
| + /// @domName EntrySync.copyTo; @docsEditable true |
| + EntrySync copyTo(DirectoryEntrySync parent, String name) native; |
| - static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| + /// @domName EntrySync.getMetadata; @docsEditable true |
| + Metadata getMetadata() native; |
| - static const int PATH_EXISTS_ERR = 12; |
| + /// @domName EntrySync.getParent; @docsEditable true |
| + EntrySync getParent() native; |
| - static const int QUOTA_EXCEEDED_ERR = 10; |
| + /// @domName EntrySync.moveTo; @docsEditable true |
| + EntrySync moveTo(DirectoryEntrySync parent, String name) native; |
| - static const int SECURITY_ERR = 2; |
| + /// @domName EntrySync.remove; @docsEditable true |
| + void remove() native; |
| - static const int SYNTAX_ERR = 8; |
| + /// @domName EntrySync.toURL; @docsEditable true |
| + @JSName('toURL') |
| + String toUrl() 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. |
| - static const int TYPE_MISMATCH_ERR = 11; |
| +// WARNING: Do not edit - generated code. |
| - /// @domName FileError.code; @docsEditable true |
| - final int code; |
| -} |
| + |
| +typedef void ErrorCallback(FileError error); |
| // 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. |
| -/// @domName FileException; @docsEditable true |
| -class FileException native "*FileException" { |
| +/// @domName ErrorEvent; @docsEditable true |
| +class ErrorEvent extends Event native "*ErrorEvent" { |
| - static const int ABORT_ERR = 3; |
| + /// @domName ErrorEvent.filename; @docsEditable true |
| + final String filename; |
| - static const int ENCODING_ERR = 5; |
| + /// @domName ErrorEvent.lineno; @docsEditable true |
| + final int lineno; |
| - static const int INVALID_MODIFICATION_ERR = 9; |
| + /// @domName ErrorEvent.message; @docsEditable true |
| + final String message; |
| +} |
| +// 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. |
| - static const int INVALID_STATE_ERR = 7; |
| +// WARNING: Do not edit - generated code. |
| - static const int NOT_FOUND_ERR = 1; |
| - static const int NOT_READABLE_ERR = 4; |
| +/// @domName Event |
| +class Event native "*Event" { |
| + // In JS, canBubble and cancelable are technically required parameters to |
| + // init*Event. In practice, though, if they aren't provided they simply |
| + // default to false (since that's Boolean(undefined)). |
| + // |
| + // Contrary to JS, we default canBubble and cancelable to true, since that's |
| + // what people want most of the time anyway. |
| + factory Event(String type, [bool canBubble = true, bool cancelable = true]) => |
| + _EventFactoryProvider.createEvent(type, canBubble, cancelable); |
| - static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| + static const int AT_TARGET = 2; |
| - static const int PATH_EXISTS_ERR = 12; |
| + static const int BLUR = 8192; |
| - static const int QUOTA_EXCEEDED_ERR = 10; |
| + static const int BUBBLING_PHASE = 3; |
| - static const int SECURITY_ERR = 2; |
| + static const int CAPTURING_PHASE = 1; |
| - static const int SYNTAX_ERR = 8; |
| + static const int CHANGE = 32768; |
| - static const int TYPE_MISMATCH_ERR = 11; |
| + static const int CLICK = 64; |
| - /// @domName FileException.code; @docsEditable true |
| - final int code; |
| + static const int DBLCLICK = 128; |
| - /// @domName FileException.message; @docsEditable true |
| - final String message; |
| + static const int DRAGDROP = 2048; |
| - /// @domName FileException.name; @docsEditable true |
| - final String name; |
| + static const int FOCUS = 4096; |
| - /// @domName FileException.toString; @docsEditable true |
| - String toString() 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. |
| + static const int KEYDOWN = 256; |
| + static const int KEYPRESS = 1024; |
| -/// @domName FileList; @docsEditable true |
| -class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileList" { |
| + static const int KEYUP = 512; |
| - /// @domName FileList.length; @docsEditable true |
| - final int length; |
| + static const int MOUSEDOWN = 1; |
| - File operator[](int index) => JS("File", "#[#]", this, index); |
| + static const int MOUSEDRAG = 32; |
| - void operator[]=(int index, File value) { |
| - throw new UnsupportedError("Cannot assign element of immutable List."); |
| - } |
| - // -- start List<File> mixins. |
| - // File is the element type. |
| + static const int MOUSEMOVE = 16; |
| - // From Iterable<File>: |
| + static const int MOUSEOUT = 8; |
| - Iterator<File> iterator() { |
| - // Note: NodeLists are not fixed size. And most probably length shouldn't |
| - // be cached in both iterator _and_ forEach method. For now caching it |
| - // for consistency. |
| - return new FixedSizeListIterator<File>(this); |
| - } |
| + static const int MOUSEOVER = 4; |
| - // From Collection<File>: |
| + static const int MOUSEUP = 2; |
| - void add(File value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| + static const int NONE = 0; |
| + |
| + static const int SELECT = 16384; |
| + |
| + /// @domName Event.bubbles; @docsEditable true |
| + final bool bubbles; |
| + |
| + /// @domName Event.cancelBubble; @docsEditable true |
| + bool cancelBubble; |
| - void addLast(File value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| + /// @domName Event.cancelable; @docsEditable true |
| + final bool cancelable; |
| - void addAll(Collection<File> collection) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| + /// @domName Event.clipboardData; @docsEditable true |
| + final Clipboard clipboardData; |
| - bool contains(File element) => Collections.contains(this, element); |
| + /// @domName Event.currentTarget; @docsEditable true |
| + EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._currentTarget); |
| + @JSName('currentTarget') |
| + @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
| + final dynamic _currentTarget; |
| - void forEach(void f(File element)) => Collections.forEach(this, f); |
| + /// @domName Event.defaultPrevented; @docsEditable true |
| + final bool defaultPrevented; |
| - Collection map(f(File element)) => Collections.map(this, [], f); |
| + /// @domName Event.eventPhase; @docsEditable true |
| + final int eventPhase; |
| - Collection<File> filter(bool f(File element)) => |
| - Collections.filter(this, <File>[], f); |
| + /// @domName Event.returnValue; @docsEditable true |
| + bool returnValue; |
| - bool every(bool f(File element)) => Collections.every(this, f); |
| + /// @domName Event.target; @docsEditable true |
| + EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
| + @JSName('target') |
| + @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
| + final dynamic _target; |
| - bool some(bool f(File element)) => Collections.some(this, f); |
| + /// @domName Event.timeStamp; @docsEditable true |
| + final int timeStamp; |
| - bool get isEmpty => this.length == 0; |
| + /// @domName Event.type; @docsEditable true |
| + final String type; |
| - // From List<File>: |
| + /// @domName Event.initEvent; @docsEditable true |
| + @JSName('initEvent') |
| + void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native; |
| - void sort([Comparator<File> compare = Comparable.compare]) { |
| - throw new UnsupportedError("Cannot sort immutable List."); |
| - } |
| + /// @domName Event.preventDefault; @docsEditable true |
| + void preventDefault() native; |
| - int indexOf(File element, [int start = 0]) => |
| - _Lists.indexOf(this, element, start, this.length); |
| + /// @domName Event.stopImmediatePropagation; @docsEditable true |
| + void stopImmediatePropagation() native; |
| - int lastIndexOf(File element, [int start]) { |
| - if (start == null) start = length - 1; |
| - return _Lists.lastIndexOf(this, element, start); |
| - } |
| + /// @domName Event.stopPropagation; @docsEditable true |
| + void stopPropagation() native; |
| - File get first => this[0]; |
| +} |
| +// 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. |
| - File get last => this[length - 1]; |
| - File removeLast() { |
| - throw new UnsupportedError("Cannot removeLast on immutable List."); |
| - } |
| +/// @domName EventException; @docsEditable true |
| +class EventException native "*EventException" { |
| - void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { |
| - throw new UnsupportedError("Cannot setRange on immutable List."); |
| - } |
| + static const int DISPATCH_REQUEST_ERR = 1; |
| - void removeRange(int start, int rangeLength) { |
| - throw new UnsupportedError("Cannot removeRange on immutable List."); |
| - } |
| + static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
| - void insertRange(int start, int rangeLength, [File initialValue]) { |
| - throw new UnsupportedError("Cannot insertRange on immutable List."); |
| - } |
| + /// @domName EventException.code; @docsEditable true |
| + final int code; |
| - List<File> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <File>[]); |
| + /// @domName EventException.message; @docsEditable true |
| + final String message; |
| - // -- end List<File> mixins. |
| + /// @domName EventException.name; @docsEditable true |
| + final String name; |
| - /// @domName FileList.item; @docsEditable true |
| - File item(int index) native; |
| + /// @domName EventException.toString; @docsEditable true |
| + String toString() 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. |
| -/// @domName FileReader; @docsEditable true |
| -class FileReader extends EventTarget native "*FileReader" { |
| +/// @domName EventSource; @docsEditable true |
| +class EventSource extends EventTarget native "*EventSource" { |
| - factory FileReader() => _FileReaderFactoryProvider.createFileReader(); |
| + factory EventSource(String scriptUrl) => _EventSourceFactoryProvider.createEventSource(scriptUrl); |
| /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - FileReaderEvents get on => |
| - new FileReaderEvents(this); |
| - |
| - static const int DONE = 2; |
| + EventSourceEvents get on => |
| + new EventSourceEvents(this); |
| - static const int EMPTY = 0; |
| + static const int CLOSED = 2; |
| - static const int LOADING = 1; |
| + static const int CONNECTING = 0; |
| - /// @domName FileReader.error; @docsEditable true |
| - final FileError error; |
| + static const int OPEN = 1; |
| - /// @domName FileReader.readyState; @docsEditable true |
| + /// @domName EventSource.readyState; @docsEditable true |
| final int readyState; |
| - /// @domName FileReader.result; @docsEditable true |
| - @Creates('String|ArrayBuffer|Null') |
| - final Object result; |
| - |
| - /// @domName FileReader.abort; @docsEditable true |
| - void abort() native; |
| + /// @domName EventSource.url; @docsEditable true |
| + final String url; |
| - /// @domName FileReader.addEventListener; @docsEditable true |
| + /// @domName EventSource.addEventListener; @docsEditable true |
| @JSName('addEventListener') |
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName FileReader.dispatchEvent; @docsEditable true |
| + /// @domName EventSource.close; @docsEditable true |
| + void close() native; |
| + |
| + /// @domName EventSource.dispatchEvent; @docsEditable true |
| @JSName('dispatchEvent') |
| bool $dom_dispatchEvent(Event evt) native; |
| - /// @domName FileReader.readAsArrayBuffer; @docsEditable true |
| - void readAsArrayBuffer(Blob blob) native; |
| - |
| - /// @domName FileReader.readAsBinaryString; @docsEditable true |
| - void readAsBinaryString(Blob blob) native; |
| - |
| - /// @domName FileReader.readAsDataURL; @docsEditable true |
| - @JSName('readAsDataURL') |
| - void readAsDataUrl(Blob blob) native; |
| - |
| - /// @domName FileReader.readAsText; @docsEditable true |
| - void readAsText(Blob blob, [String encoding]) native; |
| - |
| - /// @domName FileReader.removeEventListener; @docsEditable true |
| + /// @domName EventSource.removeEventListener; @docsEditable true |
| @JSName('removeEventListener') |
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| } |
| -class FileReaderEvents extends Events { |
| - FileReaderEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get abort => this['abort']; |
| +class EventSourceEvents extends Events { |
| + EventSourceEvents(EventTarget _ptr) : super(_ptr); |
| EventListenerList get error => this['error']; |
| - EventListenerList get load => this['load']; |
| - |
| - EventListenerList get loadEnd => this['loadend']; |
| - |
| - EventListenerList get loadStart => this['loadstart']; |
| + EventListenerList get message => this['message']; |
| - EventListenerList get progress => this['progress']; |
| + EventListenerList get open => this['open']; |
| } |
| // 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. |
| -/// @domName FileReaderSync; @docsEditable true |
| -class FileReaderSync native "*FileReaderSync" { |
| +/** |
| + * Base class that supports listening for and dispatching browser events. |
| + * |
| + * Events can either be accessed by string name (using the indexed getter) or by |
| + * getters exposed by subclasses. Use the getters exposed by subclasses when |
| + * possible for better compile-time type checks. |
| + * |
| + * Using an indexed getter: |
| + * events['mouseover'].add((e) => print("Mouse over!")); |
| + * |
| + * Using a getter provided by a subclass: |
| + * elementEvents.mouseOver.add((e) => print("Mouse over!")); |
| + */ |
| +class Events { |
| + /* Raw event target. */ |
| + final EventTarget _ptr; |
| - factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSync(); |
| + Events(this._ptr); |
| - /// @domName FileReaderSync.readAsArrayBuffer; @docsEditable true |
| - ArrayBuffer readAsArrayBuffer(Blob blob) native; |
| + EventListenerList operator [](String type) { |
| + return new EventListenerList(_ptr, type); |
| + } |
| +} |
| - /// @domName FileReaderSync.readAsBinaryString; @docsEditable true |
| - String readAsBinaryString(Blob blob) native; |
| +/** |
| + * Supports adding, removing, and dispatching events for a specific event type. |
| + */ |
| +class EventListenerList { |
| - /// @domName FileReaderSync.readAsDataURL; @docsEditable true |
| - @JSName('readAsDataURL') |
| - String readAsDataUrl(Blob blob) native; |
| + final EventTarget _ptr; |
| + final String _type; |
| + |
| + EventListenerList(this._ptr, this._type); |
| + |
| + // TODO(jacobr): implement equals. |
| + |
| + EventListenerList add(EventListener listener, |
| + [bool useCapture = false]) { |
| + _add(listener, useCapture); |
| + return this; |
| + } |
| + |
| + EventListenerList remove(EventListener listener, |
| + [bool useCapture = false]) { |
| + _remove(listener, useCapture); |
| + return this; |
| + } |
| + |
| + bool dispatch(Event evt) { |
| + return _ptr.$dom_dispatchEvent(evt); |
| + } |
| + |
| + void _add(EventListener listener, bool useCapture) { |
| + _ptr.$dom_addEventListener(_type, listener, useCapture); |
| + } |
| + |
| + void _remove(EventListener listener, bool useCapture) { |
| + _ptr.$dom_removeEventListener(_type, listener, useCapture); |
| + } |
| +} |
| + |
| +/// @domName EventTarget |
| +/** |
| + * Base class for all browser objects that support events. |
| + * |
| + * Use the [on] property to add, remove, and dispatch events (rather than |
| + * [$dom_addEventListener], [$dom_dispatchEvent], and |
| + * [$dom_removeEventListener]) for compile-time type checks and a more concise |
| + * API. |
| + */ |
| +class EventTarget native "*EventTarget" { |
| + |
| + /** @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent */ |
| + Events get on => new Events(this); |
| + |
| + /// @domName EventTarget.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + |
| + /// @domName EventTarget.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event event) native; |
| + |
| + /// @domName EventTarget.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName FileReaderSync.readAsText; @docsEditable true |
| - String readAsText(Blob blob, [String encoding]) 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. |
| -// WARNING: Do not edit - generated code. |
| +/// @domName EXTTextureFilterAnisotropic; @docsEditable true |
| +class ExtTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" { |
| + |
| + static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
| -typedef void FileSystemCallback(DOMFileSystem fileSystem); |
| + static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
| +} |
| // 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. |
| -/// @domName FileWriter; @docsEditable true |
| -class FileWriter extends EventTarget native "*FileWriter" { |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - FileWriterEvents get on => |
| - new FileWriterEvents(this); |
| - |
| - static const int DONE = 2; |
| - |
| - static const int INIT = 0; |
| - |
| - static const int WRITING = 1; |
| +/// @domName HTMLFieldSetElement; @docsEditable true |
| +class FieldSetElement extends Element implements Element native "*HTMLFieldSetElement" { |
| - /// @domName FileWriter.error; @docsEditable true |
| - final FileError error; |
| + factory FieldSetElement() => document.$dom_createElement("fieldset"); |
| - /// @domName FileWriter.length; @docsEditable true |
| - final int length; |
| + /// @domName HTMLFieldSetElement.disabled; @docsEditable true |
| + bool disabled; |
| - /// @domName FileWriter.position; @docsEditable true |
| - final int position; |
| + /// @domName HTMLFieldSetElement.elements; @docsEditable true |
| + final HtmlCollection elements; |
| - /// @domName FileWriter.readyState; @docsEditable true |
| - final int readyState; |
| + /// @domName HTMLFieldSetElement.form; @docsEditable true |
| + final FormElement form; |
| - /// @domName FileWriter.abort; @docsEditable true |
| - void abort() native; |
| + /// @domName HTMLFieldSetElement.name; @docsEditable true |
| + String name; |
| - /// @domName FileWriter.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName HTMLFieldSetElement.type; @docsEditable true |
| + final String type; |
| - /// @domName FileWriter.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| + /// @domName HTMLFieldSetElement.validationMessage; @docsEditable true |
| + final String validationMessage; |
| - /// @domName FileWriter.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName HTMLFieldSetElement.validity; @docsEditable true |
| + final ValidityState validity; |
| - /// @domName FileWriter.seek; @docsEditable true |
| - void seek(int position) native; |
| + /// @domName HTMLFieldSetElement.willValidate; @docsEditable true |
| + final bool willValidate; |
| - /// @domName FileWriter.truncate; @docsEditable true |
| - void truncate(int size) native; |
| + /// @domName HTMLFieldSetElement.checkValidity; @docsEditable true |
| + bool checkValidity() native; |
| - /// @domName FileWriter.write; @docsEditable true |
| - void write(Blob data) native; |
| + /// @domName HTMLFieldSetElement.setCustomValidity; @docsEditable true |
| + void setCustomValidity(String error) 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. |
| -class FileWriterEvents extends Events { |
| - FileWriterEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get abort => this['abort']; |
| - |
| - EventListenerList get error => this['error']; |
| - EventListenerList get progress => this['progress']; |
| +/// @domName File; @docsEditable true |
| +class File extends Blob native "*File" { |
| - EventListenerList get write => this['write']; |
| + /// @domName File.lastModifiedDate; @docsEditable true |
| + final Date lastModifiedDate; |
| - EventListenerList get writeEnd => this['writeend']; |
| + /// @domName File.name; @docsEditable true |
| + final String name; |
| - EventListenerList get writeStart => this['writestart']; |
| + /// @domName File.webkitRelativePath; @docsEditable true |
| + final String webkitRelativePath; |
| } |
| // 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 |
| @@ -8495,229 +8079,194 @@ class FileWriterEvents extends Events { |
| // WARNING: Do not edit - generated code. |
| -typedef void FileWriterCallback(FileWriter fileWriter); |
| +typedef void FileCallback(File file); |
| // 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. |
| -/// @domName FileWriterSync; @docsEditable true |
| -class FileWriterSync native "*FileWriterSync" { |
| - |
| - /// @domName FileWriterSync.length; @docsEditable true |
| - final int length; |
| - |
| - /// @domName FileWriterSync.position; @docsEditable true |
| - final int position; |
| - |
| - /// @domName FileWriterSync.seek; @docsEditable true |
| - void seek(int position) native; |
| +/// @domName FileEntry; @docsEditable true |
| +class FileEntry extends Entry native "*FileEntry" { |
| - /// @domName FileWriterSync.truncate; @docsEditable true |
| - void truncate(int size) native; |
| + /// @domName FileEntry.createWriter; @docsEditable true |
| + void createWriter(FileWriterCallback successCallback, [ErrorCallback errorCallback]) native; |
| - /// @domName FileWriterSync.write; @docsEditable true |
| - void write(Blob data) native; |
| + /// @domName FileEntry.file; @docsEditable true |
| + void file(FileCallback successCallback, [ErrorCallback errorCallback]) 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. |
| -/// @domName Float32Array; @docsEditable true |
| -class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<num> native "*Float32Array" { |
| +/// @domName FileEntrySync; @docsEditable true |
| +class FileEntrySync extends EntrySync native "*FileEntrySync" { |
| - factory Float32Array(int length) => |
| - _TypedArrayFactoryProvider.createFloat32Array(length); |
| + /// @domName FileEntrySync.createWriter; @docsEditable true |
| + FileWriterSync createWriter() native; |
| - factory Float32Array.fromList(List<num> list) => |
| - _TypedArrayFactoryProvider.createFloat32Array_fromList(list); |
| + /// @domName FileEntrySync.file; @docsEditable true |
| + File file() 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. |
| - factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| - _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); |
| - static const int BYTES_PER_ELEMENT = 4; |
| +/// @domName FileError; @docsEditable true |
| +class FileError native "*FileError" { |
| - /// @domName Float32Array.length; @docsEditable true |
| - final int length; |
| + static const int ABORT_ERR = 3; |
| - num operator[](int index) => JS("num", "#[#]", this, index); |
| + static const int ENCODING_ERR = 5; |
| - void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, value); } // -- start List<num> mixins. |
| - // num is the element type. |
| + static const int INVALID_MODIFICATION_ERR = 9; |
| - // From Iterable<num>: |
| + static const int INVALID_STATE_ERR = 7; |
| - Iterator<num> iterator() { |
| - // Note: NodeLists are not fixed size. And most probably length shouldn't |
| - // be cached in both iterator _and_ forEach method. For now caching it |
| - // for consistency. |
| - return new FixedSizeListIterator<num>(this); |
| - } |
| + static const int NOT_FOUND_ERR = 1; |
| - // From Collection<num>: |
| + static const int NOT_READABLE_ERR = 4; |
| - void add(num value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| + static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| - void addLast(num value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| + static const int PATH_EXISTS_ERR = 12; |
| - void addAll(Collection<num> collection) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| - } |
| + static const int QUOTA_EXCEEDED_ERR = 10; |
| - bool contains(num element) => Collections.contains(this, element); |
| + static const int SECURITY_ERR = 2; |
| - void forEach(void f(num element)) => Collections.forEach(this, f); |
| + static const int SYNTAX_ERR = 8; |
| - Collection map(f(num element)) => Collections.map(this, [], f); |
| + static const int TYPE_MISMATCH_ERR = 11; |
| - Collection<num> filter(bool f(num element)) => |
| - Collections.filter(this, <num>[], f); |
| + /// @domName FileError.code; @docsEditable true |
| + final int code; |
| +} |
| +// 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. |
| - bool every(bool f(num element)) => Collections.every(this, f); |
| - bool some(bool f(num element)) => Collections.some(this, f); |
| +/// @domName FileException; @docsEditable true |
| +class FileException native "*FileException" { |
| - bool get isEmpty => this.length == 0; |
| + static const int ABORT_ERR = 3; |
| - // From List<num>: |
| + static const int ENCODING_ERR = 5; |
| - void sort([Comparator<num> compare = Comparable.compare]) { |
| - throw new UnsupportedError("Cannot sort immutable List."); |
| - } |
| + static const int INVALID_MODIFICATION_ERR = 9; |
| - int indexOf(num element, [int start = 0]) => |
| - _Lists.indexOf(this, element, start, this.length); |
| + static const int INVALID_STATE_ERR = 7; |
| - int lastIndexOf(num element, [int start]) { |
| - if (start == null) start = length - 1; |
| - return _Lists.lastIndexOf(this, element, start); |
| - } |
| + static const int NOT_FOUND_ERR = 1; |
| - num get first => this[0]; |
| + static const int NOT_READABLE_ERR = 4; |
| - num get last => this[length - 1]; |
| + static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| - num removeLast() { |
| - throw new UnsupportedError("Cannot removeLast on immutable List."); |
| - } |
| + static const int PATH_EXISTS_ERR = 12; |
| - void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
| - throw new UnsupportedError("Cannot setRange on immutable List."); |
| - } |
| + static const int QUOTA_EXCEEDED_ERR = 10; |
| - void removeRange(int start, int rangeLength) { |
| - throw new UnsupportedError("Cannot removeRange on immutable List."); |
| - } |
| + static const int SECURITY_ERR = 2; |
| - void insertRange(int start, int rangeLength, [num initialValue]) { |
| - throw new UnsupportedError("Cannot insertRange on immutable List."); |
| - } |
| + static const int SYNTAX_ERR = 8; |
| - List<num> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <num>[]); |
| + static const int TYPE_MISMATCH_ERR = 11; |
| - // -- end List<num> mixins. |
| + /// @domName FileException.code; @docsEditable true |
| + final int code; |
| - /// @domName Float32Array.setElements; @docsEditable true |
| - @JSName('set') |
| - void setElements(Object array, [int offset]) native; |
| + /// @domName FileException.message; @docsEditable true |
| + final String message; |
| - /// @domName Float32Array.subarray; @docsEditable true |
| - Float32Array subarray(int start, [int end]) native; |
| + /// @domName FileException.name; @docsEditable true |
| + final String name; |
| + |
| + /// @domName FileException.toString; @docsEditable true |
| + String toString() 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. |
| -/// @domName Float64Array; @docsEditable true |
| -class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<num> native "*Float64Array" { |
| - |
| - factory Float64Array(int length) => |
| - _TypedArrayFactoryProvider.createFloat64Array(length); |
| - |
| - factory Float64Array.fromList(List<num> list) => |
| - _TypedArrayFactoryProvider.createFloat64Array_fromList(list); |
| - |
| - factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| - _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); |
| - |
| - static const int BYTES_PER_ELEMENT = 8; |
| +/// @domName FileList; @docsEditable true |
| +class FileList implements JavaScriptIndexingBehavior, List<File> native "*FileList" { |
| - /// @domName Float64Array.length; @docsEditable true |
| + /// @domName FileList.length; @docsEditable true |
| final int length; |
| - num operator[](int index) => JS("num", "#[#]", this, index); |
| + File operator[](int index) => JS("File", "#[#]", this, index); |
| - void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, value); } // -- start List<num> mixins. |
| - // num is the element type. |
| + void operator[]=(int index, File value) { |
| + throw new UnsupportedError("Cannot assign element of immutable List."); |
| + } |
| + // -- start List<File> mixins. |
| + // File is the element type. |
| - // From Iterable<num>: |
| + // From Iterable<File>: |
| - Iterator<num> iterator() { |
| + Iterator<File> iterator() { |
| // Note: NodeLists are not fixed size. And most probably length shouldn't |
| // be cached in both iterator _and_ forEach method. For now caching it |
| // for consistency. |
| - return new FixedSizeListIterator<num>(this); |
| + return new FixedSizeListIterator<File>(this); |
| } |
| - // From Collection<num>: |
| + // From Collection<File>: |
| - void add(num value) { |
| + void add(File value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addLast(num value) { |
| + void addLast(File value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addAll(Collection<num> collection) { |
| + void addAll(Collection<File> collection) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - bool contains(num element) => Collections.contains(this, element); |
| + bool contains(File element) => Collections.contains(this, element); |
| - void forEach(void f(num element)) => Collections.forEach(this, f); |
| + void forEach(void f(File element)) => Collections.forEach(this, f); |
| - Collection map(f(num element)) => Collections.map(this, [], f); |
| + Collection map(f(File element)) => Collections.map(this, [], f); |
| - Collection<num> filter(bool f(num element)) => |
| - Collections.filter(this, <num>[], f); |
| + Collection<File> filter(bool f(File element)) => |
| + Collections.filter(this, <File>[], f); |
| - bool every(bool f(num element)) => Collections.every(this, f); |
| + bool every(bool f(File element)) => Collections.every(this, f); |
| - bool some(bool f(num element)) => Collections.some(this, f); |
| + bool some(bool f(File element)) => Collections.some(this, f); |
| bool get isEmpty => this.length == 0; |
| - // From List<num>: |
| + // From List<File>: |
| - void sort([Comparator<num> compare = Comparable.compare]) { |
| + void sort([Comparator<File> compare = Comparable.compare]) { |
| throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - int indexOf(num element, [int start = 0]) => |
| + int indexOf(File element, [int start = 0]) => |
| _Lists.indexOf(this, element, start, this.length); |
| - int lastIndexOf(num element, [int start]) { |
| + int lastIndexOf(File element, [int start]) { |
| if (start == null) start = length - 1; |
| return _Lists.lastIndexOf(this, element, start); |
| } |
| - num get first => this[0]; |
| + File get first => this[0]; |
| - num get last => this[length - 1]; |
| + File get last => this[length - 1]; |
| - num removeLast() { |
| + File removeLast() { |
| throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
| + void setRange(int start, int rangeLength, List<File> from, [int startFrom]) { |
| throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| @@ -8725,357 +8274,340 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
| throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [num initialValue]) { |
| + void insertRange(int start, int rangeLength, [File initialValue]) { |
| throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<num> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <num>[]); |
| - |
| - // -- end List<num> mixins. |
| + List<File> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <File>[]); |
| - /// @domName Float64Array.setElements; @docsEditable true |
| - @JSName('set') |
| - void setElements(Object array, [int offset]) native; |
| + // -- end List<File> mixins. |
| - /// @domName Float64Array.subarray; @docsEditable true |
| - Float64Array subarray(int start, [int end]) native; |
| + /// @domName FileList.item; @docsEditable true |
| + File 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. |
| -/// @domName HTMLFontElement; @docsEditable true |
| -class FontElement extends Element implements Element native "*HTMLFontElement" { |
| +/// @domName FileReader; @docsEditable true |
| +class FileReader extends EventTarget native "*FileReader" { |
| - /// @domName HTMLFontElement.color; @docsEditable true |
| - String color; |
| + factory FileReader() => _FileReaderFactoryProvider.createFileReader(); |
| - /// @domName HTMLFontElement.face; @docsEditable true |
| - String face; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + FileReaderEvents get on => |
| + new FileReaderEvents(this); |
| - /// @domName HTMLFontElement.size; @docsEditable true |
| - String size; |
| -} |
| -// 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. |
| + static const int DONE = 2; |
| + static const int EMPTY = 0; |
| -/// @domName FormData; @docsEditable true |
| -class FormData native "*FormData" { |
| + static const int LOADING = 1; |
| - factory FormData([FormElement form]) { |
| - if (!?form) { |
| - return _FormDataFactoryProvider.createFormData(); |
| - } |
| - return _FormDataFactoryProvider.createFormData(form); |
| - } |
| + /// @domName FileReader.error; @docsEditable true |
| + final FileError error; |
| - /// @domName FormData.append; @docsEditable true |
| - void append(String name, String value, String filename) 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. |
| + /// @domName FileReader.readyState; @docsEditable true |
| + final int readyState; |
| + /// @domName FileReader.result; @docsEditable true |
| + @Creates('String|ArrayBuffer|Null') |
| + final Object result; |
| -/// @domName HTMLFormElement; @docsEditable true |
| -class FormElement extends Element implements Element native "*HTMLFormElement" { |
| + /// @domName FileReader.abort; @docsEditable true |
| + void abort() native; |
| - factory FormElement() => document.$dom_createElement("form"); |
| + /// @domName FileReader.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName HTMLFormElement.acceptCharset; @docsEditable true |
| - String acceptCharset; |
| + /// @domName FileReader.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event evt) native; |
| - /// @domName HTMLFormElement.action; @docsEditable true |
| - String action; |
| + /// @domName FileReader.readAsArrayBuffer; @docsEditable true |
| + void readAsArrayBuffer(Blob blob) native; |
| - /// @domName HTMLFormElement.autocomplete; @docsEditable true |
| - String autocomplete; |
| + /// @domName FileReader.readAsBinaryString; @docsEditable true |
| + void readAsBinaryString(Blob blob) native; |
| - /// @domName HTMLFormElement.encoding; @docsEditable true |
| - String encoding; |
| + /// @domName FileReader.readAsDataURL; @docsEditable true |
| + @JSName('readAsDataURL') |
| + void readAsDataUrl(Blob blob) native; |
| - /// @domName HTMLFormElement.enctype; @docsEditable true |
| - String enctype; |
| + /// @domName FileReader.readAsText; @docsEditable true |
| + void readAsText(Blob blob, [String encoding]) native; |
| - /// @domName HTMLFormElement.length; @docsEditable true |
| - final int length; |
| + /// @domName FileReader.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| +} |
| - /// @domName HTMLFormElement.method; @docsEditable true |
| - String method; |
| +class FileReaderEvents extends Events { |
| + FileReaderEvents(EventTarget _ptr) : super(_ptr); |
| - /// @domName HTMLFormElement.name; @docsEditable true |
| - String name; |
| + EventListenerList get abort => this['abort']; |
| - /// @domName HTMLFormElement.noValidate; @docsEditable true |
| - bool noValidate; |
| + EventListenerList get error => this['error']; |
| - /// @domName HTMLFormElement.target; @docsEditable true |
| - String target; |
| + EventListenerList get load => this['load']; |
| - /// @domName HTMLFormElement.checkValidity; @docsEditable true |
| - bool checkValidity() native; |
| + EventListenerList get loadEnd => this['loadend']; |
| - /// @domName HTMLFormElement.reset; @docsEditable true |
| - void reset() native; |
| + EventListenerList get loadStart => this['loadstart']; |
| - /// @domName HTMLFormElement.submit; @docsEditable true |
| - void submit() native; |
| + EventListenerList get progress => this['progress']; |
| } |
| // 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. |
| -/// @domName HTMLFrameElement; @docsEditable true |
| -class FrameElement extends Element implements Element native "*HTMLFrameElement" { |
| - |
| - /// @domName HTMLFrameElement.contentWindow; @docsEditable true |
| - Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); |
| - @JSName('contentWindow') |
| - @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
| - final dynamic _contentWindow; |
| - |
| - /// @domName HTMLFrameElement.frameBorder; @docsEditable true |
| - String frameBorder; |
| - |
| - /// @domName HTMLFrameElement.height; @docsEditable true |
| - final int height; |
| +/// @domName FileReaderSync; @docsEditable true |
| +class FileReaderSync native "*FileReaderSync" { |
| - /// @domName HTMLFrameElement.location; @docsEditable true |
| - String location; |
| + factory FileReaderSync() => _FileReaderSyncFactoryProvider.createFileReaderSync(); |
| - /// @domName HTMLFrameElement.longDesc; @docsEditable true |
| - String longDesc; |
| + /// @domName FileReaderSync.readAsArrayBuffer; @docsEditable true |
| + ArrayBuffer readAsArrayBuffer(Blob blob) native; |
| - /// @domName HTMLFrameElement.marginHeight; @docsEditable true |
| - String marginHeight; |
| + /// @domName FileReaderSync.readAsBinaryString; @docsEditable true |
| + String readAsBinaryString(Blob blob) native; |
| - /// @domName HTMLFrameElement.marginWidth; @docsEditable true |
| - String marginWidth; |
| + /// @domName FileReaderSync.readAsDataURL; @docsEditable true |
| + @JSName('readAsDataURL') |
| + String readAsDataUrl(Blob blob) native; |
| - /// @domName HTMLFrameElement.name; @docsEditable true |
| - String name; |
| + /// @domName FileReaderSync.readAsText; @docsEditable true |
| + String readAsText(Blob blob, [String encoding]) 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. |
| - /// @domName HTMLFrameElement.noResize; @docsEditable true |
| - bool noResize; |
| - /// @domName HTMLFrameElement.scrolling; @docsEditable true |
| - String scrolling; |
| +/// @domName DOMFileSystem; @docsEditable true |
| +class FileSystem native "*DOMFileSystem" { |
| - /// @domName HTMLFrameElement.src; @docsEditable true |
| - String src; |
| + /// @domName DOMFileSystem.name; @docsEditable true |
| + final String name; |
| - /// @domName HTMLFrameElement.width; @docsEditable true |
| - final int width; |
| + /// @domName DOMFileSystem.root; @docsEditable true |
| + final DirectoryEntry root; |
| } |
| // 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 HTMLFrameSetElement; @docsEditable true |
| -class FrameSetElement extends Element implements Element native "*HTMLFrameSetElement" { |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - FrameSetElementEvents get on => |
| - new FrameSetElementEvents(this); |
| - |
| - /// @domName HTMLFrameSetElement.cols; @docsEditable true |
| - String cols; |
| - /// @domName HTMLFrameSetElement.rows; @docsEditable true |
| - String rows; |
| -} |
| +typedef void FileSystemCallback(FileSystem fileSystem); |
| +// 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. |
| -class FrameSetElementEvents extends ElementEvents { |
| - FrameSetElementEvents(EventTarget _ptr) : super(_ptr); |
| - EventListenerList get beforeUnload => this['beforeunload']; |
| +/// @domName DOMFileSystemSync; @docsEditable true |
| +class FileSystemSync native "*DOMFileSystemSync" { |
| - EventListenerList get blur => this['blur']; |
| + /// @domName DOMFileSystemSync.name; @docsEditable true |
| + final String name; |
| - EventListenerList get error => this['error']; |
| + /// @domName DOMFileSystemSync.root; @docsEditable true |
| + final DirectoryEntrySync root; |
| +} |
| +// 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. |
| - EventListenerList get focus => this['focus']; |
| - EventListenerList get hashChange => this['hashchange']; |
| +/// @domName FileWriter; @docsEditable true |
| +class FileWriter extends EventTarget native "*FileWriter" { |
| - EventListenerList get load => this['load']; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + FileWriterEvents get on => |
| + new FileWriterEvents(this); |
| - EventListenerList get message => this['message']; |
| + static const int DONE = 2; |
| - EventListenerList get offline => this['offline']; |
| + static const int INIT = 0; |
| - EventListenerList get online => this['online']; |
| + static const int WRITING = 1; |
| - EventListenerList get popState => this['popstate']; |
| + /// @domName FileWriter.error; @docsEditable true |
| + final FileError error; |
| - EventListenerList get resize => this['resize']; |
| + /// @domName FileWriter.length; @docsEditable true |
| + final int length; |
| - EventListenerList get storage => this['storage']; |
| + /// @domName FileWriter.position; @docsEditable true |
| + final int position; |
| - EventListenerList get unload => this['unload']; |
| -} |
| -// 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. |
| + /// @domName FileWriter.readyState; @docsEditable true |
| + final int readyState; |
| + /// @domName FileWriter.abort; @docsEditable true |
| + void abort() native; |
| -/// @domName Gamepad; @docsEditable true |
| -class Gamepad native "*Gamepad" { |
| + /// @domName FileWriter.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName Gamepad.axes; @docsEditable true |
| - final List<num> axes; |
| + /// @domName FileWriter.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event evt) native; |
| - /// @domName Gamepad.buttons; @docsEditable true |
| - final List<num> buttons; |
| + /// @domName FileWriter.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName Gamepad.id; @docsEditable true |
| - final String id; |
| + /// @domName FileWriter.seek; @docsEditable true |
| + void seek(int position) native; |
| - /// @domName Gamepad.index; @docsEditable true |
| - final int index; |
| + /// @domName FileWriter.truncate; @docsEditable true |
| + void truncate(int size) native; |
| - /// @domName Gamepad.timestamp; @docsEditable true |
| - final int timestamp; |
| + /// @domName FileWriter.write; @docsEditable true |
| + void write(Blob data) 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. |
| +class FileWriterEvents extends Events { |
| + FileWriterEvents(EventTarget _ptr) : super(_ptr); |
| -/// @domName Geolocation; @docsEditable true |
| -class Geolocation native "*Geolocation" { |
| + EventListenerList get abort => this['abort']; |
| - /// @domName Geolocation.clearWatch; @docsEditable true |
| - void clearWatch(int watchId) native; |
| + EventListenerList get error => this['error']; |
| - /// @domName Geolocation.getCurrentPosition; @docsEditable true |
| - void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]) native; |
| + EventListenerList get progress => this['progress']; |
| - /// @domName Geolocation.watchPosition; @docsEditable true |
| - int watchPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]) native; |
| + EventListenerList get write => this['write']; |
| + |
| + EventListenerList get writeEnd => this['writeend']; |
| + |
| + EventListenerList get writeStart => this['writestart']; |
| } |
| // 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 Geoposition; @docsEditable true |
| -class Geoposition native "*Geoposition" { |
| - |
| - /// @domName Geoposition.coords; @docsEditable true |
| - final Coordinates coords; |
| - /// @domName Geoposition.timestamp; @docsEditable true |
| - final int timestamp; |
| -} |
| +typedef void FileWriterCallback(FileWriter fileWriter); |
| // 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. |
| -/// @domName HTMLHRElement; @docsEditable true |
| -class HRElement extends Element implements Element native "*HTMLHRElement" { |
| +/// @domName FileWriterSync; @docsEditable true |
| +class FileWriterSync native "*FileWriterSync" { |
| - factory HRElement() => document.$dom_createElement("hr"); |
| + /// @domName FileWriterSync.length; @docsEditable true |
| + final int length; |
| - /// @domName HTMLHRElement.align; @docsEditable true |
| - String align; |
| + /// @domName FileWriterSync.position; @docsEditable true |
| + final int position; |
| - /// @domName HTMLHRElement.noShade; @docsEditable true |
| - bool noShade; |
| + /// @domName FileWriterSync.seek; @docsEditable true |
| + void seek(int position) native; |
| - /// @domName HTMLHRElement.size; @docsEditable true |
| - String size; |
| + /// @domName FileWriterSync.truncate; @docsEditable true |
| + void truncate(int size) native; |
| - /// @domName HTMLHRElement.width; @docsEditable true |
| - String width; |
| + /// @domName FileWriterSync.write; @docsEditable true |
| + void write(Blob data) 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. |
| -/// @domName HTMLAllCollection; @docsEditable true |
| -class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { |
| +/// @domName Float32Array; @docsEditable true |
| +class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<num> native "*Float32Array" { |
| - /// @domName HTMLAllCollection.length; @docsEditable true |
| + factory Float32Array(int length) => |
| + _TypedArrayFactoryProvider.createFloat32Array(length); |
| + |
| + factory Float32Array.fromList(List<num> list) => |
| + _TypedArrayFactoryProvider.createFloat32Array_fromList(list); |
| + |
| + factory Float32Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| + _TypedArrayFactoryProvider.createFloat32Array_fromBuffer(buffer, byteOffset, length); |
| + |
| + static const int BYTES_PER_ELEMENT = 4; |
| + |
| + /// @domName Float32Array.length; @docsEditable true |
| final int length; |
| - Node operator[](int index) => JS("Node", "#[#]", this, index); |
| + num operator[](int index) => JS("num", "#[#]", this, index); |
| - void operator[]=(int index, Node value) { |
| - throw new UnsupportedError("Cannot assign element of immutable List."); |
| - } |
| - // -- start List<Node> mixins. |
| - // Node is the element type. |
| + void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, value); } // -- start List<num> mixins. |
| + // num is the element type. |
| - // From Iterable<Node>: |
| + // From Iterable<num>: |
| - Iterator<Node> iterator() { |
| + Iterator<num> iterator() { |
| // Note: NodeLists are not fixed size. And most probably length shouldn't |
| // be cached in both iterator _and_ forEach method. For now caching it |
| // for consistency. |
| - return new FixedSizeListIterator<Node>(this); |
| + return new FixedSizeListIterator<num>(this); |
| } |
| - // From Collection<Node>: |
| + // From Collection<num>: |
| - void add(Node value) { |
| + void add(num value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addLast(Node value) { |
| + void addLast(num value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addAll(Collection<Node> collection) { |
| + void addAll(Collection<num> collection) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - bool contains(Node element) => Collections.contains(this, element); |
| + bool contains(num element) => Collections.contains(this, element); |
| - void forEach(void f(Node element)) => Collections.forEach(this, f); |
| + void forEach(void f(num element)) => Collections.forEach(this, f); |
| - Collection map(f(Node element)) => Collections.map(this, [], f); |
| + Collection map(f(num element)) => Collections.map(this, [], f); |
| - Collection<Node> filter(bool f(Node element)) => |
| - Collections.filter(this, <Node>[], f); |
| + Collection<num> filter(bool f(num element)) => |
| + Collections.filter(this, <num>[], f); |
| - bool every(bool f(Node element)) => Collections.every(this, f); |
| + bool every(bool f(num element)) => Collections.every(this, f); |
| - bool some(bool f(Node element)) => Collections.some(this, f); |
| + bool some(bool f(num element)) => Collections.some(this, f); |
| bool get isEmpty => this.length == 0; |
| - // From List<Node>: |
| + // From List<num>: |
| - void sort([Comparator<Node> compare = Comparable.compare]) { |
| + void sort([Comparator<num> compare = Comparable.compare]) { |
| throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - int indexOf(Node element, [int start = 0]) => |
| + int indexOf(num element, [int start = 0]) => |
| _Lists.indexOf(this, element, start, this.length); |
| - int lastIndexOf(Node element, [int start]) { |
| + int lastIndexOf(num element, [int start]) { |
| if (start == null) start = length - 1; |
| return _Lists.lastIndexOf(this, element, start); |
| } |
| - Node get first => this[0]; |
| + num get first => this[0]; |
| - Node get last => this[length - 1]; |
| + num get last => this[length - 1]; |
| - Node removeLast() { |
| + num removeLast() { |
| throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
| + void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
| throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| @@ -9083,105 +8615,110 @@ class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native |
| throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [Node initialValue]) { |
| + void insertRange(int start, int rangeLength, [num initialValue]) { |
| throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<Node> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <Node>[]); |
| - |
| - // -- end List<Node> mixins. |
| + List<num> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <num>[]); |
| - /// @domName HTMLAllCollection.item; @docsEditable true |
| - Node item(int index) native; |
| + // -- end List<num> mixins. |
| - /// @domName HTMLAllCollection.namedItem; @docsEditable true |
| - Node namedItem(String name) native; |
| + /// @domName Float32Array.setElements; @docsEditable true |
| + @JSName('set') |
| + void setElements(Object array, [int offset]) native; |
| - /// @domName HTMLAllCollection.tags; @docsEditable true |
| - @Returns('NodeList') @Creates('NodeList') |
| - List<Node> tags(String name) native; |
| + /// @domName Float32Array.subarray; @docsEditable true |
| + Float32Array subarray(int start, [int 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 |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLCollection; @docsEditable true |
| -class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLCollection" { |
| +/// @domName Float64Array; @docsEditable true |
| +class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior, List<num> native "*Float64Array" { |
| - /// @domName HTMLCollection.length; @docsEditable true |
| + factory Float64Array(int length) => |
| + _TypedArrayFactoryProvider.createFloat64Array(length); |
| + |
| + factory Float64Array.fromList(List<num> list) => |
| + _TypedArrayFactoryProvider.createFloat64Array_fromList(list); |
| + |
| + factory Float64Array.fromBuffer(ArrayBuffer buffer, [int byteOffset, int length]) => |
| + _TypedArrayFactoryProvider.createFloat64Array_fromBuffer(buffer, byteOffset, length); |
| + |
| + static const int BYTES_PER_ELEMENT = 8; |
| + |
| + /// @domName Float64Array.length; @docsEditable true |
| final int length; |
| - Node operator[](int index) => JS("Node", "#[#]", this, index); |
| + num operator[](int index) => JS("num", "#[#]", this, index); |
| - void operator[]=(int index, Node value) { |
| - throw new UnsupportedError("Cannot assign element of immutable List."); |
| - } |
| - // -- start List<Node> mixins. |
| - // Node is the element type. |
| + void operator[]=(int index, num value) { JS("void", "#[#] = #", this, index, value); } // -- start List<num> mixins. |
| + // num is the element type. |
| - // From Iterable<Node>: |
| + // From Iterable<num>: |
| - Iterator<Node> iterator() { |
| + Iterator<num> iterator() { |
| // Note: NodeLists are not fixed size. And most probably length shouldn't |
| // be cached in both iterator _and_ forEach method. For now caching it |
| // for consistency. |
| - return new FixedSizeListIterator<Node>(this); |
| + return new FixedSizeListIterator<num>(this); |
| } |
| - // From Collection<Node>: |
| + // From Collection<num>: |
| - void add(Node value) { |
| + void add(num value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addLast(Node value) { |
| + void addLast(num value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addAll(Collection<Node> collection) { |
| + void addAll(Collection<num> collection) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - bool contains(Node element) => Collections.contains(this, element); |
| + bool contains(num element) => Collections.contains(this, element); |
| - void forEach(void f(Node element)) => Collections.forEach(this, f); |
| + void forEach(void f(num element)) => Collections.forEach(this, f); |
| - Collection map(f(Node element)) => Collections.map(this, [], f); |
| + Collection map(f(num element)) => Collections.map(this, [], f); |
| - Collection<Node> filter(bool f(Node element)) => |
| - Collections.filter(this, <Node>[], f); |
| + Collection<num> filter(bool f(num element)) => |
| + Collections.filter(this, <num>[], f); |
| - bool every(bool f(Node element)) => Collections.every(this, f); |
| + bool every(bool f(num element)) => Collections.every(this, f); |
| - bool some(bool f(Node element)) => Collections.some(this, f); |
| + bool some(bool f(num element)) => Collections.some(this, f); |
| bool get isEmpty => this.length == 0; |
| - // From List<Node>: |
| + // From List<num>: |
| - void sort([Comparator<Node> compare = Comparable.compare]) { |
| + void sort([Comparator<num> compare = Comparable.compare]) { |
| throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - int indexOf(Node element, [int start = 0]) => |
| + int indexOf(num element, [int start = 0]) => |
| _Lists.indexOf(this, element, start, this.length); |
| - int lastIndexOf(Node element, [int start]) { |
| + int lastIndexOf(num element, [int start]) { |
| if (start == null) start = length - 1; |
| return _Lists.lastIndexOf(this, element, start); |
| } |
| - Node get first => this[0]; |
| + num get first => this[0]; |
| - Node get last => this[length - 1]; |
| + num get last => this[length - 1]; |
| - Node removeLast() { |
| + num removeLast() { |
| throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
| + void setRange(int start, int rangeLength, List<num> from, [int startFrom]) { |
| throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| @@ -9189,1294 +8726,848 @@ class HTMLCollection implements JavaScriptIndexingBehavior, List<Node> native "* |
| throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [Node initialValue]) { |
| + void insertRange(int start, int rangeLength, [num initialValue]) { |
| throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<Node> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <Node>[]); |
| + List<num> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <num>[]); |
| - // -- end List<Node> mixins. |
| + // -- end List<num> mixins. |
| - /// @domName HTMLCollection.item; @docsEditable true |
| - Node item(int index) native; |
| + /// @domName Float64Array.setElements; @docsEditable true |
| + @JSName('set') |
| + void setElements(Object array, [int offset]) native; |
| - /// @domName HTMLCollection.namedItem; @docsEditable true |
| - Node namedItem(String name) native; |
| + /// @domName Float64Array.subarray; @docsEditable true |
| + Float64Array subarray(int start, [int 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 |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName HTMLOptionsCollection; @docsEditable true |
| -class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollection" { |
| - |
| - // Shadowing definition. |
| - /// @domName HTMLOptionsCollection.length; @docsEditable true |
| - int get length => JS("int", "#.length", this); |
| +/// @domName HTMLFontElement; @docsEditable true |
| +class FontElement extends Element implements Element native "*HTMLFontElement" { |
| - /// @domName HTMLOptionsCollection.length; @docsEditable true |
| - void set length(int value) { |
| - JS("void", "#.length = #", this, value); |
| - } |
| + /// @domName HTMLFontElement.color; @docsEditable true |
| + String color; |
| - /// @domName HTMLOptionsCollection.selectedIndex; @docsEditable true |
| - int selectedIndex; |
| + /// @domName HTMLFontElement.face; @docsEditable true |
| + String face; |
| - /// @domName HTMLOptionsCollection.remove; @docsEditable true |
| - void remove(int index) native; |
| + /// @domName HTMLFontElement.size; @docsEditable true |
| + String size; |
| } |
| // 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. |
| -/// @domName HashChangeEvent; @docsEditable true |
| -class HashChangeEvent extends Event native "*HashChangeEvent" { |
| - |
| - /// @domName HashChangeEvent.newURL; @docsEditable true |
| - @JSName('newURL') |
| - final String newUrl; |
| +/// @domName FormData; @docsEditable true |
| +class FormData native "*FormData" { |
| - /// @domName HashChangeEvent.oldURL; @docsEditable true |
| - @JSName('oldURL') |
| - final String oldUrl; |
| + factory FormData([FormElement form]) { |
| + if (!?form) { |
| + return _FormDataFactoryProvider.createFormData(); |
| + } |
| + return _FormDataFactoryProvider.createFormData(form); |
| + } |
| - /// @domName HashChangeEvent.initHashChangeEvent; @docsEditable true |
| - void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; |
| + /// @domName FormData.append; @docsEditable true |
| + void append(String name, String value, String filename) 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. |
| -/// @domName HTMLHeadElement; @docsEditable true |
| -class HeadElement extends Element implements Element native "*HTMLHeadElement" { |
| +/// @domName HTMLFormElement; @docsEditable true |
| +class FormElement extends Element implements Element native "*HTMLFormElement" { |
| - factory HeadElement() => document.$dom_createElement("head"); |
| + factory FormElement() => document.$dom_createElement("form"); |
| - /// @domName HTMLHeadElement.profile; @docsEditable true |
| - String profile; |
| -} |
| -// 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. |
| + /// @domName HTMLFormElement.acceptCharset; @docsEditable true |
| + String acceptCharset; |
| + /// @domName HTMLFormElement.action; @docsEditable true |
| + String action; |
| -/// @domName HTMLHeadingElement; @docsEditable true |
| -class HeadingElement extends Element implements Element native "*HTMLHeadingElement" { |
| + /// @domName HTMLFormElement.autocomplete; @docsEditable true |
| + String autocomplete; |
| - factory HeadingElement.h1() => document.$dom_createElement("h1"); |
| + /// @domName HTMLFormElement.encoding; @docsEditable true |
| + String encoding; |
| - factory HeadingElement.h2() => document.$dom_createElement("h2"); |
| + /// @domName HTMLFormElement.enctype; @docsEditable true |
| + String enctype; |
| - factory HeadingElement.h3() => document.$dom_createElement("h3"); |
| + /// @domName HTMLFormElement.length; @docsEditable true |
| + final int length; |
| - factory HeadingElement.h4() => document.$dom_createElement("h4"); |
| + /// @domName HTMLFormElement.method; @docsEditable true |
| + String method; |
| - factory HeadingElement.h5() => document.$dom_createElement("h5"); |
| + /// @domName HTMLFormElement.name; @docsEditable true |
| + String name; |
| - factory HeadingElement.h6() => document.$dom_createElement("h6"); |
| + /// @domName HTMLFormElement.noValidate; @docsEditable true |
| + bool noValidate; |
| - /// @domName HTMLHeadingElement.align; @docsEditable true |
| - String align; |
| + /// @domName HTMLFormElement.target; @docsEditable true |
| + String target; |
| + |
| + /// @domName HTMLFormElement.checkValidity; @docsEditable true |
| + bool checkValidity() native; |
| + |
| + /// @domName HTMLFormElement.reset; @docsEditable true |
| + void reset() native; |
| + |
| + /// @domName HTMLFormElement.submit; @docsEditable true |
| + void submit() 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. |
| -// WARNING: Do not edit - generated code. |
| - |
| - |
| -/// @domName HTMLDocument |
| -class HtmlDocument extends Document native "*HTMLDocument" { |
| - |
| - /// @domName HTMLDocument.activeElement; @docsEditable true |
| - final Element activeElement; |
| - |
| - /** @domName Document.body */ |
| - BodyElement get body => document.$dom_body; |
| - |
| - /** @domName Document.body */ |
| - void set body(BodyElement value) { |
| - document.$dom_body = value; |
| - } |
| - |
| - /** @domName Document.caretRangeFromPoint */ |
| - Range caretRangeFromPoint(int x, int y) { |
| - return document.$dom_caretRangeFromPoint(x, y); |
| - } |
| - |
| - /** @domName Document.elementFromPoint */ |
| - Element elementFromPoint(int x, int y) { |
| - return document.$dom_elementFromPoint(x, y); |
| - } |
| - |
| - /** @domName Document.head */ |
| - HeadElement get head => document.$dom_head; |
| - |
| - /** @domName Document.lastModified */ |
| - String get lastModified => document.$dom_lastModified; |
| - |
| - /** @domName Document.referrer */ |
| - String get referrer => document.$dom_referrer; |
| - |
| - /** @domName Document.styleSheets */ |
| - List<StyleSheet> get styleSheets => document.$dom_styleSheets; |
| - |
| - /** @domName Document.title */ |
| - String get title => document.$dom_title; |
| - /** @domName Document.title */ |
| - void set title(String value) { |
| - document.$dom_title = value; |
| - } |
| +/// @domName HTMLFrameElement; @docsEditable true |
| +class FrameElement extends Element implements Element native "*HTMLFrameElement" { |
| - /** @domName Document.webkitCancelFullScreen */ |
| - void webkitCancelFullScreen() { |
| - document.$dom_webkitCancelFullScreen(); |
| - } |
| + /// @domName HTMLFrameElement.contentWindow; @docsEditable true |
| + Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); |
| + @JSName('contentWindow') |
| + @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
| + final dynamic _contentWindow; |
| - /** @domName Document.webkitExitFullscreen */ |
| - void webkitExitFullscreen() { |
| - document.$dom_webkitExitFullscreen(); |
| - } |
| + /// @domName HTMLFrameElement.frameBorder; @docsEditable true |
| + String frameBorder; |
| - /** @domName Document.webkitExitPointerLock */ |
| - void webkitExitPointerLock() { |
| - document.$dom_webkitExitPointerLock(); |
| - } |
| + /// @domName HTMLFrameElement.height; @docsEditable true |
| + final int height; |
| - /** @domName Document.webkitFullscreenElement */ |
| - Element get webkitFullscreenElement => document.$dom_webkitFullscreenElement; |
| + /// @domName HTMLFrameElement.location; @docsEditable true |
| + String location; |
| - /** @domName Document.webkitFullscreenEnabled */ |
| - bool get webkitFullscreenEnabled => document.$dom_webkitFullscreenEnabled; |
| + /// @domName HTMLFrameElement.longDesc; @docsEditable true |
| + String longDesc; |
| - /** @domName Document.webkitHidden */ |
| - bool get webkitHidden => document.$dom_webkitHidden; |
| + /// @domName HTMLFrameElement.marginHeight; @docsEditable true |
| + String marginHeight; |
| - /** @domName Document.webkitIsFullScreen */ |
| - bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; |
| + /// @domName HTMLFrameElement.marginWidth; @docsEditable true |
| + String marginWidth; |
| - /** @domName Document.webkitPointerLockElement */ |
| - Element get webkitPointerLockElement => |
| - document.$dom_webkitPointerLockElement; |
| + /// @domName HTMLFrameElement.name; @docsEditable true |
| + String name; |
| - /** @domName Document.webkitVisibilityState */ |
| - String get webkitVisibilityState => document.$dom_webkitVisibilityState; |
| -} |
| -// 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. |
| + /// @domName HTMLFrameElement.noResize; @docsEditable true |
| + bool noResize; |
| + /// @domName HTMLFrameElement.scrolling; @docsEditable true |
| + String scrolling; |
| -/// @domName HTMLHtmlElement; @docsEditable true |
| -class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { |
| + /// @domName HTMLFrameElement.src; @docsEditable true |
| + String src; |
| - factory HtmlElement() => document.$dom_createElement("html"); |
| + /// @domName HTMLFrameElement.width; @docsEditable true |
| + 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. |
| -/// @domName XMLHttpRequest |
| -class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
| - factory HttpRequest.get(String url, onComplete(HttpRequest request)) => |
| - _HttpRequestFactoryProvider.createHttpRequest_get(url, onComplete); |
| - |
| - factory HttpRequest.getWithCredentials(String url, |
| - onComplete(HttpRequest request)) => |
| - _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, |
| - onComplete); |
| - |
| - |
| - factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); |
| +/// @domName HTMLFrameSetElement; @docsEditable true |
| +class FrameSetElement extends Element implements Element native "*HTMLFrameSetElement" { |
| /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - HttpRequestEvents get on => |
| - new HttpRequestEvents(this); |
| - |
| - static const int DONE = 4; |
| - |
| - static const int HEADERS_RECEIVED = 2; |
| + FrameSetElementEvents get on => |
| + new FrameSetElementEvents(this); |
| - static const int LOADING = 3; |
| + /// @domName HTMLFrameSetElement.cols; @docsEditable true |
| + String cols; |
| - static const int OPENED = 1; |
| + /// @domName HTMLFrameSetElement.rows; @docsEditable true |
| + String rows; |
| +} |
| - static const int UNSENT = 0; |
| +class FrameSetElementEvents extends ElementEvents { |
| + FrameSetElementEvents(EventTarget _ptr) : super(_ptr); |
| - /// @domName XMLHttpRequest.readyState; @docsEditable true |
| - final int readyState; |
| + EventListenerList get beforeUnload => this['beforeunload']; |
| - /// @domName XMLHttpRequest.response; @docsEditable true |
| - @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num') |
| - final Object response; |
| + EventListenerList get blur => this['blur']; |
| - /// @domName XMLHttpRequest.responseText; @docsEditable true |
| - final String responseText; |
| + EventListenerList get error => this['error']; |
| - /// @domName XMLHttpRequest.responseType; @docsEditable true |
| - String responseType; |
| + EventListenerList get focus => this['focus']; |
| - /// @domName XMLHttpRequest.responseXML; @docsEditable true |
| - @JSName('responseXML') |
| - final Document responseXml; |
| + EventListenerList get hashChange => this['hashchange']; |
| - /// @domName XMLHttpRequest.status; @docsEditable true |
| - final int status; |
| + EventListenerList get load => this['load']; |
| - /// @domName XMLHttpRequest.statusText; @docsEditable true |
| - final String statusText; |
| + EventListenerList get message => this['message']; |
| - /// @domName XMLHttpRequest.upload; @docsEditable true |
| - final HttpRequestUpload upload; |
| + EventListenerList get offline => this['offline']; |
| - /// @domName XMLHttpRequest.withCredentials; @docsEditable true |
| - bool withCredentials; |
| + EventListenerList get online => this['online']; |
| - /// @domName XMLHttpRequest.abort; @docsEditable true |
| - void abort() native; |
| + EventListenerList get popState => this['popstate']; |
| - /// @domName XMLHttpRequest.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + EventListenerList get resize => this['resize']; |
| - /// @domName XMLHttpRequest.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| + EventListenerList get storage => this['storage']; |
| - /// @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true |
| - String getAllResponseHeaders() native; |
| + EventListenerList get unload => this['unload']; |
| +} |
| +// 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. |
| - /// @domName XMLHttpRequest.getResponseHeader; @docsEditable true |
| - String getResponseHeader(String header) native; |
| - /// @domName XMLHttpRequest.open; @docsEditable true |
| - void open(String method, String url, [bool async, String user, String password]) native; |
| +/// @domName Gamepad; @docsEditable true |
| +class Gamepad native "*Gamepad" { |
| - /// @domName XMLHttpRequest.overrideMimeType; @docsEditable true |
| - void overrideMimeType(String override) native; |
| + /// @domName Gamepad.axes; @docsEditable true |
| + final List<num> axes; |
| - /// @domName XMLHttpRequest.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName Gamepad.buttons; @docsEditable true |
| + final List<num> buttons; |
| - /// @domName XMLHttpRequest.send; @docsEditable true |
| - void send([data]) native; |
| + /// @domName Gamepad.id; @docsEditable true |
| + final String id; |
| - /// @domName XMLHttpRequest.setRequestHeader; @docsEditable true |
| - void setRequestHeader(String header, String value) native; |
| + /// @domName Gamepad.index; @docsEditable true |
| + final int index; |
| + /// @domName Gamepad.timestamp; @docsEditable true |
| + final int timestamp; |
| } |
| +// 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. |
| -class HttpRequestEvents extends Events { |
| - HttpRequestEvents(EventTarget _ptr) : super(_ptr); |
| - EventListenerList get abort => this['abort']; |
| +/// @domName Geolocation; @docsEditable true |
| +class Geolocation native "*Geolocation" { |
| - EventListenerList get error => this['error']; |
| + /// @domName Geolocation.clearWatch; @docsEditable true |
| + void clearWatch(int watchId) native; |
| - EventListenerList get load => this['load']; |
| + /// @domName Geolocation.getCurrentPosition; @docsEditable true |
| + void getCurrentPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]) native; |
| - EventListenerList get loadEnd => this['loadend']; |
| + /// @domName Geolocation.watchPosition; @docsEditable true |
| + int watchPosition(PositionCallback successCallback, [PositionErrorCallback errorCallback, Object options]) 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. |
| - EventListenerList get loadStart => this['loadstart']; |
| - EventListenerList get progress => this['progress']; |
| +/// @domName Geoposition; @docsEditable true |
| +class Geoposition native "*Geoposition" { |
| - EventListenerList get readyStateChange => this['readystatechange']; |
| + /// @domName Geoposition.coords; @docsEditable true |
| + final Coordinates coords; |
| + |
| + /// @domName Geoposition.timestamp; @docsEditable true |
| + final int timestamp; |
| } |
| // 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. |
| -/// @domName XMLHttpRequestException; @docsEditable true |
| -class HttpRequestException native "*XMLHttpRequestException" { |
| - |
| - static const int ABORT_ERR = 102; |
| +/// @domName HTMLHRElement; @docsEditable true |
| +class HRElement extends Element implements Element native "*HTMLHRElement" { |
| - static const int NETWORK_ERR = 101; |
| + factory HRElement() => document.$dom_createElement("hr"); |
| - /// @domName XMLHttpRequestException.code; @docsEditable true |
| - final int code; |
| + /// @domName HTMLHRElement.align; @docsEditable true |
| + String align; |
| - /// @domName XMLHttpRequestException.message; @docsEditable true |
| - final String message; |
| + /// @domName HTMLHRElement.noShade; @docsEditable true |
| + bool noShade; |
| - /// @domName XMLHttpRequestException.name; @docsEditable true |
| - final String name; |
| + /// @domName HTMLHRElement.size; @docsEditable true |
| + String size; |
| - /// @domName XMLHttpRequestException.toString; @docsEditable true |
| - String toString() native; |
| + /// @domName HTMLHRElement.width; @docsEditable true |
| + String 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. |
| -/// @domName XMLHttpRequestProgressEvent; @docsEditable true |
| -class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProgressEvent" { |
| +/// @domName HashChangeEvent; @docsEditable true |
| +class HashChangeEvent extends Event native "*HashChangeEvent" { |
| - /// @domName XMLHttpRequestProgressEvent.position; @docsEditable true |
| - final int position; |
| + /// @domName HashChangeEvent.newURL; @docsEditable true |
| + @JSName('newURL') |
| + final String newUrl; |
| - /// @domName XMLHttpRequestProgressEvent.totalSize; @docsEditable true |
| - final int totalSize; |
| + /// @domName HashChangeEvent.oldURL; @docsEditable true |
| + @JSName('oldURL') |
| + final String oldUrl; |
| + |
| + /// @domName HashChangeEvent.initHashChangeEvent; @docsEditable true |
| + void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) 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. |
| -/// @domName XMLHttpRequestUpload; @docsEditable true |
| -class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { |
| +/// @domName HTMLHeadElement; @docsEditable true |
| +class HeadElement extends Element implements Element native "*HTMLHeadElement" { |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - HttpRequestUploadEvents get on => |
| - new HttpRequestUploadEvents(this); |
| + factory HeadElement() => document.$dom_createElement("head"); |
| - /// @domName XMLHttpRequestUpload.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName HTMLHeadElement.profile; @docsEditable true |
| + String profile; |
| +} |
| +// 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. |
| - /// @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| - /// @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| -} |
| +/// @domName HTMLHeadingElement; @docsEditable true |
| +class HeadingElement extends Element implements Element native "*HTMLHeadingElement" { |
| -class HttpRequestUploadEvents extends Events { |
| - HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); |
| + factory HeadingElement.h1() => document.$dom_createElement("h1"); |
| - EventListenerList get abort => this['abort']; |
| + factory HeadingElement.h2() => document.$dom_createElement("h2"); |
| - EventListenerList get error => this['error']; |
| + factory HeadingElement.h3() => document.$dom_createElement("h3"); |
| - EventListenerList get load => this['load']; |
| + factory HeadingElement.h4() => document.$dom_createElement("h4"); |
| - EventListenerList get loadEnd => this['loadend']; |
| + factory HeadingElement.h5() => document.$dom_createElement("h5"); |
| - EventListenerList get loadStart => this['loadstart']; |
| + factory HeadingElement.h6() => document.$dom_createElement("h6"); |
| - EventListenerList get progress => this['progress']; |
| + /// @domName HTMLHeadingElement.align; @docsEditable true |
| + String align; |
| } |
| // 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. |
| -/// @domName IDBAny; @docsEditable true |
| -class IDBAny native "*IDBAny" { |
| -} |
| -// 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. |
| +/// @domName HTMLAllCollection; @docsEditable true |
| +class HtmlAllCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLAllCollection" { |
| + |
| + /// @domName HTMLAllCollection.length; @docsEditable true |
| + final int length; |
| + Node operator[](int index) => JS("Node", "#[#]", this, index); |
| -/// @domName IDBCursor; @docsEditable true |
| -class IDBCursor native "*IDBCursor" { |
| + void operator[]=(int index, Node value) { |
| + throw new UnsupportedError("Cannot assign element of immutable List."); |
| + } |
| + // -- start List<Node> mixins. |
| + // Node is the element type. |
| - static const int NEXT = 0; |
| + // From Iterable<Node>: |
| - static const int NEXT_NO_DUPLICATE = 1; |
| + Iterator<Node> iterator() { |
| + // Note: NodeLists are not fixed size. And most probably length shouldn't |
| + // be cached in both iterator _and_ forEach method. For now caching it |
| + // for consistency. |
| + return new FixedSizeListIterator<Node>(this); |
| + } |
| - static const int PREV = 2; |
| + // From Collection<Node>: |
| - static const int PREV_NO_DUPLICATE = 3; |
| + void add(Node value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| - /// @domName IDBCursor.direction; @docsEditable true |
| - final String direction; |
| + void addLast(Node value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| - /// @domName IDBCursor.key; @docsEditable true |
| - @_annotation_Creates_IDBKey @_annotation_Returns_IDBKey |
| - final Object key; |
| + void addAll(Collection<Node> collection) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| - /// @domName IDBCursor.primaryKey; @docsEditable true |
| - final Object primaryKey; |
| + bool contains(Node element) => Collections.contains(this, element); |
| - /// @domName IDBCursor.source; @docsEditable true |
| - final dynamic source; |
| + void forEach(void f(Node element)) => Collections.forEach(this, f); |
| - /// @domName IDBCursor.advance; @docsEditable true |
| - void advance(int count) native; |
| + Collection map(f(Node element)) => Collections.map(this, [], f); |
| - /// @domName IDBCursor.continueFunction; @docsEditable true |
| - void continueFunction([/*IDBKey*/ key]) { |
| - if (?key) { |
| - var key_1 = _convertDartToNative_IDBKey(key); |
| - _continueFunction_1(key_1); |
| - return; |
| - } |
| - _continueFunction_2(); |
| - return; |
| - } |
| - @JSName('continue') |
| - void _continueFunction_1(key) native; |
| - @JSName('continue') |
| - void _continueFunction_2() native; |
| + Collection<Node> filter(bool f(Node element)) => |
| + Collections.filter(this, <Node>[], f); |
| - /// @domName IDBCursor.delete; @docsEditable true |
| - IDBRequest delete() native; |
| + bool every(bool f(Node element)) => Collections.every(this, f); |
| - /// @domName IDBCursor.update; @docsEditable true |
| - IDBRequest update(/*any*/ value) { |
| - var value_1 = convertDartToNative_SerializedScriptValue(value); |
| - return _update_1(value_1); |
| - } |
| - @JSName('update') |
| - IDBRequest _update_1(value) 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. |
| + bool some(bool f(Node element)) => Collections.some(this, f); |
| + bool get isEmpty => this.length == 0; |
| -/// @domName IDBCursorWithValue; @docsEditable true |
| -class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { |
| + // From List<Node>: |
| - /// @domName IDBCursorWithValue.value; @docsEditable true |
| - @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScriptValue |
| - final Object value; |
| -} |
| -// 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. |
| + void sort([Comparator<Node> compare = Comparable.compare]) { |
| + throw new UnsupportedError("Cannot sort immutable List."); |
| + } |
| + int indexOf(Node element, [int start = 0]) => |
| + _Lists.indexOf(this, element, start, this.length); |
| -/// @domName IDBDatabase |
| -class IDBDatabase extends EventTarget native "*IDBDatabase" { |
| + int lastIndexOf(Node element, [int start]) { |
| + if (start == null) start = length - 1; |
| + return _Lists.lastIndexOf(this, element, start); |
| + } |
| - IDBTransaction transaction(storeName_OR_storeNames, String mode) { |
| - if (mode != 'readonly' && mode != 'readwrite') { |
| - throw new ArgumentError(mode); |
| - } |
| + Node get first => this[0]; |
| - // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>, |
| - // and copy to JavaScript array if necessary. |
| + Node get last => this[length - 1]; |
| - if (_transaction_fn != null) { |
| - return _transaction_fn(this, storeName_OR_storeNames, mode); |
| - } |
| + Node removeLast() { |
| + throw new UnsupportedError("Cannot removeLast on immutable List."); |
| + } |
| - // Try and create a transaction with a string mode. Browsers that expect a |
| - // numeric mode tend to convert the string into a number. This fails |
| - // silently, resulting in zero ('readonly'). |
| - var txn = _transaction(storeName_OR_storeNames, mode); |
| - if (_hasNumericMode(txn)) { |
| - _transaction_fn = _transaction_numeric_mode; |
| - txn = _transaction_fn(this, storeName_OR_storeNames, mode); |
| - } else { |
| - _transaction_fn = _transaction_string_mode; |
| - } |
| - return txn; |
| + void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
| + throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| - static IDBTransaction _transaction_string_mode(IDBDatabase db, stores, mode) { |
| - return db._transaction(stores, mode); |
| + void removeRange(int start, int rangeLength) { |
| + throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - static IDBTransaction _transaction_numeric_mode(IDBDatabase db, stores, mode) { |
| - int intMode; |
| - if (mode == 'readonly') intMode = IDBTransaction.READ_ONLY; |
| - if (mode == 'readwrite') intMode = IDBTransaction.READ_WRITE; |
| - return db._transaction(stores, intMode); |
| + void insertRange(int start, int rangeLength, [Node initialValue]) { |
| + throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - @JSName('transaction') |
| - IDBTransaction _transaction(stores, mode) native; |
| + List<Node> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <Node>[]); |
| - static bool _hasNumericMode(txn) => |
| - JS('bool', 'typeof(#.mode) === "number"', txn); |
| + // -- end List<Node> mixins. |
| + /// @domName HTMLAllCollection.item; @docsEditable true |
| + Node item(int index) native; |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - IDBDatabaseEvents get on => |
| - new IDBDatabaseEvents(this); |
| + /// @domName HTMLAllCollection.namedItem; @docsEditable true |
| + Node namedItem(String name) native; |
| - /// @domName IDBDatabase.name; @docsEditable true |
| - final String name; |
| + /// @domName HTMLAllCollection.tags; @docsEditable true |
| + @Returns('NodeList') @Creates('NodeList') |
| + List<Node> tags(String name) 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. |
| - /// @domName IDBDatabase.objectStoreNames; @docsEditable true |
| - @Returns('_DOMStringList') @Creates('_DOMStringList') |
| - final List<String> objectStoreNames; |
| - /// @domName IDBDatabase.version; @docsEditable true |
| - final dynamic version; |
| +/// @domName HTMLCollection; @docsEditable true |
| +class HtmlCollection implements JavaScriptIndexingBehavior, List<Node> native "*HTMLCollection" { |
| - /// @domName IDBDatabase.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName HTMLCollection.length; @docsEditable true |
| + final int length; |
| - /// @domName IDBDatabase.close; @docsEditable true |
| - void close() native; |
| + Node operator[](int index) => JS("Node", "#[#]", this, index); |
| - /// @domName IDBDatabase.createObjectStore; @docsEditable true |
| - IDBObjectStore createObjectStore(String name, [Map options]) { |
| - if (?options) { |
| - var options_1 = convertDartToNative_Dictionary(options); |
| - return _createObjectStore_1(name, options_1); |
| - } |
| - return _createObjectStore_2(name); |
| + void operator[]=(int index, Node value) { |
| + throw new UnsupportedError("Cannot assign element of immutable List."); |
| } |
| - @JSName('createObjectStore') |
| - IDBObjectStore _createObjectStore_1(name, options) native; |
| - @JSName('createObjectStore') |
| - IDBObjectStore _createObjectStore_2(name) native; |
| - |
| - /// @domName IDBDatabase.deleteObjectStore; @docsEditable true |
| - void deleteObjectStore(String name) native; |
| + // -- start List<Node> mixins. |
| + // Node is the element type. |
| - /// @domName IDBDatabase.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| + // From Iterable<Node>: |
| - /// @domName IDBDatabase.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + Iterator<Node> iterator() { |
| + // Note: NodeLists are not fixed size. And most probably length shouldn't |
| + // be cached in both iterator _and_ forEach method. For now caching it |
| + // for consistency. |
| + return new FixedSizeListIterator<Node>(this); |
| + } |
| - /// @domName IDBDatabase.setVersion; @docsEditable true |
| - IDBVersionChangeRequest setVersion(String version) native; |
| -} |
| + // From Collection<Node>: |
| -// TODO(sra): This should be a static member of IDBTransaction but dart2js |
| -// can't handle that. Move it back after dart2js is completely done. |
| -var _transaction_fn; // Assigned one of the static methods. |
| + void add(Node value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| -class IDBDatabaseEvents extends Events { |
| - IDBDatabaseEvents(EventTarget _ptr) : super(_ptr); |
| + void addLast(Node value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| - EventListenerList get abort => this['abort']; |
| + void addAll(Collection<Node> collection) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| - EventListenerList get error => this['error']; |
| + bool contains(Node element) => Collections.contains(this, element); |
| - EventListenerList get versionChange => this['versionchange']; |
| -} |
| -// 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. |
| + void forEach(void f(Node element)) => Collections.forEach(this, f); |
| + Collection map(f(Node element)) => Collections.map(this, [], f); |
| -/// @domName IDBDatabaseException; @docsEditable true |
| -class IDBDatabaseException native "*IDBDatabaseException" { |
| + Collection<Node> filter(bool f(Node element)) => |
| + Collections.filter(this, <Node>[], f); |
| - static const int ABORT_ERR = 20; |
| + bool every(bool f(Node element)) => Collections.every(this, f); |
| - static const int CONSTRAINT_ERR = 4; |
| + bool some(bool f(Node element)) => Collections.some(this, f); |
| - static const int DATA_ERR = 5; |
| + bool get isEmpty => this.length == 0; |
| - static const int NON_TRANSIENT_ERR = 2; |
| + // From List<Node>: |
| - static const int NOT_ALLOWED_ERR = 6; |
| + void sort([Comparator<Node> compare = Comparable.compare]) { |
| + throw new UnsupportedError("Cannot sort immutable List."); |
| + } |
| - static const int NOT_FOUND_ERR = 8; |
| + int indexOf(Node element, [int start = 0]) => |
| + _Lists.indexOf(this, element, start, this.length); |
| - static const int NO_ERR = 0; |
| + int lastIndexOf(Node element, [int start]) { |
| + if (start == null) start = length - 1; |
| + return _Lists.lastIndexOf(this, element, start); |
| + } |
| - static const int QUOTA_ERR = 22; |
| + Node get first => this[0]; |
| - static const int READ_ONLY_ERR = 9; |
| + Node get last => this[length - 1]; |
| - static const int TIMEOUT_ERR = 23; |
| + Node removeLast() { |
| + throw new UnsupportedError("Cannot removeLast on immutable List."); |
| + } |
| - static const int TRANSACTION_INACTIVE_ERR = 7; |
| + void setRange(int start, int rangeLength, List<Node> from, [int startFrom]) { |
| + throw new UnsupportedError("Cannot setRange on immutable List."); |
| + } |
| - static const int UNKNOWN_ERR = 1; |
| + void removeRange(int start, int rangeLength) { |
| + throw new UnsupportedError("Cannot removeRange on immutable List."); |
| + } |
| - static const int VER_ERR = 12; |
| + void insertRange(int start, int rangeLength, [Node initialValue]) { |
| + throw new UnsupportedError("Cannot insertRange on immutable List."); |
| + } |
| - /// @domName IDBDatabaseException.code; @docsEditable true |
| - final int code; |
| + List<Node> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <Node>[]); |
| - /// @domName IDBDatabaseException.message; @docsEditable true |
| - final String message; |
| + // -- end List<Node> mixins. |
| - /// @domName IDBDatabaseException.name; @docsEditable true |
| - final String name; |
| + /// @domName HTMLCollection.item; @docsEditable true |
| + Node item(int index) native; |
| - /// @domName IDBDatabaseException.toString; @docsEditable true |
| - String toString() native; |
| + /// @domName HTMLCollection.namedItem; @docsEditable true |
| + Node namedItem(String name) 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. |
| +// WARNING: Do not edit - generated code. |
| -/// @domName IDBFactory; @docsEditable true |
| -class IDBFactory native "*IDBFactory" { |
| - /// @domName IDBFactory.cmp; @docsEditable true |
| - int cmp(/*IDBKey*/ first, /*IDBKey*/ second) { |
| - var first_1 = _convertDartToNative_IDBKey(first); |
| - var second_2 = _convertDartToNative_IDBKey(second); |
| - return _cmp_1(first_1, second_2); |
| - } |
| - @JSName('cmp') |
| - int _cmp_1(first, second) native; |
| +/// @domName HTMLDocument |
| +class HtmlDocument extends Document native "*HTMLDocument" { |
| - /// @domName IDBFactory.deleteDatabase; @docsEditable true |
| - IDBVersionChangeRequest deleteDatabase(String name) native; |
| + /// @domName HTMLDocument.activeElement; @docsEditable true |
| + final Element activeElement; |
| - /// @domName IDBFactory.open; @docsEditable true |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBDatabase') |
| - IDBOpenDBRequest open(String name, [int version]) native; |
| + /** @domName Document.body */ |
| + BodyElement get body => document.$dom_body; |
| - /// @domName IDBFactory.webkitGetDatabaseNames; @docsEditable true |
| - IDBRequest webkitGetDatabaseNames() 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. |
| + /** @domName Document.body */ |
| + void set body(BodyElement value) { |
| + document.$dom_body = value; |
| + } |
| + /** @domName Document.caretRangeFromPoint */ |
| + Range caretRangeFromPoint(int x, int y) { |
| + return document.$dom_caretRangeFromPoint(x, y); |
| + } |
| -/// @domName IDBIndex; @docsEditable true |
| -class IDBIndex native "*IDBIndex" { |
| + /** @domName Document.elementFromPoint */ |
| + Element elementFromPoint(int x, int y) { |
| + return document.$dom_elementFromPoint(x, y); |
| + } |
| - /// @domName IDBIndex.keyPath; @docsEditable true |
| - final dynamic keyPath; |
| + /** @domName Document.head */ |
| + HeadElement get head => document.$dom_head; |
| - /// @domName IDBIndex.multiEntry; @docsEditable true |
| - final bool multiEntry; |
| + /** @domName Document.lastModified */ |
| + String get lastModified => document.$dom_lastModified; |
| - /// @domName IDBIndex.name; @docsEditable true |
| - final String name; |
| + /** @domName Document.referrer */ |
| + String get referrer => document.$dom_referrer; |
| - /// @domName IDBIndex.objectStore; @docsEditable true |
| - final IDBObjectStore objectStore; |
| + /** @domName Document.styleSheets */ |
| + List<StyleSheet> get styleSheets => document.$dom_styleSheets; |
| - /// @domName IDBIndex.unique; @docsEditable true |
| - final bool unique; |
| + /** @domName Document.title */ |
| + String get title => document.$dom_title; |
| - /// @domName IDBIndex.count; @docsEditable true |
| - IDBRequest count([key_OR_range]) { |
| - if (!?key_OR_range) { |
| - return _count_1(); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))) { |
| - return _count_2(key_OR_range); |
| - } |
| - if (?key_OR_range) { |
| - var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _count_3(key_1); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('count') |
| - IDBRequest _count_1() native; |
| - @JSName('count') |
| - IDBRequest _count_2(IDBKeyRange range) native; |
| - @JSName('count') |
| - IDBRequest _count_3(key) native; |
| - |
| - /// @domName IDBIndex.get; @docsEditable true |
| - IDBRequest get(key) { |
| - if ((?key && (key is IDBKeyRange || key == null))) { |
| - return _get_1(key); |
| - } |
| - if (?key) { |
| - var key_1 = _convertDartToNative_IDBKey(key); |
| - return _get_2(key_1); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('get') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedScriptValue |
| - IDBRequest _get_1(IDBKeyRange key) native; |
| - @JSName('get') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedScriptValue |
| - IDBRequest _get_2(key) native; |
| - |
| - /// @domName IDBIndex.getKey; @docsEditable true |
| - IDBRequest getKey(key) { |
| - if ((?key && (key is IDBKeyRange || key == null))) { |
| - return _getKey_1(key); |
| - } |
| - if (?key) { |
| - var key_1 = _convertDartToNative_IDBKey(key); |
| - return _getKey_2(key_1); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('getKey') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedScriptValue @Creates('IDBObjectStore') |
| - IDBRequest _getKey_1(IDBKeyRange key) native; |
| - @JSName('getKey') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedScriptValue @Creates('IDBObjectStore') |
| - IDBRequest _getKey_2(key) native; |
| - |
| - /// @domName IDBIndex.openCursor; @docsEditable true |
| - IDBRequest openCursor([key_OR_range, String direction]) { |
| - if (!?key_OR_range && |
| - !?direction) { |
| - return _openCursor_1(); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && |
| - !?direction) { |
| - return _openCursor_2(key_OR_range); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))) { |
| - return _openCursor_3(key_OR_range, direction); |
| - } |
| - if (?key_OR_range && |
| - !?direction) { |
| - var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _openCursor_4(key_1); |
| - } |
| - if (?key_OR_range) { |
| - var key_2 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _openCursor_5(key_2, direction); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| + /** @domName Document.title */ |
| + void set title(String value) { |
| + document.$dom_title = value; |
| } |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_1() native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_2(IDBKeyRange range) native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_3(IDBKeyRange range, direction) native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_4(key) native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_5(key, direction) native; |
| - |
| - /// @domName IDBIndex.openKeyCursor; @docsEditable true |
| - IDBRequest openKeyCursor([key_OR_range, String direction]) { |
| - if (!?key_OR_range && |
| - !?direction) { |
| - return _openKeyCursor_1(); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && |
| - !?direction) { |
| - return _openKeyCursor_2(key_OR_range); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))) { |
| - return _openKeyCursor_3(key_OR_range, direction); |
| - } |
| - if (?key_OR_range && |
| - !?direction) { |
| - var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _openKeyCursor_4(key_1); |
| - } |
| - if (?key_OR_range) { |
| - var key_2 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _openKeyCursor_5(key_2, direction); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| + |
| + /** @domName Document.webkitCancelFullScreen */ |
| + void webkitCancelFullScreen() { |
| + document.$dom_webkitCancelFullScreen(); |
| } |
| - @JSName('openKeyCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openKeyCursor_1() native; |
| - @JSName('openKeyCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openKeyCursor_2(IDBKeyRange range) native; |
| - @JSName('openKeyCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openKeyCursor_3(IDBKeyRange range, direction) native; |
| - @JSName('openKeyCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openKeyCursor_4(key) native; |
| - @JSName('openKeyCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openKeyCursor_5(key, direction) 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. |
| + /** @domName Document.webkitExitFullscreen */ |
| + void webkitExitFullscreen() { |
| + document.$dom_webkitExitFullscreen(); |
| + } |
| -/// @domName IDBKey; @docsEditable true |
| -class IDBKey native "*IDBKey" { |
| -} |
| -// 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. |
| + /** @domName Document.webkitExitPointerLock */ |
| + void webkitExitPointerLock() { |
| + document.$dom_webkitExitPointerLock(); |
| + } |
| + /** @domName Document.webkitFullscreenElement */ |
| + Element get webkitFullscreenElement => document.$dom_webkitFullscreenElement; |
| -/// @domName IDBKeyRange |
| -class IDBKeyRange native "*IDBKeyRange" { |
| - /** |
| - * @domName IDBKeyRange.only |
| - */ |
| - factory IDBKeyRange.only(/*IDBKey*/ value) => |
| - _IDBKeyRangeFactoryProvider.createIDBKeyRange_only(value); |
| + /** @domName Document.webkitFullscreenEnabled */ |
| + bool get webkitFullscreenEnabled => document.$dom_webkitFullscreenEnabled; |
| - /** |
| - * @domName IDBKeyRange.lowerBound |
| - */ |
| - factory IDBKeyRange.lowerBound(/*IDBKey*/ bound, [bool open = false]) => |
| - _IDBKeyRangeFactoryProvider.createIDBKeyRange_lowerBound(bound, open); |
| + /** @domName Document.webkitHidden */ |
| + bool get webkitHidden => document.$dom_webkitHidden; |
| - /** |
| - * @domName IDBKeyRange.upperBound |
| - */ |
| - factory IDBKeyRange.upperBound(/*IDBKey*/ bound, [bool open = false]) => |
| - _IDBKeyRangeFactoryProvider.createIDBKeyRange_upperBound(bound, open); |
| + /** @domName Document.webkitIsFullScreen */ |
| + bool get webkitIsFullScreen => document.$dom_webkitIsFullScreen; |
| - /** |
| - * @domName IDBKeyRange.bound |
| - */ |
| - factory IDBKeyRange.bound(/*IDBKey*/ lower, /*IDBKey*/ upper, |
| - [bool lowerOpen = false, bool upperOpen = false]) => |
| - _IDBKeyRangeFactoryProvider.createIDBKeyRange_bound( |
| - lower, upper, lowerOpen, upperOpen); |
| - |
| - |
| - /// @domName IDBKeyRange.lower; @docsEditable true |
| - dynamic get lower => _convertNativeToDart_IDBKey(this._lower); |
| - @JSName('lower') |
| - final dynamic _lower; |
| - |
| - /// @domName IDBKeyRange.lowerOpen; @docsEditable true |
| - final bool lowerOpen; |
| - |
| - /// @domName IDBKeyRange.upper; @docsEditable true |
| - dynamic get upper => _convertNativeToDart_IDBKey(this._upper); |
| - @JSName('upper') |
| - final dynamic _upper; |
| - |
| - /// @domName IDBKeyRange.upperOpen; @docsEditable true |
| - final bool upperOpen; |
| - |
| - /// @domName IDBKeyRange.bound_; @docsEditable true |
| - static IDBKeyRange bound_(/*IDBKey*/ lower, /*IDBKey*/ upper, [bool lowerOpen, bool upperOpen]) { |
| - if (?upperOpen) { |
| - var lower_1 = _convertDartToNative_IDBKey(lower); |
| - var upper_2 = _convertDartToNative_IDBKey(upper); |
| - return _bound__1(lower_1, upper_2, lowerOpen, upperOpen); |
| - } |
| - if (?lowerOpen) { |
| - var lower_3 = _convertDartToNative_IDBKey(lower); |
| - var upper_4 = _convertDartToNative_IDBKey(upper); |
| - return _bound__2(lower_3, upper_4, lowerOpen); |
| - } |
| - var lower_5 = _convertDartToNative_IDBKey(lower); |
| - var upper_6 = _convertDartToNative_IDBKey(upper); |
| - return _bound__3(lower_5, upper_6); |
| - } |
| - @JSName('bound') |
| - static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native; |
| - @JSName('bound') |
| - static IDBKeyRange _bound__2(lower, upper, lowerOpen) native; |
| - @JSName('bound') |
| - static IDBKeyRange _bound__3(lower, upper) native; |
| - |
| - /// @domName IDBKeyRange.lowerBound_; @docsEditable true |
| - static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { |
| - if (?open) { |
| - var bound_1 = _convertDartToNative_IDBKey(bound); |
| - return _lowerBound__1(bound_1, open); |
| - } |
| - var bound_2 = _convertDartToNative_IDBKey(bound); |
| - return _lowerBound__2(bound_2); |
| - } |
| - @JSName('lowerBound') |
| - static IDBKeyRange _lowerBound__1(bound, open) native; |
| - @JSName('lowerBound') |
| - static IDBKeyRange _lowerBound__2(bound) native; |
| - |
| - /// @domName IDBKeyRange.only_; @docsEditable true |
| - static IDBKeyRange only_(/*IDBKey*/ value) { |
| - var value_1 = _convertDartToNative_IDBKey(value); |
| - return _only__1(value_1); |
| - } |
| - @JSName('only') |
| - static IDBKeyRange _only__1(value) native; |
| - |
| - /// @domName IDBKeyRange.upperBound_; @docsEditable true |
| - static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { |
| - if (?open) { |
| - var bound_1 = _convertDartToNative_IDBKey(bound); |
| - return _upperBound__1(bound_1, open); |
| - } |
| - var bound_2 = _convertDartToNative_IDBKey(bound); |
| - return _upperBound__2(bound_2); |
| - } |
| - @JSName('upperBound') |
| - static IDBKeyRange _upperBound__1(bound, open) native; |
| - @JSName('upperBound') |
| - static IDBKeyRange _upperBound__2(bound) native; |
| + /** @domName Document.webkitPointerLockElement */ |
| + Element get webkitPointerLockElement => |
| + document.$dom_webkitPointerLockElement; |
| + /** @domName Document.webkitVisibilityState */ |
| + String get webkitVisibilityState => document.$dom_webkitVisibilityState; |
| } |
| // 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. |
| - |
| -/// @domName IDBObjectStore; @docsEditable true |
| -class IDBObjectStore native "*IDBObjectStore" { |
| - |
| - /// @domName IDBObjectStore.autoIncrement; @docsEditable true |
| - final bool autoIncrement; |
| - |
| - /// @domName IDBObjectStore.indexNames; @docsEditable true |
| - @Returns('_DOMStringList') @Creates('_DOMStringList') |
| - final List<String> indexNames; |
| - |
| - /// @domName IDBObjectStore.keyPath; @docsEditable true |
| - final dynamic keyPath; |
| - |
| - /// @domName IDBObjectStore.name; @docsEditable true |
| - final String name; |
| - |
| - /// @domName IDBObjectStore.transaction; @docsEditable true |
| - final IDBTransaction transaction; |
| - |
| - /// @domName IDBObjectStore.add; @docsEditable true |
| - IDBRequest add(/*any*/ value, [/*IDBKey*/ key]) { |
| - if (?key) { |
| - var value_1 = convertDartToNative_SerializedScriptValue(value); |
| - var key_2 = _convertDartToNative_IDBKey(key); |
| - return _add_1(value_1, key_2); |
| - } |
| - var value_3 = convertDartToNative_SerializedScriptValue(value); |
| - return _add_2(value_3); |
| - } |
| - @JSName('add') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| - IDBRequest _add_1(value, key) native; |
| - @JSName('add') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| - IDBRequest _add_2(value) native; |
| - |
| - /// @domName IDBObjectStore.clear; @docsEditable true |
| - IDBRequest clear() native; |
| - |
| - /// @domName IDBObjectStore.count; @docsEditable true |
| - IDBRequest count([key_OR_range]) { |
| - if (!?key_OR_range) { |
| - return _count_1(); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))) { |
| - return _count_2(key_OR_range); |
| - } |
| - if (?key_OR_range) { |
| - var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _count_3(key_1); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('count') |
| - IDBRequest _count_1() native; |
| - @JSName('count') |
| - IDBRequest _count_2(IDBKeyRange range) native; |
| - @JSName('count') |
| - IDBRequest _count_3(key) native; |
| - |
| - /// @domName IDBObjectStore.createIndex; @docsEditable true |
| - IDBIndex createIndex(String name, keyPath, [Map options]) { |
| - if ((?keyPath && (keyPath is List<String> || keyPath == null)) && |
| - !?options) { |
| - List keyPath_1 = convertDartToNative_StringArray(keyPath); |
| - return _createIndex_1(name, keyPath_1); |
| - } |
| - if ((?keyPath && (keyPath is List<String> || keyPath == null))) { |
| - List keyPath_2 = convertDartToNative_StringArray(keyPath); |
| - var options_3 = convertDartToNative_Dictionary(options); |
| - return _createIndex_2(name, keyPath_2, options_3); |
| - } |
| - if ((?keyPath && (keyPath is String || keyPath == null)) && |
| - !?options) { |
| - return _createIndex_3(name, keyPath); |
| - } |
| - if ((?keyPath && (keyPath is String || keyPath == null))) { |
| - var options_4 = convertDartToNative_Dictionary(options); |
| - return _createIndex_4(name, keyPath, options_4); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('createIndex') |
| - IDBIndex _createIndex_1(name, List keyPath) native; |
| - @JSName('createIndex') |
| - IDBIndex _createIndex_2(name, List keyPath, options) native; |
| - @JSName('createIndex') |
| - IDBIndex _createIndex_3(name, String keyPath) native; |
| - @JSName('createIndex') |
| - IDBIndex _createIndex_4(name, String keyPath, options) native; |
| - |
| - /// @domName IDBObjectStore.delete; @docsEditable true |
| - IDBRequest delete(key_OR_keyRange) { |
| - if ((?key_OR_keyRange && (key_OR_keyRange is IDBKeyRange || key_OR_keyRange == null))) { |
| - return _delete_1(key_OR_keyRange); |
| - } |
| - if (?key_OR_keyRange) { |
| - var key_1 = _convertDartToNative_IDBKey(key_OR_keyRange); |
| - return _delete_2(key_1); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('delete') |
| - IDBRequest _delete_1(IDBKeyRange keyRange) native; |
| - @JSName('delete') |
| - IDBRequest _delete_2(key) native; |
| - |
| - /// @domName IDBObjectStore.deleteIndex; @docsEditable true |
| - void deleteIndex(String name) native; |
| - |
| - /// @domName IDBObjectStore.getObject; @docsEditable true |
| - IDBRequest getObject(key) { |
| - if ((?key && (key is IDBKeyRange || key == null))) { |
| - return _getObject_1(key); |
| - } |
| - if (?key) { |
| - var key_1 = _convertDartToNative_IDBKey(key); |
| - return _getObject_2(key_1); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('get') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedScriptValue |
| - IDBRequest _getObject_1(IDBKeyRange key) native; |
| - @JSName('get') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @annotation_Creates_SerializedScriptValue |
| - IDBRequest _getObject_2(key) native; |
| - |
| - /// @domName IDBObjectStore.index; @docsEditable true |
| - IDBIndex index(String name) native; |
| - |
| - /// @domName IDBObjectStore.openCursor; @docsEditable true |
| - IDBRequest openCursor([key_OR_range, String direction]) { |
| - if (!?key_OR_range && |
| - !?direction) { |
| - return _openCursor_1(); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null)) && |
| - !?direction) { |
| - return _openCursor_2(key_OR_range); |
| - } |
| - if ((?key_OR_range && (key_OR_range is IDBKeyRange || key_OR_range == null))) { |
| - return _openCursor_3(key_OR_range, direction); |
| - } |
| - if (?key_OR_range && |
| - !?direction) { |
| - var key_1 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _openCursor_4(key_1); |
| - } |
| - if (?key_OR_range) { |
| - var key_2 = _convertDartToNative_IDBKey(key_OR_range); |
| - return _openCursor_5(key_2, direction); |
| - } |
| - throw new ArgumentError("Incorrect number or type of arguments"); |
| - } |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_1() native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_2(IDBKeyRange range) native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_3(IDBKeyRange range, direction) native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_4(key) native; |
| - @JSName('openCursor') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
| - IDBRequest _openCursor_5(key, direction) native; |
| - |
| - /// @domName IDBObjectStore.put; @docsEditable true |
| - IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { |
| - if (?key) { |
| - var value_1 = convertDartToNative_SerializedScriptValue(value); |
| - var key_2 = _convertDartToNative_IDBKey(key); |
| - return _put_1(value_1, key_2); |
| - } |
| - var value_3 = convertDartToNative_SerializedScriptValue(value); |
| - return _put_2(value_3); |
| - } |
| - @JSName('put') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| - IDBRequest _put_1(value, key) native; |
| - @JSName('put') |
| - @Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
| - IDBRequest _put_2(value) native; |
| + |
| +/// @domName HTMLHtmlElement; @docsEditable true |
| +class HtmlElement extends Element implements Element native "*HTMLHtmlElement" { |
| + |
| + factory HtmlElement() => document.$dom_createElement("html"); |
| } |
| // 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. |
| -/// @domName IDBOpenDBRequest; @docsEditable true |
| -class IDBOpenDBRequest extends IDBRequest implements EventTarget native "*IDBOpenDBRequest" { |
| +/// @domName HTMLOptionsCollection; @docsEditable true |
| +class HtmlOptionsCollection extends HtmlCollection native "*HTMLOptionsCollection" { |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - IDBOpenDBRequestEvents get on => |
| - new IDBOpenDBRequestEvents(this); |
| -} |
| + // Shadowing definition. |
| + /// @domName HTMLOptionsCollection.length; @docsEditable true |
| + int get length => JS("int", "#.length", this); |
| -class IDBOpenDBRequestEvents extends IDBRequestEvents { |
| - IDBOpenDBRequestEvents(EventTarget _ptr) : super(_ptr); |
| + /// @domName HTMLOptionsCollection.length; @docsEditable true |
| + void set length(int value) { |
| + JS("void", "#.length = #", this, value); |
| + } |
| - EventListenerList get blocked => this['blocked']; |
| + /// @domName HTMLOptionsCollection.selectedIndex; @docsEditable true |
| + int selectedIndex; |
| - EventListenerList get upgradeNeeded => this['upgradeneeded']; |
| + /// @domName HTMLOptionsCollection.remove; @docsEditable true |
| + void remove(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. |
| -/// @domName IDBRequest; @docsEditable true |
| -class IDBRequest extends EventTarget native "*IDBRequest" { |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - IDBRequestEvents get on => |
| - new IDBRequestEvents(this); |
| - |
| - /// @domName IDBRequest.error; @docsEditable true |
| - final DOMError error; |
| - |
| - /// @domName IDBRequest.errorCode; @docsEditable true |
| - final int errorCode; |
| - |
| - /// @domName IDBRequest.readyState; @docsEditable true |
| - final String readyState; |
| - |
| - /// @domName IDBRequest.result; @docsEditable true |
| - dynamic get result => _convertNativeToDart_IDBAny(this._result); |
| - @JSName('result') |
| - @Creates('Null') |
| - final dynamic _result; |
| +/// @domName XMLHttpRequest |
| +class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
| + factory HttpRequest.get(String url, onComplete(HttpRequest request)) => |
| + _HttpRequestFactoryProvider.createHttpRequest_get(url, onComplete); |
| - /// @domName IDBRequest.source; @docsEditable true |
| - @Creates('Null') |
| - final dynamic source; |
| + factory HttpRequest.getWithCredentials(String url, |
| + onComplete(HttpRequest request)) => |
| + _HttpRequestFactoryProvider.createHttpRequest_getWithCredentials(url, |
| + onComplete); |
| - /// @domName IDBRequest.transaction; @docsEditable true |
| - final IDBTransaction transaction; |
| - /// @domName IDBRequest.webkitErrorMessage; @docsEditable true |
| - final String webkitErrorMessage; |
| + factory HttpRequest() => _HttpRequestFactoryProvider.createHttpRequest(); |
| - /// @domName IDBRequest.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + HttpRequestEvents get on => |
| + new HttpRequestEvents(this); |
| - /// @domName IDBRequest.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event evt) native; |
| + static const int DONE = 4; |
| - /// @domName IDBRequest.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| -} |
| + static const int HEADERS_RECEIVED = 2; |
| -class IDBRequestEvents extends Events { |
| - IDBRequestEvents(EventTarget _ptr) : super(_ptr); |
| + static const int LOADING = 3; |
| - EventListenerList get error => this['error']; |
| + static const int OPENED = 1; |
| - EventListenerList get success => this['success']; |
| -} |
| -// 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. |
| + static const int UNSENT = 0; |
| + /// @domName XMLHttpRequest.readyState; @docsEditable true |
| + final int readyState; |
| -/// @domName IDBTransaction; @docsEditable true |
| -class IDBTransaction extends EventTarget native "*IDBTransaction" { |
| + /// @domName XMLHttpRequest.response; @docsEditable true |
| + @Creates('ArrayBuffer|Blob|Document|=Object|=List|String|num') |
| + final Object response; |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - IDBTransactionEvents get on => |
| - new IDBTransactionEvents(this); |
| + /// @domName XMLHttpRequest.responseText; @docsEditable true |
| + final String responseText; |
| - static const int READ_ONLY = 0; |
| + /// @domName XMLHttpRequest.responseType; @docsEditable true |
| + String responseType; |
| - static const int READ_WRITE = 1; |
| + /// @domName XMLHttpRequest.responseXML; @docsEditable true |
| + @JSName('responseXML') |
| + final Document responseXml; |
| - static const int VERSION_CHANGE = 2; |
| + /// @domName XMLHttpRequest.status; @docsEditable true |
| + final int status; |
| - /// @domName IDBTransaction.db; @docsEditable true |
| - final IDBDatabase db; |
| + /// @domName XMLHttpRequest.statusText; @docsEditable true |
| + final String statusText; |
| - /// @domName IDBTransaction.error; @docsEditable true |
| - final DOMError error; |
| + /// @domName XMLHttpRequest.upload; @docsEditable true |
| + final HttpRequestUpload upload; |
| - /// @domName IDBTransaction.mode; @docsEditable true |
| - final String mode; |
| + /// @domName XMLHttpRequest.withCredentials; @docsEditable true |
| + bool withCredentials; |
| - /// @domName IDBTransaction.abort; @docsEditable true |
| + /// @domName XMLHttpRequest.abort; @docsEditable true |
| void abort() native; |
| - /// @domName IDBTransaction.addEventListener; @docsEditable true |
| + /// @domName XMLHttpRequest.addEventListener; @docsEditable true |
| @JSName('addEventListener') |
| void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName IDBTransaction.dispatchEvent; @docsEditable true |
| + /// @domName XMLHttpRequest.dispatchEvent; @docsEditable true |
| @JSName('dispatchEvent') |
| bool $dom_dispatchEvent(Event evt) native; |
| - /// @domName IDBTransaction.objectStore; @docsEditable true |
| - IDBObjectStore objectStore(String name) native; |
| + /// @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true |
| + String getAllResponseHeaders() native; |
| + |
| + /// @domName XMLHttpRequest.getResponseHeader; @docsEditable true |
| + String getResponseHeader(String header) native; |
| + |
| + /// @domName XMLHttpRequest.open; @docsEditable true |
| + void open(String method, String url, [bool async, String user, String password]) native; |
| + |
| + /// @domName XMLHttpRequest.overrideMimeType; @docsEditable true |
| + void overrideMimeType(String override) native; |
| - /// @domName IDBTransaction.removeEventListener; @docsEditable true |
| + /// @domName XMLHttpRequest.removeEventListener; @docsEditable true |
| @JSName('removeEventListener') |
| void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + |
| + /// @domName XMLHttpRequest.send; @docsEditable true |
| + void send([data]) native; |
| + |
| + /// @domName XMLHttpRequest.setRequestHeader; @docsEditable true |
| + void setRequestHeader(String header, String value) native; |
| + |
| } |
| -class IDBTransactionEvents extends Events { |
| - IDBTransactionEvents(EventTarget _ptr) : super(_ptr); |
| +class HttpRequestEvents extends Events { |
| + HttpRequestEvents(EventTarget _ptr) : super(_ptr); |
| EventListenerList get abort => this['abort']; |
| - EventListenerList get complete => this['complete']; |
| - |
| EventListenerList get error => this['error']; |
| + |
| + EventListenerList get load => this['load']; |
| + |
| + EventListenerList get loadEnd => this['loadend']; |
| + |
| + EventListenerList get loadStart => this['loadstart']; |
| + |
| + EventListenerList get progress => this['progress']; |
| + |
| + EventListenerList get readyStateChange => this['readystatechange']; |
| } |
| // 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. |
| -/// @domName IDBVersionChangeEvent; @docsEditable true |
| -class IDBUpgradeNeededEvent extends Event native "*IDBVersionChangeEvent" { |
| +/// @domName XMLHttpRequestException; @docsEditable true |
| +class HttpRequestException native "*XMLHttpRequestException" { |
| + |
| + static const int ABORT_ERR = 102; |
| + |
| + static const int NETWORK_ERR = 101; |
| + |
| + /// @domName XMLHttpRequestException.code; @docsEditable true |
| + final int code; |
| + |
| + /// @domName XMLHttpRequestException.message; @docsEditable true |
| + final String message; |
| - /// @domName IDBVersionChangeEvent.newVersion; @docsEditable true |
| - final int newVersion; |
| + /// @domName XMLHttpRequestException.name; @docsEditable true |
| + final String name; |
| - /// @domName IDBVersionChangeEvent.oldVersion; @docsEditable true |
| - final int oldVersion; |
| + /// @domName XMLHttpRequestException.toString; @docsEditable true |
| + String toString() 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. |
| -/// @domName IDBVersionChangeEvent; @docsEditable true |
| -class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" { |
| +/// @domName XMLHttpRequestProgressEvent; @docsEditable true |
| +class HttpRequestProgressEvent extends ProgressEvent native "*XMLHttpRequestProgressEvent" { |
| - /// @domName IDBVersionChangeEvent.version; @docsEditable true |
| - final String version; |
| + /// @domName XMLHttpRequestProgressEvent.position; @docsEditable true |
| + final int position; |
| + |
| + /// @domName XMLHttpRequestProgressEvent.totalSize; @docsEditable true |
| + final int totalSize; |
| } |
| // 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. |
| -/// @domName IDBVersionChangeRequest; @docsEditable true |
| -class IDBVersionChangeRequest extends IDBRequest implements EventTarget native "*IDBVersionChangeRequest" { |
| +/// @domName XMLHttpRequestUpload; @docsEditable true |
| +class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { |
| /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - IDBVersionChangeRequestEvents get on => |
| - new IDBVersionChangeRequestEvents(this); |
| + HttpRequestUploadEvents get on => |
| + new HttpRequestUploadEvents(this); |
| + |
| + /// @domName XMLHttpRequestUpload.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + |
| + /// @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event evt) native; |
| + |
| + /// @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| } |
| -class IDBVersionChangeRequestEvents extends IDBRequestEvents { |
| - IDBVersionChangeRequestEvents(EventTarget _ptr) : super(_ptr); |
| +class HttpRequestUploadEvents extends Events { |
| + HttpRequestUploadEvents(EventTarget _ptr) : super(_ptr); |
| + |
| + EventListenerList get abort => this['abort']; |
| + |
| + EventListenerList get error => this['error']; |
| + |
| + EventListenerList get load => this['load']; |
| + |
| + EventListenerList get loadEnd => this['loadend']; |
| + |
| + EventListenerList get loadStart => this['loadstart']; |
| - EventListenerList get blocked => this['blocked']; |
| + EventListenerList get progress => this['progress']; |
| } |
| // 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 |
| @@ -11422,7 +10513,7 @@ class LinkElement extends Element implements Element native "*HTMLLinkElement" { |
| final StyleSheet sheet; |
| /// @domName HTMLLinkElement.sizes; @docsEditable true |
| - DOMSettableTokenList sizes; |
| + DomSettableTokenList sizes; |
| /// @domName HTMLLinkElement.target; @docsEditable true |
| String target; |
| @@ -11471,7 +10562,7 @@ class LocalHistory implements History native "*History" { |
| class LocalLocation implements Location native "*Location" { |
| /// @domName Location.ancestorOrigins; @docsEditable true |
| - @Returns('_DOMStringList') @Creates('_DOMStringList') |
| + @Returns('_DomStringList') @Creates('_DomStringList') |
| final List<String> ancestorOrigins; |
| /// @domName Location.hash; @docsEditable true |
| @@ -11648,8 +10739,8 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
| this); |
| } |
| - IDBFactory get indexedDB => |
| - JS('IDBFactory', |
| + IdbFactory get indexedDB => |
| + JS('IdbFactory', |
| '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', |
| this, this, this); |
| @@ -11682,7 +10773,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
| static const int TEMPORARY = 0; |
| /// @domName Window.applicationCache; @docsEditable true |
| - final DOMApplicationCache applicationCache; |
| + final ApplicationCache applicationCache; |
| /// @domName Window.closed; @docsEditable true |
| final bool closed; |
| @@ -11816,9 +10907,6 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
| @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
| final dynamic _top; |
| - /// @domName DOMWindow.webkitIndexedDB; @docsEditable true |
| - final IDBFactory webkitIndexedDB; |
| - |
| /// @domName DOMWindow.webkitNotifications; @docsEditable true |
| final NotificationCenter webkitNotifications; |
| @@ -11868,15 +10956,15 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
| /// @domName Window.getComputedStyle; @docsEditable true |
| @JSName('getComputedStyle') |
| - CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native; |
| + CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native; |
| /// @domName Window.getMatchedCSSRules; @docsEditable true |
| @JSName('getMatchedCSSRules') |
| - @Returns('_CSSRuleList') @Creates('_CSSRuleList') |
| - List<CSSRule> getMatchedCssRules(Element element, String pseudoElement) native; |
| + @Returns('_CssRuleList') @Creates('_CssRuleList') |
| + List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native; |
| /// @domName Window.getSelection; @docsEditable true |
| - DOMSelection getSelection() native; |
| + DomSelection getSelection() native; |
| /// @domName Window.matchMedia; @docsEditable true |
| MediaQueryList matchMedia(String query) native; |
| @@ -12123,7 +11211,7 @@ class MapElement extends Element implements Element native "*HTMLMapElement" { |
| factory MapElement() => document.$dom_createElement("map"); |
| /// @domName HTMLMapElement.areas; @docsEditable true |
| - final HTMLCollection areas; |
| + final HtmlCollection areas; |
| /// @domName HTMLMapElement.name; @docsEditable true |
| String name; |
| @@ -13421,7 +12509,7 @@ class Navigator native "*Navigator" { |
| final String language; |
| /// @domName Navigator.mimeTypes; @docsEditable true |
| - final DOMMimeTypeArray mimeTypes; |
| + final DomMimeTypeArray mimeTypes; |
| /// @domName Navigator.onLine; @docsEditable true |
| final bool onLine; |
| @@ -13430,7 +12518,7 @@ class Navigator native "*Navigator" { |
| final String platform; |
| /// @domName Navigator.plugins; @docsEditable true |
| - final DOMPluginArray plugins; |
| + final DomPluginArray plugins; |
| /// @domName Navigator.product; @docsEditable true |
| final String product; |
| @@ -14074,58 +13162,6 @@ typedef void NotificationPermissionCallback(String permission); |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName OESElementIndexUint; @docsEditable true |
| -class OESElementIndexUint native "*OESElementIndexUint" { |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName OESStandardDerivatives; @docsEditable true |
| -class OESStandardDerivatives native "*OESStandardDerivatives" { |
| - |
| - static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName OESTextureFloat; @docsEditable true |
| -class OESTextureFloat native "*OESTextureFloat" { |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName OESVertexArrayObject; @docsEditable true |
| -class OESVertexArrayObject native "*OESVertexArrayObject" { |
| - |
| - static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
| - |
| - /// @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true |
| - @JSName('bindVertexArrayOES') |
| - void bindVertexArray(WebGLVertexArrayObjectOES arrayObject) native; |
| - |
| - /// @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true |
| - @JSName('createVertexArrayOES') |
| - WebGLVertexArrayObjectOES createVertexArray() native; |
| - |
| - /// @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true |
| - @JSName('deleteVertexArrayOES') |
| - void deleteVertexArray(WebGLVertexArrayObjectOES arrayObject) native; |
| - |
| - /// @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true |
| - @JSName('isVertexArrayOES') |
| - bool isVertexArray(WebGLVertexArrayObjectOES arrayObject) 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. |
| - |
| - |
| /// @domName HTMLOListElement; @docsEditable true |
| class OListElement extends Element implements Element native "*HTMLOListElement" { |
| @@ -14201,23 +13237,75 @@ class ObjectElement extends Element implements Element native "*HTMLObjectElemen |
| /// @domName HTMLObjectElement.validationMessage; @docsEditable true |
| final String validationMessage; |
| - /// @domName HTMLObjectElement.validity; @docsEditable true |
| - final ValidityState validity; |
| + /// @domName HTMLObjectElement.validity; @docsEditable true |
| + final ValidityState validity; |
| + |
| + /// @domName HTMLObjectElement.vspace; @docsEditable true |
| + int vspace; |
| + |
| + /// @domName HTMLObjectElement.width; @docsEditable true |
| + String width; |
| + |
| + /// @domName HTMLObjectElement.willValidate; @docsEditable true |
| + final bool willValidate; |
| + |
| + /// @domName HTMLObjectElement.checkValidity; @docsEditable true |
| + bool checkValidity() native; |
| + |
| + /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true |
| + void setCustomValidity(String error) 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. |
| + |
| + |
| +/// @domName OESElementIndexUint; @docsEditable true |
| +class OesElementIndexUint native "*OESElementIndexUint" { |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName OESStandardDerivatives; @docsEditable true |
| +class OesStandardDerivatives native "*OESStandardDerivatives" { |
| + |
| + static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName OESTextureFloat; @docsEditable true |
| +class OesTextureFloat native "*OESTextureFloat" { |
| +} |
| +// 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. |
| + |
| - /// @domName HTMLObjectElement.vspace; @docsEditable true |
| - int vspace; |
| +/// @domName OESVertexArrayObject; @docsEditable true |
| +class OesVertexArrayObject native "*OESVertexArrayObject" { |
| - /// @domName HTMLObjectElement.width; @docsEditable true |
| - String width; |
| + static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
| - /// @domName HTMLObjectElement.willValidate; @docsEditable true |
| - final bool willValidate; |
| + /// @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true |
| + @JSName('bindVertexArrayOES') |
| + void bindVertexArray(WebGLVertexArrayObject arrayObject) native; |
| - /// @domName HTMLObjectElement.checkValidity; @docsEditable true |
| - bool checkValidity() native; |
| + /// @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true |
| + @JSName('createVertexArrayOES') |
| + WebGLVertexArrayObject createVertexArray() native; |
| - /// @domName HTMLObjectElement.setCustomValidity; @docsEditable true |
| - void setCustomValidity(String error) native; |
| + /// @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true |
| + @JSName('deleteVertexArrayOES') |
| + void deleteVertexArray(WebGLVertexArrayObject arrayObject) native; |
| + |
| + /// @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true |
| + @JSName('isVertexArrayOES') |
| + bool isVertexArray(WebGLVertexArrayObject arrayObject) 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 |
| @@ -14297,7 +13385,7 @@ class OutputElement extends Element implements Element native "*HTMLOutputElemen |
| final FormElement form; |
| /// @domName HTMLOutputElement.htmlFor; @docsEditable true |
| - DOMSettableTokenList htmlFor; |
| + DomSettableTokenList htmlFor; |
| /// @domName HTMLOutputElement.labels; @docsEditable true |
| @Returns('NodeList') @Creates('NodeList') |
| @@ -14696,459 +13784,144 @@ class Point native "*WebKitPoint" { |
| /// @domName WebKitPoint.x; @docsEditable true |
| num x; |
| - /// @domName WebKitPoint.y; @docsEditable true |
| - num y; |
| - |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName PopStateEvent; @docsEditable true |
| -class PopStateEvent extends Event native "*PopStateEvent" { |
| - |
| - /// @domName PopStateEvent.state; @docsEditable true |
| - dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); |
| - @JSName('state') |
| - @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScriptValue |
| - final dynamic _state; |
| -} |
| -// 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. |
| - |
| - |
| -typedef void PositionCallback(Geoposition position); |
| -// 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. |
| - |
| - |
| -/// @domName PositionError; @docsEditable true |
| -class PositionError native "*PositionError" { |
| - |
| - static const int PERMISSION_DENIED = 1; |
| - |
| - static const int POSITION_UNAVAILABLE = 2; |
| - |
| - static const int TIMEOUT = 3; |
| - |
| - /// @domName PositionError.code; @docsEditable true |
| - final int code; |
| - |
| - /// @domName PositionError.message; @docsEditable true |
| - final String message; |
| -} |
| -// 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. |
| - |
| - |
| -typedef void PositionErrorCallback(PositionError error); |
| -// 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. |
| - |
| - |
| -/// @domName HTMLPreElement; @docsEditable true |
| -class PreElement extends Element implements Element native "*HTMLPreElement" { |
| - |
| - factory PreElement() => document.$dom_createElement("pre"); |
| - |
| - /// @domName HTMLPreElement.width; @docsEditable true |
| - int width; |
| - |
| - /// @domName HTMLPreElement.wrap; @docsEditable true |
| - bool wrap; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName ProcessingInstruction; @docsEditable true |
| -class ProcessingInstruction extends Node native "*ProcessingInstruction" { |
| - |
| - /// @domName ProcessingInstruction.data; @docsEditable true |
| - String data; |
| - |
| - /// @domName ProcessingInstruction.sheet; @docsEditable true |
| - final StyleSheet sheet; |
| - |
| - /// @domName ProcessingInstruction.target; @docsEditable true |
| - final String target; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName HTMLProgressElement; @docsEditable true |
| -class ProgressElement extends Element implements Element native "*HTMLProgressElement" { |
| - |
| - factory ProgressElement() => document.$dom_createElement("progress"); |
| - |
| - /// @domName HTMLProgressElement.labels; @docsEditable true |
| - @Returns('NodeList') @Creates('NodeList') |
| - final List<Node> labels; |
| - |
| - /// @domName HTMLProgressElement.max; @docsEditable true |
| - num max; |
| - |
| - /// @domName HTMLProgressElement.position; @docsEditable true |
| - final num position; |
| - |
| - /// @domName HTMLProgressElement.value; @docsEditable true |
| - num value; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName ProgressEvent; @docsEditable true |
| -class ProgressEvent extends Event native "*ProgressEvent" { |
| - |
| - /// @domName ProgressEvent.lengthComputable; @docsEditable true |
| - final bool lengthComputable; |
| - |
| - /// @domName ProgressEvent.loaded; @docsEditable true |
| - final int loaded; |
| - |
| - /// @domName ProgressEvent.total; @docsEditable true |
| - final int total; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName HTMLQuoteElement; @docsEditable true |
| -class QuoteElement extends Element implements Element native "*HTMLQuoteElement" { |
| - |
| - /// @domName HTMLQuoteElement.cite; @docsEditable true |
| - String cite; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName RGBColor; @docsEditable true |
| -class RGBColor native "*RGBColor" { |
| - |
| - /// @domName RGBColor.blue; @docsEditable true |
| - final CSSPrimitiveValue blue; |
| - |
| - /// @domName RGBColor.green; @docsEditable true |
| - final CSSPrimitiveValue green; |
| - |
| - /// @domName RGBColor.red; @docsEditable true |
| - final CSSPrimitiveValue red; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName RTCDataChannel; @docsEditable true |
| -class RTCDataChannel extends EventTarget native "*RTCDataChannel" { |
| - |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - RTCDataChannelEvents get on => |
| - new RTCDataChannelEvents(this); |
| - |
| - /// @domName RTCDataChannel.binaryType; @docsEditable true |
| - String binaryType; |
| - |
| - /// @domName RTCDataChannel.bufferedAmount; @docsEditable true |
| - final int bufferedAmount; |
| - |
| - /// @domName RTCDataChannel.label; @docsEditable true |
| - final String label; |
| - |
| - /// @domName RTCDataChannel.readyState; @docsEditable true |
| - final String readyState; |
| - |
| - /// @domName RTCDataChannel.reliable; @docsEditable true |
| - final bool reliable; |
| - |
| - /// @domName RTCDataChannel.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - |
| - /// @domName RTCDataChannel.close; @docsEditable true |
| - void close() native; |
| - |
| - /// @domName RTCDataChannel.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event event) native; |
| - |
| - /// @domName RTCDataChannel.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - |
| - /// @domName RTCDataChannel.send; @docsEditable true |
| - void send(data) native; |
| -} |
| - |
| -class RTCDataChannelEvents extends Events { |
| - RTCDataChannelEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get close => this['close']; |
| - |
| - EventListenerList get error => this['error']; |
| - |
| - EventListenerList get message => this['message']; |
| - |
| - EventListenerList get open => this['open']; |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName RTCDataChannelEvent; @docsEditable true |
| -class RTCDataChannelEvent extends Event native "*RTCDataChannelEvent" { |
| - |
| - /// @domName RTCDataChannelEvent.channel; @docsEditable true |
| - final RTCDataChannel channel; |
| -} |
| -// 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. |
| - |
| - |
| -typedef void RTCErrorCallback(String errorInformation); |
| -// 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. |
| - |
| - |
| -/// @domName RTCIceCandidate; @docsEditable true |
| -class RTCIceCandidate native "*RTCIceCandidate" { |
| - |
| - factory RTCIceCandidate(Map dictionary) => _RTCIceCandidateFactoryProvider.createRTCIceCandidate(dictionary); |
| - |
| - /// @domName RTCIceCandidate.candidate; @docsEditable true |
| - final String candidate; |
| - |
| - /// @domName RTCIceCandidate.sdpMLineIndex; @docsEditable true |
| - final int sdpMLineIndex; |
| + /// @domName WebKitPoint.y; @docsEditable true |
| + num y; |
| - /// @domName RTCIceCandidate.sdpMid; @docsEditable true |
| - final String sdpMid; |
| } |
| // 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. |
| -/// @domName RTCIceCandidateEvent; @docsEditable true |
| -class RTCIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { |
| +/// @domName PopStateEvent; @docsEditable true |
| +class PopStateEvent extends Event native "*PopStateEvent" { |
| - /// @domName RTCIceCandidateEvent.candidate; @docsEditable true |
| - final RTCIceCandidate candidate; |
| + /// @domName PopStateEvent.state; @docsEditable true |
| + dynamic get state => convertNativeToDart_SerializedScriptValue(this._state); |
| + @JSName('state') |
| + @annotation_Creates_SerializedScriptValue @annotation_Returns_SerializedScriptValue |
| + final dynamic _state; |
| } |
| // 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 RTCPeerConnection; @docsEditable true |
| -class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
| - |
| - factory RTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
| - if (!?mediaConstraints) { |
| - return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServers); |
| - } |
| - return _RTCPeerConnectionFactoryProvider.createRTCPeerConnection(rtcIceServers, mediaConstraints); |
| - } |
| - /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| - RTCPeerConnectionEvents get on => |
| - new RTCPeerConnectionEvents(this); |
| +typedef void PositionCallback(Geoposition position); |
| +// 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. |
| - /// @domName RTCPeerConnection.iceState; @docsEditable true |
| - final String iceState; |
| - /// @domName RTCPeerConnection.localDescription; @docsEditable true |
| - final RTCSessionDescription localDescription; |
| +/// @domName PositionError; @docsEditable true |
| +class PositionError native "*PositionError" { |
| - /// @domName RTCPeerConnection.localStreams; @docsEditable true |
| - @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
| - final List<MediaStream> localStreams; |
| + static const int PERMISSION_DENIED = 1; |
| - /// @domName RTCPeerConnection.readyState; @docsEditable true |
| - final String readyState; |
| + static const int POSITION_UNAVAILABLE = 2; |
| - /// @domName RTCPeerConnection.remoteDescription; @docsEditable true |
| - final RTCSessionDescription remoteDescription; |
| + static const int TIMEOUT = 3; |
| - /// @domName RTCPeerConnection.remoteStreams; @docsEditable true |
| - @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
| - final List<MediaStream> remoteStreams; |
| + /// @domName PositionError.code; @docsEditable true |
| + final int code; |
| - /// @domName RTCPeerConnection.addEventListener; @docsEditable true |
| - @JSName('addEventListener') |
| - void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| + /// @domName PositionError.message; @docsEditable true |
| + final String message; |
| +} |
| +// 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. |
| - /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true |
| - void addIceCandidate(RTCIceCandidate candidate) native; |
| +// WARNING: Do not edit - generated code. |
| - /// @domName RTCPeerConnection.addStream; @docsEditable true |
| - void addStream(MediaStream stream, [Map mediaConstraints]) { |
| - if (?mediaConstraints) { |
| - var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| - _addStream_1(stream, mediaConstraints_1); |
| - return; |
| - } |
| - _addStream_2(stream); |
| - return; |
| - } |
| - @JSName('addStream') |
| - void _addStream_1(MediaStream stream, mediaConstraints) native; |
| - @JSName('addStream') |
| - void _addStream_2(MediaStream stream) native; |
| - /// @domName RTCPeerConnection.close; @docsEditable true |
| - void close() native; |
| +typedef void PositionErrorCallback(PositionError error); |
| +// 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. |
| - /// @domName RTCPeerConnection.createAnswer; @docsEditable true |
| - void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) { |
| - if (?mediaConstraints) { |
| - var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| - _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| - return; |
| - } |
| - _createAnswer_2(successCallback, failureCallback); |
| - return; |
| - } |
| - @JSName('createAnswer') |
| - void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback, mediaConstraints) native; |
| - @JSName('createAnswer') |
| - void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback) native; |
| - /// @domName RTCPeerConnection.createDataChannel; @docsEditable true |
| - RTCDataChannel createDataChannel(String label, [Map options]) { |
| - if (?options) { |
| - var options_1 = convertDartToNative_Dictionary(options); |
| - return _createDataChannel_1(label, options_1); |
| - } |
| - return _createDataChannel_2(label); |
| - } |
| - @JSName('createDataChannel') |
| - RTCDataChannel _createDataChannel_1(label, options) native; |
| - @JSName('createDataChannel') |
| - RTCDataChannel _createDataChannel_2(label) native; |
| +/// @domName HTMLPreElement; @docsEditable true |
| +class PreElement extends Element implements Element native "*HTMLPreElement" { |
| - /// @domName RTCPeerConnection.createOffer; @docsEditable true |
| - void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) { |
| - if (?mediaConstraints) { |
| - var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| - _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| - return; |
| - } |
| - _createOffer_2(successCallback, failureCallback); |
| - return; |
| - } |
| - @JSName('createOffer') |
| - void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback, mediaConstraints) native; |
| - @JSName('createOffer') |
| - void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback) native; |
| + factory PreElement() => document.$dom_createElement("pre"); |
| - /// @domName RTCPeerConnection.dispatchEvent; @docsEditable true |
| - @JSName('dispatchEvent') |
| - bool $dom_dispatchEvent(Event event) native; |
| + /// @domName HTMLPreElement.width; @docsEditable true |
| + int width; |
| - /// @domName RTCPeerConnection.getStats; @docsEditable true |
| - void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) native; |
| + /// @domName HTMLPreElement.wrap; @docsEditable true |
| + bool wrap; |
| +} |
| +// 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. |
| - /// @domName RTCPeerConnection.removeEventListener; @docsEditable true |
| - @JSName('removeEventListener') |
| - void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - /// @domName RTCPeerConnection.removeStream; @docsEditable true |
| - void removeStream(MediaStream stream) native; |
| +/// @domName ProcessingInstruction; @docsEditable true |
| +class ProcessingInstruction extends Node native "*ProcessingInstruction" { |
| - /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true |
| - void setLocalDescription(RTCSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]) native; |
| + /// @domName ProcessingInstruction.data; @docsEditable true |
| + String data; |
| - /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true |
| - void setRemoteDescription(RTCSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]) native; |
| + /// @domName ProcessingInstruction.sheet; @docsEditable true |
| + final StyleSheet sheet; |
| - /// @domName RTCPeerConnection.updateIce; @docsEditable true |
| - void updateIce([Map configuration, Map mediaConstraints]) { |
| - if (?mediaConstraints) { |
| - var configuration_1 = convertDartToNative_Dictionary(configuration); |
| - var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); |
| - _updateIce_1(configuration_1, mediaConstraints_2); |
| - return; |
| - } |
| - if (?configuration) { |
| - var configuration_3 = convertDartToNative_Dictionary(configuration); |
| - _updateIce_2(configuration_3); |
| - return; |
| - } |
| - _updateIce_3(); |
| - return; |
| - } |
| - @JSName('updateIce') |
| - void _updateIce_1(configuration, mediaConstraints) native; |
| - @JSName('updateIce') |
| - void _updateIce_2(configuration) native; |
| - @JSName('updateIce') |
| - void _updateIce_3() native; |
| + /// @domName ProcessingInstruction.target; @docsEditable true |
| + final String target; |
| } |
| +// 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. |
| -class RTCPeerConnectionEvents extends Events { |
| - RTCPeerConnectionEvents(EventTarget _ptr) : super(_ptr); |
| - |
| - EventListenerList get addStream => this['addstream']; |
| - EventListenerList get iceCandidate => this['icecandidate']; |
| +/// @domName HTMLProgressElement; @docsEditable true |
| +class ProgressElement extends Element implements Element native "*HTMLProgressElement" { |
| - EventListenerList get iceChange => this['icechange']; |
| + factory ProgressElement() => document.$dom_createElement("progress"); |
| - EventListenerList get negotiationNeeded => this['negotiationneeded']; |
| + /// @domName HTMLProgressElement.labels; @docsEditable true |
| + @Returns('NodeList') @Creates('NodeList') |
| + final List<Node> labels; |
| - EventListenerList get open => this['open']; |
| + /// @domName HTMLProgressElement.max; @docsEditable true |
| + num max; |
| - EventListenerList get removeStream => this['removestream']; |
| + /// @domName HTMLProgressElement.position; @docsEditable true |
| + final num position; |
| - EventListenerList get stateChange => this['statechange']; |
| + /// @domName HTMLProgressElement.value; @docsEditable true |
| + num value; |
| } |
| // 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. |
| -/// @domName RTCSessionDescription; @docsEditable true |
| -class RTCSessionDescription native "*RTCSessionDescription" { |
| +/// @domName ProgressEvent; @docsEditable true |
| +class ProgressEvent extends Event native "*ProgressEvent" { |
| - factory RTCSessionDescription(Map dictionary) => _RTCSessionDescriptionFactoryProvider.createRTCSessionDescription(dictionary); |
| + /// @domName ProgressEvent.lengthComputable; @docsEditable true |
| + final bool lengthComputable; |
| - /// @domName RTCSessionDescription.sdp; @docsEditable true |
| - String sdp; |
| + /// @domName ProgressEvent.loaded; @docsEditable true |
| + final int loaded; |
| - /// @domName RTCSessionDescription.type; @docsEditable true |
| - String type; |
| + /// @domName ProgressEvent.total; @docsEditable true |
| + final int total; |
| } |
| // 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 HTMLQuoteElement; @docsEditable true |
| +class QuoteElement extends Element implements Element native "*HTMLQuoteElement" { |
| -typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp); |
| + /// @domName HTMLQuoteElement.cite; @docsEditable true |
| + String cite; |
| +} |
| // 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. |
| @@ -15156,46 +13929,23 @@ typedef void RTCSessionDescriptionCallback(RTCSessionDescription sdp); |
| // WARNING: Do not edit - generated code. |
| -typedef void RTCStatsCallback(RTCStatsResponse response); |
| -// 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. |
| - |
| - |
| -/// @domName RTCStatsElement; @docsEditable true |
| -class RTCStatsElement native "*RTCStatsElement" { |
| - |
| - /// @domName RTCStatsElement.timestamp; @docsEditable true |
| - final Date timestamp; |
| - |
| - /// @domName RTCStatsElement.stat; @docsEditable true |
| - String stat(String name) native; |
| -} |
| +typedef void RTCErrorCallback(String errorInformation); |
| // 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 RTCStatsReport; @docsEditable true |
| -class RTCStatsReport native "*RTCStatsReport" { |
| - |
| - /// @domName RTCStatsReport.local; @docsEditable true |
| - final RTCStatsElement local; |
| - /// @domName RTCStatsReport.remote; @docsEditable true |
| - final RTCStatsElement remote; |
| -} |
| +typedef void RTCSessionDescriptionCallback(RtcSessionDescription sdp); |
| // 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 RTCStatsResponse; @docsEditable true |
| -class RTCStatsResponse native "*RTCStatsResponse" { |
| - /// @domName RTCStatsResponse.result; @docsEditable true |
| - List<RTCStatsReport> result() native; |
| -} |
| +typedef void RTCStatsCallback(RtcStatsResponse response); |
| // 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. |
| @@ -15358,232 +14108,362 @@ class RangeException native "*RangeException" { |
| class Rect native "*Rect" { |
| /// @domName Rect.bottom; @docsEditable true |
| - final CSSPrimitiveValue bottom; |
| + final CssPrimitiveValue bottom; |
| /// @domName Rect.left; @docsEditable true |
| - final CSSPrimitiveValue left; |
| + final CssPrimitiveValue left; |
| /// @domName Rect.right; @docsEditable true |
| - final CSSPrimitiveValue right; |
| + final CssPrimitiveValue right; |
| /// @domName Rect.top; @docsEditable true |
| - final CSSPrimitiveValue top; |
| + final CssPrimitiveValue top; |
| +} |
| +// 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. |
| + |
| + |
| +typedef void RequestAnimationFrameCallback(num highResTime); |
| +// 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. |
| + |
| + |
| +/// @domName RGBColor; @docsEditable true |
| +class RgbColor native "*RGBColor" { |
| + |
| + /// @domName RGBColor.blue; @docsEditable true |
| + final CssPrimitiveValue blue; |
| + |
| + /// @domName RGBColor.green; @docsEditable true |
| + final CssPrimitiveValue green; |
| + |
| + /// @domName RGBColor.red; @docsEditable true |
| + final CssPrimitiveValue red; |
| } |
| // 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 RTCDataChannel; @docsEditable true |
| +class RtcDataChannel extends EventTarget native "*RTCDataChannel" { |
| + |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + RtcDataChannelEvents get on => |
| + new RtcDataChannelEvents(this); |
| + |
| + /// @domName RTCDataChannel.binaryType; @docsEditable true |
| + String binaryType; |
| + |
| + /// @domName RTCDataChannel.bufferedAmount; @docsEditable true |
| + final int bufferedAmount; |
| -typedef void RequestAnimationFrameCallback(num highResTime); |
| -// 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. |
| + /// @domName RTCDataChannel.label; @docsEditable true |
| + final String label; |
| + /// @domName RTCDataChannel.readyState; @docsEditable true |
| + final String readyState; |
| -/// @domName SQLError; @docsEditable true |
| -class SQLError native "*SQLError" { |
| + /// @domName RTCDataChannel.reliable; @docsEditable true |
| + final bool reliable; |
| - static const int CONSTRAINT_ERR = 6; |
| + /// @domName RTCDataChannel.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - static const int DATABASE_ERR = 1; |
| + /// @domName RTCDataChannel.close; @docsEditable true |
| + void close() native; |
| - static const int QUOTA_ERR = 4; |
| + /// @domName RTCDataChannel.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event event) native; |
| - static const int SYNTAX_ERR = 5; |
| + /// @domName RTCDataChannel.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - static const int TIMEOUT_ERR = 7; |
| + /// @domName RTCDataChannel.send; @docsEditable true |
| + void send(data) native; |
| +} |
| - static const int TOO_LARGE_ERR = 3; |
| +class RtcDataChannelEvents extends Events { |
| + RtcDataChannelEvents(EventTarget _ptr) : super(_ptr); |
| - static const int UNKNOWN_ERR = 0; |
| + EventListenerList get close => this['close']; |
| - static const int VERSION_ERR = 2; |
| + EventListenerList get error => this['error']; |
| - /// @domName SQLError.code; @docsEditable true |
| - final int code; |
| + EventListenerList get message => this['message']; |
| - /// @domName SQLError.message; @docsEditable true |
| - final String message; |
| + EventListenerList get open => this['open']; |
| } |
| // 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. |
| -/// @domName SQLException; @docsEditable true |
| -class SQLException native "*SQLException" { |
| +/// @domName RTCDataChannelEvent; @docsEditable true |
| +class RtcDataChannelEvent extends Event native "*RTCDataChannelEvent" { |
| - static const int CONSTRAINT_ERR = 6; |
| + /// @domName RTCDataChannelEvent.channel; @docsEditable true |
| + final RtcDataChannel channel; |
| +} |
| +// 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. |
| - static const int DATABASE_ERR = 1; |
| - static const int QUOTA_ERR = 4; |
| +/// @domName RTCIceCandidate; @docsEditable true |
| +class RtcIceCandidate native "*RTCIceCandidate" { |
| - static const int SYNTAX_ERR = 5; |
| + factory RtcIceCandidate(Map dictionary) => _RtcIceCandidateFactoryProvider.createRtcIceCandidate(dictionary); |
| - static const int TIMEOUT_ERR = 7; |
| + /// @domName RTCIceCandidate.candidate; @docsEditable true |
| + final String candidate; |
| - static const int TOO_LARGE_ERR = 3; |
| + /// @domName RTCIceCandidate.sdpMLineIndex; @docsEditable true |
| + final int sdpMLineIndex; |
| - static const int UNKNOWN_ERR = 0; |
| + /// @domName RTCIceCandidate.sdpMid; @docsEditable true |
| + final String sdpMid; |
| +} |
| +// 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. |
| - static const int VERSION_ERR = 2; |
| - /// @domName SQLException.code; @docsEditable true |
| - final int code; |
| +/// @domName RTCIceCandidateEvent; @docsEditable true |
| +class RtcIceCandidateEvent extends Event native "*RTCIceCandidateEvent" { |
| - /// @domName SQLException.message; @docsEditable true |
| - final String message; |
| + /// @domName RTCIceCandidateEvent.candidate; @docsEditable true |
| + final RtcIceCandidate candidate; |
| } |
| // 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. |
| -/// @domName SQLResultSet; @docsEditable true |
| -class SQLResultSet native "*SQLResultSet" { |
| +/// @domName RTCPeerConnection; @docsEditable true |
| +class RtcPeerConnection extends EventTarget native "*RTCPeerConnection" { |
| - /// @domName SQLResultSet.insertId; @docsEditable true |
| - final int insertId; |
| + factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
| + if (!?mediaConstraints) { |
| + return _RtcPeerConnectionFactoryProvider.createRtcPeerConnection(rtcIceServers); |
| + } |
| + return _RtcPeerConnectionFactoryProvider.createRtcPeerConnection(rtcIceServers, mediaConstraints); |
| + } |
| - /// @domName SQLResultSet.rows; @docsEditable true |
| - final SQLResultSetRowList rows; |
| + /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| + RtcPeerConnectionEvents get on => |
| + new RtcPeerConnectionEvents(this); |
| - /// @domName SQLResultSet.rowsAffected; @docsEditable true |
| - final int rowsAffected; |
| -} |
| -// 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. |
| + /// @domName RTCPeerConnection.iceState; @docsEditable true |
| + final String iceState; |
| + |
| + /// @domName RTCPeerConnection.localDescription; @docsEditable true |
| + final RtcSessionDescription localDescription; |
| + /// @domName RTCPeerConnection.localStreams; @docsEditable true |
| + @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
| + final List<MediaStream> localStreams; |
| -/// @domName SQLResultSetRowList; @docsEditable true |
| -class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> native "*SQLResultSetRowList" { |
| + /// @domName RTCPeerConnection.readyState; @docsEditable true |
| + final String readyState; |
| - /// @domName SQLResultSetRowList.length; @docsEditable true |
| - final int length; |
| + /// @domName RTCPeerConnection.remoteDescription; @docsEditable true |
| + final RtcSessionDescription remoteDescription; |
| - Map operator[](int index) => JS("Map", "#[#]", this, index); |
| + /// @domName RTCPeerConnection.remoteStreams; @docsEditable true |
| + @Returns('_MediaStreamList') @Creates('_MediaStreamList') |
| + final List<MediaStream> remoteStreams; |
| - void operator[]=(int index, Map value) { |
| - throw new UnsupportedError("Cannot assign element of immutable List."); |
| - } |
| - // -- start List<Map> mixins. |
| - // Map is the element type. |
| + /// @domName RTCPeerConnection.addEventListener; @docsEditable true |
| + @JSName('addEventListener') |
| + void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - // From Iterable<Map>: |
| + /// @domName RTCPeerConnection.addIceCandidate; @docsEditable true |
| + void addIceCandidate(RtcIceCandidate candidate) native; |
| - Iterator<Map> iterator() { |
| - // Note: NodeLists are not fixed size. And most probably length shouldn't |
| - // be cached in both iterator _and_ forEach method. For now caching it |
| - // for consistency. |
| - return new FixedSizeListIterator<Map>(this); |
| + /// @domName RTCPeerConnection.addStream; @docsEditable true |
| + void addStream(MediaStream stream, [Map mediaConstraints]) { |
| + if (?mediaConstraints) { |
| + var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| + _addStream_1(stream, mediaConstraints_1); |
| + return; |
| + } |
| + _addStream_2(stream); |
| + return; |
| } |
| + @JSName('addStream') |
| + void _addStream_1(MediaStream stream, mediaConstraints) native; |
| + @JSName('addStream') |
| + void _addStream_2(MediaStream stream) native; |
| - // From Collection<Map>: |
| + /// @domName RTCPeerConnection.close; @docsEditable true |
| + void close() native; |
| - void add(Map value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| + /// @domName RTCPeerConnection.createAnswer; @docsEditable true |
| + void createAnswer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) { |
| + if (?mediaConstraints) { |
| + var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| + _createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| + return; |
| + } |
| + _createAnswer_2(successCallback, failureCallback); |
| + return; |
| } |
| + @JSName('createAnswer') |
| + void _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback, mediaConstraints) native; |
| + @JSName('createAnswer') |
| + void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback) native; |
| - void addLast(Map value) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| + /// @domName RTCPeerConnection.createDataChannel; @docsEditable true |
| + RtcDataChannel createDataChannel(String label, [Map options]) { |
| + if (?options) { |
| + var options_1 = convertDartToNative_Dictionary(options); |
| + return _createDataChannel_1(label, options_1); |
| + } |
| + return _createDataChannel_2(label); |
| } |
| + @JSName('createDataChannel') |
| + RtcDataChannel _createDataChannel_1(label, options) native; |
| + @JSName('createDataChannel') |
| + RtcDataChannel _createDataChannel_2(label) native; |
| - void addAll(Collection<Map> collection) { |
| - throw new UnsupportedError("Cannot add to immutable List."); |
| + /// @domName RTCPeerConnection.createOffer; @docsEditable true |
| + void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) { |
| + if (?mediaConstraints) { |
| + var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| + _createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| + return; |
| + } |
| + _createOffer_2(successCallback, failureCallback); |
| + return; |
| } |
| + @JSName('createOffer') |
| + void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback, mediaConstraints) native; |
| + @JSName('createOffer') |
| + void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback) native; |
| - bool contains(Map element) => Collections.contains(this, element); |
| - |
| - void forEach(void f(Map element)) => Collections.forEach(this, f); |
| - |
| - Collection map(f(Map element)) => Collections.map(this, [], f); |
| + /// @domName RTCPeerConnection.dispatchEvent; @docsEditable true |
| + @JSName('dispatchEvent') |
| + bool $dom_dispatchEvent(Event event) native; |
| - Collection<Map> filter(bool f(Map element)) => |
| - Collections.filter(this, <Map>[], f); |
| + /// @domName RTCPeerConnection.getStats; @docsEditable true |
| + void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) native; |
| - bool every(bool f(Map element)) => Collections.every(this, f); |
| + /// @domName RTCPeerConnection.removeEventListener; @docsEditable true |
| + @JSName('removeEventListener') |
| + void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
| - bool some(bool f(Map element)) => Collections.some(this, f); |
| + /// @domName RTCPeerConnection.removeStream; @docsEditable true |
| + void removeStream(MediaStream stream) native; |
| - bool get isEmpty => this.length == 0; |
| + /// @domName RTCPeerConnection.setLocalDescription; @docsEditable true |
| + void setLocalDescription(RtcSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]) native; |
| - // From List<Map>: |
| + /// @domName RTCPeerConnection.setRemoteDescription; @docsEditable true |
| + void setRemoteDescription(RtcSessionDescription description, [VoidCallback successCallback, RTCErrorCallback failureCallback]) native; |
| - void sort([Comparator<Map> compare = Comparable.compare]) { |
| - throw new UnsupportedError("Cannot sort immutable List."); |
| + /// @domName RTCPeerConnection.updateIce; @docsEditable true |
| + void updateIce([Map configuration, Map mediaConstraints]) { |
| + if (?mediaConstraints) { |
| + var configuration_1 = convertDartToNative_Dictionary(configuration); |
| + var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); |
| + _updateIce_1(configuration_1, mediaConstraints_2); |
| + return; |
| + } |
| + if (?configuration) { |
| + var configuration_3 = convertDartToNative_Dictionary(configuration); |
| + _updateIce_2(configuration_3); |
| + return; |
| + } |
| + _updateIce_3(); |
| + return; |
| } |
| + @JSName('updateIce') |
| + void _updateIce_1(configuration, mediaConstraints) native; |
| + @JSName('updateIce') |
| + void _updateIce_2(configuration) native; |
| + @JSName('updateIce') |
| + void _updateIce_3() native; |
| +} |
| - int indexOf(Map element, [int start = 0]) => |
| - _Lists.indexOf(this, element, start, this.length); |
| +class RtcPeerConnectionEvents extends Events { |
| + RtcPeerConnectionEvents(EventTarget _ptr) : super(_ptr); |
| - int lastIndexOf(Map element, [int start]) { |
| - if (start == null) start = length - 1; |
| - return _Lists.lastIndexOf(this, element, start); |
| - } |
| + EventListenerList get addStream => this['addstream']; |
| - Map get first => this[0]; |
| + EventListenerList get iceCandidate => this['icecandidate']; |
| - Map get last => this[length - 1]; |
| + EventListenerList get iceChange => this['icechange']; |
| - Map removeLast() { |
| - throw new UnsupportedError("Cannot removeLast on immutable List."); |
| - } |
| + EventListenerList get negotiationNeeded => this['negotiationneeded']; |
| - void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { |
| - throw new UnsupportedError("Cannot setRange on immutable List."); |
| - } |
| + EventListenerList get open => this['open']; |
| - void removeRange(int start, int rangeLength) { |
| - throw new UnsupportedError("Cannot removeRange on immutable List."); |
| - } |
| + EventListenerList get removeStream => this['removestream']; |
| + |
| + EventListenerList get stateChange => this['statechange']; |
| +} |
| +// 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. |
| - void insertRange(int start, int rangeLength, [Map initialValue]) { |
| - throw new UnsupportedError("Cannot insertRange on immutable List."); |
| - } |
| - List<Map> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <Map>[]); |
| +/// @domName RTCSessionDescription; @docsEditable true |
| +class RtcSessionDescription native "*RTCSessionDescription" { |
| - // -- end List<Map> mixins. |
| + factory RtcSessionDescription(Map dictionary) => _RtcSessionDescriptionFactoryProvider.createRtcSessionDescription(dictionary); |
| - /// @domName SQLResultSetRowList.item; @docsEditable true |
| - Map item(int index) { |
| - return convertNativeToDart_Dictionary(_item_1(index)); |
| - } |
| - @JSName('item') |
| - @Creates('=Object') |
| - _item_1(index) native; |
| + /// @domName RTCSessionDescription.sdp; @docsEditable true |
| + String sdp; |
| + |
| + /// @domName RTCSessionDescription.type; @docsEditable true |
| + String type; |
| } |
| // 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 RTCStatsElement; @docsEditable true |
| +class RtcStatsElement native "*RTCStatsElement" { |
| + |
| + /// @domName RTCStatsElement.timestamp; @docsEditable true |
| + final Date timestamp; |
| -typedef void SQLStatementCallback(SQLTransaction transaction, SQLResultSet resultSet); |
| + /// @domName RTCStatsElement.stat; @docsEditable true |
| + String stat(String name) 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. |
| -// WARNING: Do not edit - generated code. |
| +/// @domName RTCStatsReport; @docsEditable true |
| +class RtcStatsReport native "*RTCStatsReport" { |
| + |
| + /// @domName RTCStatsReport.local; @docsEditable true |
| + final RtcStatsElement local; |
| -typedef void SQLStatementErrorCallback(SQLTransaction transaction, SQLError error); |
| + /// @domName RTCStatsReport.remote; @docsEditable true |
| + final RtcStatsElement remote; |
| +} |
| // 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. |
| -/// @domName SQLTransaction; @docsEditable true |
| -class SQLTransaction native "*SQLTransaction" { |
| +/// @domName RTCStatsResponse; @docsEditable true |
| +class RtcStatsResponse native "*RTCStatsResponse" { |
| - /// @domName SQLTransaction.executeSql; @docsEditable true |
| - void executeSql(String sqlStatement, List arguments, [SQLStatementCallback callback, SQLStatementErrorCallback errorCallback]) native; |
| + /// @domName RTCStatsResponse.result; @docsEditable true |
| + List<RtcStatsReport> result() 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 |
| @@ -15592,7 +14472,7 @@ class SQLTransaction native "*SQLTransaction" { |
| // WARNING: Do not edit - generated code. |
| -typedef void SQLTransactionCallback(SQLTransaction transaction); |
| +typedef void SQLStatementCallback(SqlTransaction transaction, SqlResultSet resultSet); |
| // 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. |
| @@ -15600,18 +14480,23 @@ typedef void SQLTransactionCallback(SQLTransaction transaction); |
| // WARNING: Do not edit - generated code. |
| -typedef void SQLTransactionErrorCallback(SQLError error); |
| +typedef void SQLStatementErrorCallback(SqlTransaction transaction, SqlError error); |
| // 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 SQLTransactionSync; @docsEditable true |
| -class SQLTransactionSync native "*SQLTransactionSync" { |
| +typedef void SQLTransactionCallback(SqlTransaction transaction); |
| +// 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. |
| - /// @domName SQLTransactionSync.executeSql; @docsEditable true |
| - SQLResultSet executeSql(String sqlStatement, List arguments) native; |
| -} |
| +// WARNING: Do not edit - generated code. |
| + |
| + |
| +typedef void SQLTransactionErrorCallback(SqlError error); |
| // 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. |
| @@ -15619,7 +14504,7 @@ class SQLTransactionSync native "*SQLTransactionSync" { |
| // WARNING: Do not edit - generated code. |
| -typedef void SQLTransactionSyncCallback(SQLTransactionSync transaction); |
| +typedef void SQLTransactionSyncCallback(SqlTransactionSync transaction); |
| // 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. |
| @@ -15894,7 +14779,7 @@ class ShadowRoot extends DocumentFragment native "*ShadowRoot" { |
| List<Node> $dom_getElementsByTagName(String tagName) native; |
| /// @domName ShadowRoot.getSelection; @docsEditable true |
| - DOMSelection getSelection() native; |
| + DomSelection getSelection() native; |
| static bool get supported => |
| JS('bool', '!!(window.ShadowRoot || window.WebKitShadowRoot)'); |
| @@ -16359,54 +15244,257 @@ class SpeechRecognitionError extends Event native "*SpeechRecognitionError" { |
| static const int NO_SPEECH = 1; |
| - static const int OTHER = 0; |
| + static const int OTHER = 0; |
| + |
| + static const int SERVICE_NOT_ALLOWED = 6; |
| + |
| + /// @domName SpeechRecognitionError.code; @docsEditable true |
| + final int code; |
| + |
| + /// @domName SpeechRecognitionError.message; @docsEditable true |
| + final String message; |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName SpeechRecognitionEvent; @docsEditable true |
| +class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { |
| + |
| + /// @domName SpeechRecognitionEvent.result; @docsEditable true |
| + final SpeechRecognitionResult result; |
| + |
| + /// @domName SpeechRecognitionEvent.resultHistory; @docsEditable true |
| + @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultList') |
| + final List<SpeechRecognitionResult> resultHistory; |
| + |
| + /// @domName SpeechRecognitionEvent.resultIndex; @docsEditable true |
| + final int resultIndex; |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName SpeechRecognitionResult; @docsEditable true |
| +class SpeechRecognitionResult native "*SpeechRecognitionResult" { |
| + |
| + /// @domName SpeechRecognitionResult.emma; @docsEditable true |
| + final Document emma; |
| + |
| + /// @domName SpeechRecognitionResult.finalValue; @docsEditable true |
| + @JSName('final') |
| + final bool finalValue; |
| + |
| + /// @domName SpeechRecognitionResult.length; @docsEditable true |
| + final int length; |
| + |
| + /// @domName SpeechRecognitionResult.item; @docsEditable true |
| + SpeechRecognitionAlternative 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. |
| + |
| + |
| +/// @domName SQLError; @docsEditable true |
| +class SqlError native "*SQLError" { |
| + |
| + static const int CONSTRAINT_ERR = 6; |
| + |
| + static const int DATABASE_ERR = 1; |
| + |
| + static const int QUOTA_ERR = 4; |
| + |
| + static const int SYNTAX_ERR = 5; |
| + |
| + static const int TIMEOUT_ERR = 7; |
| + |
| + static const int TOO_LARGE_ERR = 3; |
| + |
| + static const int UNKNOWN_ERR = 0; |
| + |
| + static const int VERSION_ERR = 2; |
| + |
| + /// @domName SQLError.code; @docsEditable true |
| + final int code; |
| + |
| + /// @domName SQLError.message; @docsEditable true |
| + final String message; |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName SQLException; @docsEditable true |
| +class SqlException native "*SQLException" { |
| + |
| + static const int CONSTRAINT_ERR = 6; |
| + |
| + static const int DATABASE_ERR = 1; |
| + |
| + static const int QUOTA_ERR = 4; |
| + |
| + static const int SYNTAX_ERR = 5; |
| + |
| + static const int TIMEOUT_ERR = 7; |
| + |
| + static const int TOO_LARGE_ERR = 3; |
| + |
| + static const int UNKNOWN_ERR = 0; |
| + |
| + static const int VERSION_ERR = 2; |
| + |
| + /// @domName SQLException.code; @docsEditable true |
| + final int code; |
| + |
| + /// @domName SQLException.message; @docsEditable true |
| + final String message; |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName SQLResultSet; @docsEditable true |
| +class SqlResultSet native "*SQLResultSet" { |
| + |
| + /// @domName SQLResultSet.insertId; @docsEditable true |
| + final int insertId; |
| + |
| + /// @domName SQLResultSet.rows; @docsEditable true |
| + final SqlResultSetRowList rows; |
| + |
| + /// @domName SQLResultSet.rowsAffected; @docsEditable true |
| + final int rowsAffected; |
| +} |
| +// 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. |
| + |
| + |
| +/// @domName SQLResultSetRowList; @docsEditable true |
| +class SqlResultSetRowList implements JavaScriptIndexingBehavior, List<Map> native "*SQLResultSetRowList" { |
| + |
| + /// @domName SQLResultSetRowList.length; @docsEditable true |
| + final int length; |
| + |
| + Map operator[](int index) => JS("Map", "#[#]", this, index); |
| + |
| + void operator[]=(int index, Map value) { |
| + throw new UnsupportedError("Cannot assign element of immutable List."); |
| + } |
| + // -- start List<Map> mixins. |
| + // Map is the element type. |
| + |
| + // From Iterable<Map>: |
| + |
| + Iterator<Map> iterator() { |
| + // Note: NodeLists are not fixed size. And most probably length shouldn't |
| + // be cached in both iterator _and_ forEach method. For now caching it |
| + // for consistency. |
| + return new FixedSizeListIterator<Map>(this); |
| + } |
| + |
| + // From Collection<Map>: |
| + |
| + void add(Map value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| + |
| + void addLast(Map value) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| + |
| + void addAll(Collection<Map> collection) { |
| + throw new UnsupportedError("Cannot add to immutable List."); |
| + } |
| + |
| + bool contains(Map element) => Collections.contains(this, element); |
| + |
| + void forEach(void f(Map element)) => Collections.forEach(this, f); |
| + |
| + Collection map(f(Map element)) => Collections.map(this, [], f); |
| + |
| + Collection<Map> filter(bool f(Map element)) => |
| + Collections.filter(this, <Map>[], f); |
| + |
| + bool every(bool f(Map element)) => Collections.every(this, f); |
| + |
| + bool some(bool f(Map element)) => Collections.some(this, f); |
| + |
| + bool get isEmpty => this.length == 0; |
| + |
| + // From List<Map>: |
| + |
| + void sort([Comparator<Map> compare = Comparable.compare]) { |
| + throw new UnsupportedError("Cannot sort immutable List."); |
| + } |
| + |
| + int indexOf(Map element, [int start = 0]) => |
| + _Lists.indexOf(this, element, start, this.length); |
| + |
| + int lastIndexOf(Map element, [int start]) { |
| + if (start == null) start = length - 1; |
| + return _Lists.lastIndexOf(this, element, start); |
| + } |
| + |
| + Map get first => this[0]; |
| + |
| + Map get last => this[length - 1]; |
| + |
| + Map removeLast() { |
| + throw new UnsupportedError("Cannot removeLast on immutable List."); |
| + } |
| + |
| + void setRange(int start, int rangeLength, List<Map> from, [int startFrom]) { |
| + throw new UnsupportedError("Cannot setRange on immutable List."); |
| + } |
| + |
| + void removeRange(int start, int rangeLength) { |
| + throw new UnsupportedError("Cannot removeRange on immutable List."); |
| + } |
| + |
| + void insertRange(int start, int rangeLength, [Map initialValue]) { |
| + throw new UnsupportedError("Cannot insertRange on immutable List."); |
| + } |
| - static const int SERVICE_NOT_ALLOWED = 6; |
| + List<Map> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <Map>[]); |
| - /// @domName SpeechRecognitionError.code; @docsEditable true |
| - final int code; |
| + // -- end List<Map> mixins. |
| - /// @domName SpeechRecognitionError.message; @docsEditable true |
| - final String message; |
| + /// @domName SQLResultSetRowList.item; @docsEditable true |
| + Map item(int index) { |
| + return convertNativeToDart_Dictionary(_item_1(index)); |
| + } |
| + @JSName('item') |
| + @Creates('=Object') |
| + _item_1(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. |
| -/// @domName SpeechRecognitionEvent; @docsEditable true |
| -class SpeechRecognitionEvent extends Event native "*SpeechRecognitionEvent" { |
| - |
| - /// @domName SpeechRecognitionEvent.result; @docsEditable true |
| - final SpeechRecognitionResult result; |
| - |
| - /// @domName SpeechRecognitionEvent.resultHistory; @docsEditable true |
| - @Returns('_SpeechRecognitionResultList') @Creates('_SpeechRecognitionResultList') |
| - final List<SpeechRecognitionResult> resultHistory; |
| +/// @domName SQLTransaction; @docsEditable true |
| +class SqlTransaction native "*SQLTransaction" { |
| - /// @domName SpeechRecognitionEvent.resultIndex; @docsEditable true |
| - final int resultIndex; |
| + /// @domName SQLTransaction.executeSql; @docsEditable true |
| + void executeSql(String sqlStatement, List arguments, [SQLStatementCallback callback, SQLStatementErrorCallback errorCallback]) 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. |
| -/// @domName SpeechRecognitionResult; @docsEditable true |
| -class SpeechRecognitionResult native "*SpeechRecognitionResult" { |
| - |
| - /// @domName SpeechRecognitionResult.emma; @docsEditable true |
| - final Document emma; |
| - |
| - /// @domName SpeechRecognitionResult.finalValue; @docsEditable true |
| - @JSName('final') |
| - final bool finalValue; |
| - |
| - /// @domName SpeechRecognitionResult.length; @docsEditable true |
| - final int length; |
| +/// @domName SQLTransactionSync; @docsEditable true |
| +class SqlTransactionSync native "*SQLTransactionSync" { |
| - /// @domName SpeechRecognitionResult.item; @docsEditable true |
| - SpeechRecognitionAlternative item(int index) native; |
| + /// @domName SQLTransactionSync.executeSql; @docsEditable true |
| + SqlResultSet executeSql(String sqlStatement, List arguments) 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 |
| @@ -16539,7 +15627,7 @@ class StorageInfo native "*StorageInfo" { |
| // WARNING: Do not edit - generated code. |
| -typedef void StorageInfoErrorCallback(DOMException error); |
| +typedef void StorageInfoErrorCallback(DomException error); |
| // 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. |
| @@ -16760,7 +15848,7 @@ class TableElement extends Element implements Element native "*HTMLTableElement" |
| String frame; |
| /// @domName HTMLTableElement.rows; @docsEditable true |
| - final HTMLCollection rows; |
| + final HtmlCollection rows; |
| /// @domName HTMLTableElement.rules; @docsEditable true |
| String rules; |
| @@ -16769,7 +15857,7 @@ class TableElement extends Element implements Element native "*HTMLTableElement" |
| String summary; |
| /// @domName HTMLTableElement.tBodies; @docsEditable true |
| - final HTMLCollection tBodies; |
| + final HtmlCollection tBodies; |
| /// @domName HTMLTableElement.tFoot; @docsEditable true |
| TableSectionElement tFoot; |
| @@ -16834,7 +15922,7 @@ class TableRowElement extends Element implements Element native "*HTMLTableRowEl |
| String bgColor; |
| /// @domName HTMLTableRowElement.cells; @docsEditable true |
| - final HTMLCollection cells; |
| + final HtmlCollection cells; |
| /// @domName HTMLTableRowElement.ch; @docsEditable true |
| String ch; |
| @@ -16875,7 +15963,7 @@ class TableSectionElement extends Element implements Element native "*HTMLTableS |
| String chOff; |
| /// @domName HTMLTableSectionElement.rows; @docsEditable true |
| - final HTMLCollection rows; |
| + final HtmlCollection rows; |
| /// @domName HTMLTableSectionElement.vAlign; @docsEditable true |
| String vAlign; |
| @@ -19558,7 +18646,7 @@ class WebGLUniformLocation native "*WebGLUniformLocation" { |
| /// @domName WebGLVertexArrayObjectOES; @docsEditable true |
| -class WebGLVertexArrayObjectOES native "*WebGLVertexArrayObjectOES" { |
| +class WebGLVertexArrayObject native "*WebGLVertexArrayObjectOES" { |
| } |
| // 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 |
| @@ -19566,7 +18654,7 @@ class WebGLVertexArrayObjectOES native "*WebGLVertexArrayObjectOES" { |
| /// @domName WebKitCSSFilterValue; @docsEditable true |
| -class WebKitCSSFilterValue extends _CSSValueList native "*WebKitCSSFilterValue" { |
| +class WebKitCssFilterValue extends _CssValueList native "*WebKitCSSFilterValue" { |
| static const int CSS_FILTER_BLUR = 10; |
| @@ -19844,7 +18932,7 @@ class WorkerEvents extends AbstractWorkerEvents { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName WorkerContext; @docsEditable true |
| +/// @domName WorkerContext |
| class WorkerContext extends EventTarget native "*WorkerContext" { |
| /// @domName EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent; @docsEditable true |
| @@ -19855,9 +18943,6 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
| static const int TEMPORARY = 0; |
| - /// @domName WorkerContext.indexedDB; @docsEditable true |
| - final IDBFactory indexedDB; |
| - |
| /// @domName WorkerContext.location; @docsEditable true |
| final WorkerLocation location; |
| @@ -19867,9 +18952,6 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
| /// @domName WorkerContext.self; @docsEditable true |
| final WorkerContext self; |
| - /// @domName WorkerContext.webkitIndexedDB; @docsEditable true |
| - final IDBFactory webkitIndexedDB; |
| - |
| /// @domName WorkerContext.webkitNotifications; @docsEditable true |
| final NotificationCenter webkitNotifications; |
| @@ -19913,7 +18995,7 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
| void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback, ErrorCallback errorCallback]) native; |
| /// @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true |
| - DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; |
| + FileSystemSync webkitRequestFileSystemSync(int type, int size) native; |
|
Emily Fortuna
2012/12/04 01:57:19
DomFileSystemSync?
blois
2012/12/04 17:35:36
We had another bug that we should remove the DOM p
|
| /// @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable true |
| @JSName('webkitResolveLocalFileSystemSyncURL') |
| @@ -19922,6 +19004,12 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
| /// @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true |
| @JSName('webkitResolveLocalFileSystemURL') |
| void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native; |
| + |
| + |
| + IdbFactory get indexedDB => |
| + JS('IdbFactory', |
| + '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', |
| + this, this, this); |
| } |
| class WorkerContextEvents extends Events { |
| @@ -19992,19 +19080,6 @@ class WorkerNavigator native "*WorkerNavigator" { |
| // BSD-style license that can be found in the LICENSE file. |
| -/// @domName XMLSerializer; @docsEditable true |
| -class XMLSerializer native "*XMLSerializer" { |
| - |
| - factory XMLSerializer() => _XMLSerializerFactoryProvider.createXMLSerializer(); |
| - |
| - /// @domName XMLSerializer.serializeToString; @docsEditable true |
| - String serializeToString(Node node) 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. |
| - |
| - |
| /// @domName XPathEvaluator; @docsEditable true |
| class XPathEvaluator native "*XPathEvaluator" { |
| @@ -20126,10 +19201,23 @@ class XPathResult native "*XPathResult" { |
| // BSD-style license that can be found in the LICENSE file. |
| +/// @domName XMLSerializer; @docsEditable true |
| +class XmlSerializer native "*XMLSerializer" { |
| + |
| + factory XmlSerializer() => _XmlSerializerFactoryProvider.createXmlSerializer(); |
| + |
| + /// @domName XMLSerializer.serializeToString; @docsEditable true |
| + String serializeToString(Node node) 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. |
| + |
| + |
| /// @domName XSLTProcessor; @docsEditable true |
| -class XSLTProcessor native "*XSLTProcessor" { |
| +class XsltProcessor native "*XSLTProcessor" { |
| - factory XSLTProcessor() => _XSLTProcessorFactoryProvider.createXSLTProcessor(); |
| + factory XsltProcessor() => _XsltProcessorFactoryProvider.createXsltProcessor(); |
| /// @domName XSLTProcessor.clearParameters; @docsEditable true |
| void clearParameters() native; |
| @@ -20194,90 +19282,81 @@ class _BlobFactoryProvider { |
| // BSD-style license that can be found in the LICENSE file. |
| -class _CSSMatrixFactoryProvider { |
| - static CSSMatrix createCSSMatrix([String cssValue = '']) => |
| - JS('CSSMatrix', 'new WebKitCSSMatrix(#)', cssValue); |
| -} |
| -// 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. |
| - |
| - |
| -/// @domName CSSRuleList; @docsEditable true |
| -class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native "*CSSRuleList" { |
| +/// @domName ClientRectList; @docsEditable true |
| +class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> native "*ClientRectList" { |
| - /// @domName CSSRuleList.length; @docsEditable true |
| + /// @domName ClientRectList.length; @docsEditable true |
| final int length; |
| - CSSRule operator[](int index) => JS("CSSRule", "#[#]", this, index); |
| + ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); |
| - void operator[]=(int index, CSSRule value) { |
| + void operator[]=(int index, ClientRect value) { |
| throw new UnsupportedError("Cannot assign element of immutable List."); |
| } |
| - // -- start List<CSSRule> mixins. |
| - // CSSRule is the element type. |
| + // -- start List<ClientRect> mixins. |
| + // ClientRect is the element type. |
| - // From Iterable<CSSRule>: |
| + // From Iterable<ClientRect>: |
| - Iterator<CSSRule> iterator() { |
| + Iterator<ClientRect> iterator() { |
| // Note: NodeLists are not fixed size. And most probably length shouldn't |
| // be cached in both iterator _and_ forEach method. For now caching it |
| // for consistency. |
| - return new FixedSizeListIterator<CSSRule>(this); |
| + return new FixedSizeListIterator<ClientRect>(this); |
| } |
| - // From Collection<CSSRule>: |
| + // From Collection<ClientRect>: |
| - void add(CSSRule value) { |
| + void add(ClientRect value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addLast(CSSRule value) { |
| + void addLast(ClientRect value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addAll(Collection<CSSRule> collection) { |
| + void addAll(Collection<ClientRect> collection) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - bool contains(CSSRule element) => Collections.contains(this, element); |
| + bool contains(ClientRect element) => Collections.contains(this, element); |
| - void forEach(void f(CSSRule element)) => Collections.forEach(this, f); |
| + void forEach(void f(ClientRect element)) => Collections.forEach(this, f); |
| - Collection map(f(CSSRule element)) => Collections.map(this, [], f); |
| + Collection map(f(ClientRect element)) => Collections.map(this, [], f); |
| - Collection<CSSRule> filter(bool f(CSSRule element)) => |
| - Collections.filter(this, <CSSRule>[], f); |
| + Collection<ClientRect> filter(bool f(ClientRect element)) => |
| + Collections.filter(this, <ClientRect>[], f); |
| - bool every(bool f(CSSRule element)) => Collections.every(this, f); |
| + bool every(bool f(ClientRect element)) => Collections.every(this, f); |
| - bool some(bool f(CSSRule element)) => Collections.some(this, f); |
| + bool some(bool f(ClientRect element)) => Collections.some(this, f); |
| bool get isEmpty => this.length == 0; |
| - // From List<CSSRule>: |
| + // From List<ClientRect>: |
| - void sort([Comparator<CSSRule> compare = Comparable.compare]) { |
| + void sort([Comparator<ClientRect> compare = Comparable.compare]) { |
| throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - int indexOf(CSSRule element, [int start = 0]) => |
| + int indexOf(ClientRect element, [int start = 0]) => |
| _Lists.indexOf(this, element, start, this.length); |
| - int lastIndexOf(CSSRule element, [int start]) { |
| + int lastIndexOf(ClientRect element, [int start]) { |
| if (start == null) start = length - 1; |
| return _Lists.lastIndexOf(this, element, start); |
| } |
| - CSSRule get first => this[0]; |
| + ClientRect get first => this[0]; |
| - CSSRule get last => this[length - 1]; |
| + ClientRect get last => this[length - 1]; |
| - CSSRule removeLast() { |
| + ClientRect removeLast() { |
| throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List<CSSRule> from, [int startFrom]) { |
| + void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) { |
| throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| @@ -20285,98 +19364,107 @@ class _CSSRuleList implements JavaScriptIndexingBehavior, List<CSSRule> native " |
| throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [CSSRule initialValue]) { |
| + void insertRange(int start, int rangeLength, [ClientRect initialValue]) { |
| throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<CSSRule> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <CSSRule>[]); |
| + List<ClientRect> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <ClientRect>[]); |
| - // -- end List<CSSRule> mixins. |
| + // -- end List<ClientRect> mixins. |
| - /// @domName CSSRuleList.item; @docsEditable true |
| - CSSRule item(int index) native; |
| + /// @domName ClientRectList.item; @docsEditable true |
| + ClientRect 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. |
| -/// @domName CSSValueList; @docsEditable true |
| -class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexingBehavior native "*CSSValueList" { |
| +class _CssMatrixFactoryProvider { |
| + static CssMatrix createCssMatrix([String cssValue = '']) => |
| + JS('CssMatrix', 'new WebKitCSSMatrix(#)', cssValue); |
| +} |
| +// 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. |
| - /// @domName CSSValueList.length; @docsEditable true |
| + |
| +/// @domName CSSRuleList; @docsEditable true |
| +class _CssRuleList implements JavaScriptIndexingBehavior, List<CssRule> native "*CSSRuleList" { |
| + |
| + /// @domName CSSRuleList.length; @docsEditable true |
| final int length; |
| - CSSValue operator[](int index) => JS("CSSValue", "#[#]", this, index); |
| + CssRule operator[](int index) => JS("CssRule", "#[#]", this, index); |
| - void operator[]=(int index, CSSValue value) { |
| + void operator[]=(int index, CssRule value) { |
| throw new UnsupportedError("Cannot assign element of immutable List."); |
| } |
| - // -- start List<CSSValue> mixins. |
| - // CSSValue is the element type. |
| + // -- start List<CssRule> mixins. |
| + // CssRule is the element type. |
| - // From Iterable<CSSValue>: |
| + // From Iterable<CssRule>: |
| - Iterator<CSSValue> iterator() { |
| + Iterator<CssRule> iterator() { |
| // Note: NodeLists are not fixed size. And most probably length shouldn't |
| // be cached in both iterator _and_ forEach method. For now caching it |
| // for consistency. |
| - return new FixedSizeListIterator<CSSValue>(this); |
| + return new FixedSizeListIterator<CssRule>(this); |
| } |
| - // From Collection<CSSValue>: |
| + // From Collection<CssRule>: |
| - void add(CSSValue value) { |
| + void add(CssRule value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addLast(CSSValue value) { |
| + void addLast(CssRule value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addAll(Collection<CSSValue> collection) { |
| + void addAll(Collection<CssRule> collection) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - bool contains(CSSValue element) => Collections.contains(this, element); |
| + bool contains(CssRule element) => Collections.contains(this, element); |
| - void forEach(void f(CSSValue element)) => Collections.forEach(this, f); |
| + void forEach(void f(CssRule element)) => Collections.forEach(this, f); |
| - Collection map(f(CSSValue element)) => Collections.map(this, [], f); |
| + Collection map(f(CssRule element)) => Collections.map(this, [], f); |
| - Collection<CSSValue> filter(bool f(CSSValue element)) => |
| - Collections.filter(this, <CSSValue>[], f); |
| + Collection<CssRule> filter(bool f(CssRule element)) => |
| + Collections.filter(this, <CssRule>[], f); |
| - bool every(bool f(CSSValue element)) => Collections.every(this, f); |
| + bool every(bool f(CssRule element)) => Collections.every(this, f); |
| - bool some(bool f(CSSValue element)) => Collections.some(this, f); |
| + bool some(bool f(CssRule element)) => Collections.some(this, f); |
| bool get isEmpty => this.length == 0; |
| - // From List<CSSValue>: |
| + // From List<CssRule>: |
| - void sort([Comparator<CSSValue> compare = Comparable.compare]) { |
| + void sort([Comparator<CssRule> compare = Comparable.compare]) { |
| throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - int indexOf(CSSValue element, [int start = 0]) => |
| + int indexOf(CssRule element, [int start = 0]) => |
| _Lists.indexOf(this, element, start, this.length); |
| - int lastIndexOf(CSSValue element, [int start]) { |
| + int lastIndexOf(CssRule element, [int start]) { |
| if (start == null) start = length - 1; |
| return _Lists.lastIndexOf(this, element, start); |
| } |
| - CSSValue get first => this[0]; |
| + CssRule get first => this[0]; |
| - CSSValue get last => this[length - 1]; |
| + CssRule get last => this[length - 1]; |
| - CSSValue removeLast() { |
| + CssRule removeLast() { |
| throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List<CSSValue> from, [int startFrom]) { |
| + void setRange(int start, int rangeLength, List<CssRule> from, [int startFrom]) { |
| throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| @@ -20384,98 +19472,98 @@ class _CSSValueList extends CSSValue implements List<CSSValue>, JavaScriptIndexi |
| throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [CSSValue initialValue]) { |
| + void insertRange(int start, int rangeLength, [CssRule initialValue]) { |
| throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<CSSValue> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <CSSValue>[]); |
| + List<CssRule> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <CssRule>[]); |
| - // -- end List<CSSValue> mixins. |
| + // -- end List<CssRule> mixins. |
| - /// @domName CSSValueList.item; @docsEditable true |
| - CSSValue item(int index) native; |
| + /// @domName CSSRuleList.item; @docsEditable true |
| + CssRule 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. |
| -/// @domName ClientRectList; @docsEditable true |
| -class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> native "*ClientRectList" { |
| +/// @domName CSSValueList; @docsEditable true |
| +class _CssValueList extends CssValue implements List<CssValue>, JavaScriptIndexingBehavior native "*CSSValueList" { |
| - /// @domName ClientRectList.length; @docsEditable true |
| + /// @domName CSSValueList.length; @docsEditable true |
| final int length; |
| - ClientRect operator[](int index) => JS("ClientRect", "#[#]", this, index); |
| + CssValue operator[](int index) => JS("CssValue", "#[#]", this, index); |
| - void operator[]=(int index, ClientRect value) { |
| + void operator[]=(int index, CssValue value) { |
| throw new UnsupportedError("Cannot assign element of immutable List."); |
| } |
| - // -- start List<ClientRect> mixins. |
| - // ClientRect is the element type. |
| + // -- start List<CssValue> mixins. |
| + // CssValue is the element type. |
| - // From Iterable<ClientRect>: |
| + // From Iterable<CssValue>: |
| - Iterator<ClientRect> iterator() { |
| + Iterator<CssValue> iterator() { |
| // Note: NodeLists are not fixed size. And most probably length shouldn't |
| // be cached in both iterator _and_ forEach method. For now caching it |
| // for consistency. |
| - return new FixedSizeListIterator<ClientRect>(this); |
| + return new FixedSizeListIterator<CssValue>(this); |
| } |
| - // From Collection<ClientRect>: |
| + // From Collection<CssValue>: |
| - void add(ClientRect value) { |
| + void add(CssValue value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addLast(ClientRect value) { |
| + void addLast(CssValue value) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - void addAll(Collection<ClientRect> collection) { |
| + void addAll(Collection<CssValue> collection) { |
| throw new UnsupportedError("Cannot add to immutable List."); |
| } |
| - bool contains(ClientRect element) => Collections.contains(this, element); |
| + bool contains(CssValue element) => Collections.contains(this, element); |
| - void forEach(void f(ClientRect element)) => Collections.forEach(this, f); |
| + void forEach(void f(CssValue element)) => Collections.forEach(this, f); |
| - Collection map(f(ClientRect element)) => Collections.map(this, [], f); |
| + Collection map(f(CssValue element)) => Collections.map(this, [], f); |
| - Collection<ClientRect> filter(bool f(ClientRect element)) => |
| - Collections.filter(this, <ClientRect>[], f); |
| + Collection<CssValue> filter(bool f(CssValue element)) => |
| + Collections.filter(this, <CssValue>[], f); |
| - bool every(bool f(ClientRect element)) => Collections.every(this, f); |
| + bool every(bool f(CssValue element)) => Collections.every(this, f); |
| - bool some(bool f(ClientRect element)) => Collections.some(this, f); |
| + bool some(bool f(CssValue element)) => Collections.some(this, f); |
| bool get isEmpty => this.length == 0; |
| - // From List<ClientRect>: |
| + // From List<CssValue>: |
| - void sort([Comparator<ClientRect> compare = Comparable.compare]) { |
| + void sort([Comparator<CssValue> compare = Comparable.compare]) { |
| throw new UnsupportedError("Cannot sort immutable List."); |
| } |
| - int indexOf(ClientRect element, [int start = 0]) => |
| + int indexOf(CssValue element, [int start = 0]) => |
| _Lists.indexOf(this, element, start, this.length); |
| - int lastIndexOf(ClientRect element, [int start]) { |
| + int lastIndexOf(CssValue element, [int start]) { |
| if (start == null) start = length - 1; |
| return _Lists.lastIndexOf(this, element, start); |
| } |
| - ClientRect get first => this[0]; |
| + CssValue get first => this[0]; |
| - ClientRect get last => this[length - 1]; |
| + CssValue get last => this[length - 1]; |
| - ClientRect removeLast() { |
| + CssValue removeLast() { |
| throw new UnsupportedError("Cannot removeLast on immutable List."); |
| } |
| - void setRange(int start, int rangeLength, List<ClientRect> from, [int startFrom]) { |
| + void setRange(int start, int rangeLength, List<CssValue> from, [int startFrom]) { |
| throw new UnsupportedError("Cannot setRange on immutable List."); |
| } |
| @@ -20483,26 +19571,43 @@ class _ClientRectList implements JavaScriptIndexingBehavior, List<ClientRect> na |
| throw new UnsupportedError("Cannot removeRange on immutable List."); |
| } |
| - void insertRange(int start, int rangeLength, [ClientRect initialValue]) { |
| + void insertRange(int start, int rangeLength, [CssValue initialValue]) { |
| throw new UnsupportedError("Cannot insertRange on immutable List."); |
| } |
| - List<ClientRect> getRange(int start, int rangeLength) => |
| - _Lists.getRange(this, start, rangeLength, <ClientRect>[]); |
| + List<CssValue> getRange(int start, int rangeLength) => |
| + _Lists.getRange(this, start, rangeLength, <CssValue>[]); |
| - // -- end List<ClientRect> mixins. |
| + // -- end List<CssValue> mixins. |
| - /// @domName ClientRectList.item; @docsEditable true |
| - ClientRect item(int index) native; |
| + /// @domName CSSValueList.item; @docsEditable true |
| + CssValue 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. |
| + |
| + |
| +class _DataViewFactoryProvider { |
| + static DataView createDataView( |
| + ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) { |
| + if (byteOffset == null) { |
| + return JS('DataView', 'new DataView(#)', buffer); |
| + } |
| + if (byteLength == null) { |
| + return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); |
| + } |
| + return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength); |
| + } |
| } |
| // 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. |
| -class _DOMParserFactoryProvider { |
| - static DOMParser createDOMParser() => |
| - JS('DOMParser', 'new DOMParser()' ); |
| +class _DomParserFactoryProvider { |
| + static DomParser createDomParser() => |
| + JS('DomParser', 'new DOMParser()' ); |
| } |
| // 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 |
| @@ -20510,7 +19615,7 @@ class _DOMParserFactoryProvider { |
| /// @domName DOMStringList; @docsEditable true |
| -class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native "*DOMStringList" { |
| +class _DomStringList implements JavaScriptIndexingBehavior, List<String> native "*DOMStringList" { |
| /// @domName DOMStringList.length; @docsEditable true |
| final int length; |
| @@ -20611,23 +19716,6 @@ class _DOMStringList implements JavaScriptIndexingBehavior, List<String> native |
| // BSD-style license that can be found in the LICENSE file. |
| -class _DataViewFactoryProvider { |
| - static DataView createDataView( |
| - ArrayBuffer buffer, [int byteOffset = null, int byteLength = null]) { |
| - if (byteOffset == null) { |
| - return JS('DataView', 'new DataView(#)', buffer); |
| - } |
| - if (byteLength == null) { |
| - return JS('DataView', 'new DataView(#,#)', buffer, byteOffset); |
| - } |
| - return JS('DataView', 'new DataView(#,#,#)', buffer, byteOffset, byteLength); |
| - } |
| -} |
| -// 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. |
| - |
| - |
| /// @domName EntryArray; @docsEditable true |
| class _EntryArray implements JavaScriptIndexingBehavior, List<Entry> native "*EntryArray" { |
| @@ -21193,27 +20281,27 @@ class _PeerConnection00FactoryProvider { |
| // BSD-style license that can be found in the LICENSE file. |
| -class _RTCIceCandidateFactoryProvider { |
| - static RTCIceCandidate createRTCIceCandidate(Map dictionary) => |
| - JS('RTCIceCandidate', 'new RTCIceCandidate(#)', dictionary); |
| +class _RtcIceCandidateFactoryProvider { |
| + static RtcIceCandidate createRtcIceCandidate(Map dictionary) => |
| + JS('RtcIceCandidate', 'new RTCIceCandidate(#)', dictionary); |
| } |
| // 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. |
| -class _RTCPeerConnectionFactoryProvider { |
| - static RTCPeerConnection createRTCPeerConnection(Map rtcIceServers, [Map mediaConstraints]) => |
| - JS('RTCPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers, mediaConstraints); |
| +class _RtcPeerConnectionFactoryProvider { |
| + static RtcPeerConnection createRtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) => |
| + JS('RtcPeerConnection', 'new RTCPeerConnection(#,#)', rtcIceServers, mediaConstraints); |
| } |
| // 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. |
| -class _RTCSessionDescriptionFactoryProvider { |
| - static RTCSessionDescription createRTCSessionDescription(Map dictionary) => |
| - JS('RTCSessionDescription', 'new RTCSessionDescription(#)', dictionary); |
| +class _RtcSessionDescriptionFactoryProvider { |
| + static RtcSessionDescription createRtcSessionDescription(Map dictionary) => |
| + JS('RtcSessionDescription', 'new RTCSessionDescription(#)', dictionary); |
| } |
| // 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 |
| @@ -21706,27 +20794,27 @@ class _WorkerFactoryProvider { |
| // BSD-style license that can be found in the LICENSE file. |
| -class _XMLSerializerFactoryProvider { |
| - static XMLSerializer createXMLSerializer() => |
| - JS('XMLSerializer', 'new XMLSerializer()' ); |
| +class _XPathEvaluatorFactoryProvider { |
| + static XPathEvaluator createXPathEvaluator() => |
| + JS('XPathEvaluator', 'new XPathEvaluator()' ); |
| } |
| // 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. |
| -class _XPathEvaluatorFactoryProvider { |
| - static XPathEvaluator createXPathEvaluator() => |
| - JS('XPathEvaluator', 'new XPathEvaluator()' ); |
| +class _XmlSerializerFactoryProvider { |
| + static XmlSerializer createXmlSerializer() => |
| + JS('XmlSerializer', 'new XMLSerializer()' ); |
| } |
| // 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. |
| -class _XSLTProcessorFactoryProvider { |
| - static XSLTProcessor createXSLTProcessor() => |
| - JS('XSLTProcessor', 'new XSLTProcessor()' ); |
| +class _XsltProcessorFactoryProvider { |
| + static XsltProcessor createXsltProcessor() => |
| + JS('XsltProcessor', 'new XSLTProcessor()' ); |
| } |
| // 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 |
| @@ -24255,15 +23343,15 @@ class _MouseEventFactoryProvider { |
| } |
| } |
| -class _CSSStyleDeclarationFactoryProvider { |
| - static CSSStyleDeclaration createCSSStyleDeclaration_css(String css) { |
| +class _CssStyleDeclarationFactoryProvider { |
| + static CssStyleDeclaration createCssStyleDeclaration_css(String css) { |
| final style = new Element.tag('div').style; |
| style.cssText = css; |
| return style; |
| } |
| - static CSSStyleDeclaration createCSSStyleDeclaration() { |
| - return new CSSStyleDeclaration.css(''); |
| + static CssStyleDeclaration createCssStyleDeclaration() { |
| + return new CssStyleDeclaration.css(''); |
| } |
| } |
| @@ -24292,7 +23380,7 @@ class _DocumentFragmentFactoryProvider { |
| static DocumentFragment createDocumentFragment_svg(String svgContent) { |
| final fragment = new DocumentFragment(); |
| - final e = new svg.SVGSVGElement(); |
| + final e = new svg.SvgSvgElement(); |
| e.innerHtml = svgContent; |
| // Copy list first since we don't want liveness during iteration. |
| @@ -24394,60 +23482,6 @@ _convertDartToNative_ImageData(ImageData imageData) { |
| } |
| return imageData; |
| } |
| - |
| - |
| -// ----------------------------------------------------------------------------- |
| - |
| -/** |
| - * Converts a native IDBKey into a Dart object. |
| - * |
| - * May return the original input. May mutate the original input (but will be |
| - * idempotent if mutation occurs). It is assumed that this conversion happens |
| - * on native IDBKeys on all paths that return IDBKeys from native DOM calls. |
| - * |
| - * If necessary, JavaScript Dates are converted into Dart Dates. |
| - */ |
| -_convertNativeToDart_IDBKey(nativeKey) { |
| - containsDate(object) { |
| - if (isJavaScriptDate(object)) return true; |
| - if (object is List) { |
| - for (int i = 0; i < object.length; i++) { |
| - if (containsDate(object[i])) return true; |
| - } |
| - } |
| - return false; // number, string. |
| - } |
| - if (containsDate(nativeKey)) { |
| - throw new UnimplementedError('IDBKey containing Date'); |
| - } |
| - // TODO: Cache conversion somewhere? |
| - return nativeKey; |
| -} |
| - |
| -/** |
| - * Converts a Dart object into a valid IDBKey. |
| - * |
| - * May return the original input. Does not mutate input. |
| - * |
| - * If necessary, [dartKey] may be copied to ensure all lists are converted into |
| - * JavaScript Arrays and Dart Dates into JavaScript Dates. |
| - */ |
| -_convertDartToNative_IDBKey(dartKey) { |
| - // TODO: Implement. |
| - return dartKey; |
| -} |
| - |
| - |
| - |
| -/// May modify original. If so, action is idempotent. |
| -_convertNativeToDart_IDBAny(object) { |
| - return convertNativeToDart_AcceptStructuredClone(object, mustCopy: false); |
| -} |
| - |
| - |
| -const String _idbKey = '=List|=Object|num|String'; // TODO(sra): Add Date. |
| -const _annotation_Creates_IDBKey = const Creates(_idbKey); |
| -const _annotation_Returns_IDBKey = const Returns(_idbKey); |
| // 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. |
| @@ -24670,56 +23704,6 @@ class _TextFactoryProvider { |
| static Text createText(String data) => |
| JS('Text', 'document.createTextNode(#)', data); |
| } |
| -// 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. |
| - |
| - |
| -class _IDBKeyRangeFactoryProvider { |
| - |
| - static IDBKeyRange createIDBKeyRange_only(/*IDBKey*/ value) => |
| - _only(_class(), _translateKey(value)); |
| - |
| - static IDBKeyRange createIDBKeyRange_lowerBound( |
| - /*IDBKey*/ bound, [bool open = false]) => |
| - _lowerBound(_class(), _translateKey(bound), open); |
| - |
| - static IDBKeyRange createIDBKeyRange_upperBound( |
| - /*IDBKey*/ bound, [bool open = false]) => |
| - _upperBound(_class(), _translateKey(bound), open); |
| - |
| - static IDBKeyRange createIDBKeyRange_bound(/*IDBKey*/ lower, /*IDBKey*/ upper, |
| - [bool lowerOpen = false, bool upperOpen = false]) => |
| - _bound(_class(), _translateKey(lower), _translateKey(upper), |
| - lowerOpen, upperOpen); |
| - |
| - static var _cachedClass; |
| - |
| - static _class() { |
| - if (_cachedClass != null) return _cachedClass; |
| - return _cachedClass = _uncachedClass(); |
| - } |
| - |
| - static _uncachedClass() => |
| - JS('var', |
| - '''window.webkitIDBKeyRange || window.mozIDBKeyRange || |
| - window.msIDBKeyRange || window.IDBKeyRange'''); |
| - |
| - static _translateKey(idbkey) => idbkey; // TODO: fixme. |
| - |
| - static IDBKeyRange _only(cls, value) => |
| - JS('IDBKeyRange', '#.only(#)', cls, value); |
| - |
| - static IDBKeyRange _lowerBound(cls, bound, open) => |
| - JS('IDBKeyRange', '#.lowerBound(#, #)', cls, bound, open); |
| - |
| - static IDBKeyRange _upperBound(cls, bound, open) => |
| - JS('IDBKeyRange', '#.upperBound(#, #)', cls, bound, open); |
| - |
| - static IDBKeyRange _bound(cls, lower, upper, lowerOpen, upperOpen) => |
| - JS('IDBKeyRange', '#.bound(#, #, #, #)', |
| - cls, lower, upper, lowerOpen, upperOpen); |
| -} |
| // Copyright (c) 2011, 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. |