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 969a8a45ce589fc3ffc910878f80ec9e4392e059..bde02bbeffc400187406d78e930aea2205db83d4 100644 |
--- a/sdk/lib/html/dart2js/html_dart2js.dart |
+++ b/sdk/lib/html/dart2js/html_dart2js.dart |
@@ -56,16 +56,13 @@ class AbstractWorker extends EventTarget native "*AbstractWorker" { |
new AbstractWorkerEvents(this); |
/// @domName AbstractWorker.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName AbstractWorker.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName AbstractWorker.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class AbstractWorkerEvents extends Events { |
@@ -837,16 +834,13 @@ class BatteryManager extends EventTarget native "*BatteryManager" { |
final num level; |
/// @domName BatteryManager.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName BatteryManager.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName BatteryManager.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class BatteryManagerEvents extends Events { |
@@ -1031,7 +1025,7 @@ class ButtonElement extends Element implements Element native "*HTMLButtonElemen |
String formTarget; |
/// @domName HTMLButtonElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLButtonElement.name; @docsEditable true |
@@ -1365,8 +1359,7 @@ class CSSPrimitiveValue extends CSSValue native "*CSSPrimitiveValue" { |
num getFloatValue(int unitType) native; |
/// @domName CSSPrimitiveValue.getRGBColorValue; @docsEditable true |
- @JSName('getRGBColorValue') |
- RGBColor getRgbColorValue() native; |
+ RGBColor getRgbColorValue() native "getRGBColorValue"; |
/// @domName CSSPrimitiveValue.getRectValue; @docsEditable true |
Rect getRectValue() native; |
@@ -1457,8 +1450,7 @@ class CSSStyleDeclaration native "*CSSStyleDeclaration" { |
final CSSRule parentRule; |
/// @domName CSSStyleDeclaration.getPropertyCSSValue; @docsEditable true |
- @JSName('getPropertyCSSValue') |
- CSSValue getPropertyCssValue(String propertyName) native; |
+ CSSValue getPropertyCssValue(String propertyName) native "getPropertyCSSValue"; |
/// @domName CSSStyleDeclaration.getPropertyPriority; @docsEditable true |
String getPropertyPriority(String propertyName) native; |
@@ -1467,8 +1459,7 @@ class CSSStyleDeclaration native "*CSSStyleDeclaration" { |
String getPropertyShorthand(String propertyName) native; |
/// @domName CSSStyleDeclaration._getPropertyValue; @docsEditable true |
- @JSName('getPropertyValue') |
- String _getPropertyValue(String propertyName) native; |
+ String _getPropertyValue(String propertyName) native "getPropertyValue"; |
/// @domName CSSStyleDeclaration.isPropertyImplicit; @docsEditable true |
bool isPropertyImplicit(String propertyName) native; |
@@ -4794,8 +4785,7 @@ class CanvasElement extends Element implements Element native "*HTMLCanvasElemen |
int width; |
/// @domName HTMLCanvasElement.toDataURL; @docsEditable true |
- @JSName('toDataURL') |
- String toDataUrl(String type, [num quality]) native; |
+ String toDataUrl(String type, [num quality]) native "toDataURL"; |
CanvasRenderingContext getContext(String contextId) native; |
@@ -4935,12 +4925,10 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('createImageData') |
@Creates('ImageData|=Object') |
- _createImageData_1(imagedata) native; |
- @JSName('createImageData') |
+ _createImageData_1(imagedata) native "createImageData"; |
@Creates('ImageData|=Object') |
- _createImageData_2(num sw, sh) native; |
+ _createImageData_2(num sw, sh) native "createImageData"; |
/// @domName CanvasRenderingContext2D.createLinearGradient; @docsEditable true |
CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
@@ -4970,9 +4958,8 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
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; |
+ _getImageData_1(sx, sy, sw, sh) native "getImageData"; |
/// @domName CanvasRenderingContext2D.getLineDash; @docsEditable true |
List<num> getLineDash() native; |
@@ -5004,10 +4991,8 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
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; |
+ void _putImageData_1(imagedata, dx, dy) native "putImageData"; |
+ void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native "putImageData"; |
/// @domName CanvasRenderingContext2D.quadraticCurveTo; @docsEditable true |
void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
@@ -5073,9 +5058,8 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
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; |
+ _webkitGetImageDataHD_1(sx, sy, sw, sh) native "webkitGetImageDataHD"; |
/// @domName CanvasRenderingContext2D.webkitPutImageDataHD; @docsEditable true |
void webkitPutImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) { |
@@ -5092,10 +5076,8 @@ class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen |
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; |
+ void _webkitPutImageDataHD_1(imagedata, dx, dy) native "webkitPutImageDataHD"; |
+ void _webkitPutImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native "webkitPutImageDataHD"; |
/** |
@@ -5374,7 +5356,7 @@ class ContentElement extends Element implements Element native "*HTMLContentElem |
String select; |
/// @domName HTMLContentElement.getDistributedNodes; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
List<Node> getDistributedNodes() native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -5465,8 +5447,7 @@ class CustomEvent extends Event native "*CustomEvent" { |
final Object detail; |
/// @domName CustomEvent.initCustomEvent; @docsEditable true |
- @JSName('initCustomEvent') |
- void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) native; |
+ void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object detailArg) native "initCustomEvent"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -5513,16 +5494,13 @@ class DOMApplicationCache extends EventTarget native "*DOMApplicationCache" { |
void abort() native; |
/// @domName DOMApplicationCache.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName DOMApplicationCache.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName DOMApplicationCache.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName DOMApplicationCache.swapCache; @docsEditable true |
void swapCache() native; |
@@ -5668,8 +5646,7 @@ class DOMFileSystemSync native "*DOMFileSystemSync" { |
class DOMImplementation native "*DOMImplementation" { |
/// @domName DOMImplementation.createCSSStyleSheet; @docsEditable true |
- @JSName('createCSSStyleSheet') |
- CSSStyleSheet createCssStyleSheet(String title, String media) native; |
+ CSSStyleSheet createCssStyleSheet(String title, String media) native "createCSSStyleSheet"; |
/// @domName DOMImplementation.createDocument; @docsEditable true |
Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) native; |
@@ -5678,8 +5655,7 @@ class DOMImplementation native "*DOMImplementation" { |
DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) native; |
/// @domName DOMImplementation.createHTMLDocument; @docsEditable true |
- @JSName('createHTMLDocument') |
- HtmlDocument createHtmlDocument(String title) native; |
+ HtmlDocument createHtmlDocument(String title) native "createHTMLDocument"; |
/// @domName DOMImplementation.hasFeature; @docsEditable true |
bool hasFeature(String feature, String version) native; |
@@ -6274,10 +6250,8 @@ class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte |
_postMessage_2(message_2); |
return; |
} |
- @JSName('postMessage') |
- void _postMessage_1(message, List messagePorts) native; |
- @JSName('postMessage') |
- void _postMessage_2(message) native; |
+ void _postMessage_1(message, List messagePorts) native "postMessage"; |
+ void _postMessage_2(message) native "postMessage"; |
} |
class DedicatedWorkerContextEvents extends WorkerContextEvents { |
@@ -6385,14 +6359,10 @@ class DirectoryEntry extends Entry native "*DirectoryEntry" { |
_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; |
+ void _getDirectory_1(path, options, EntryCallback successCallback, ErrorCallback errorCallback) native "getDirectory"; |
+ void _getDirectory_2(path, options, EntryCallback successCallback) native "getDirectory"; |
+ void _getDirectory_3(path, options) native "getDirectory"; |
+ void _getDirectory_4(path) native "getDirectory"; |
/// @domName DirectoryEntry.getFile; @docsEditable true |
void getFile(String path, {Map options, EntryCallback successCallback, ErrorCallback errorCallback}) { |
@@ -6414,14 +6384,10 @@ class DirectoryEntry extends Entry native "*DirectoryEntry" { |
_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; |
+ void _getFile_1(path, options, EntryCallback successCallback, ErrorCallback errorCallback) native "getFile"; |
+ void _getFile_2(path, options, EntryCallback successCallback) native "getFile"; |
+ void _getFile_3(path, options) native "getFile"; |
+ void _getFile_4(path) native "getFile"; |
/// @domName DirectoryEntry.removeRecursively; @docsEditable true |
void removeRecursively(VoidCallback successCallback, [ErrorCallback errorCallback]) native; |
@@ -6442,16 +6408,14 @@ class DirectoryEntrySync extends EntrySync native "*DirectoryEntrySync" { |
var flags_1 = _convertDartToNative_Dictionary(flags); |
return _getDirectory_1(path, flags_1); |
} |
- @JSName('getDirectory') |
- DirectoryEntrySync _getDirectory_1(path, flags) native; |
+ DirectoryEntrySync _getDirectory_1(path, flags) native "getDirectory"; |
/// @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; |
+ FileEntrySync _getFile_1(path, flags) native "getFile"; |
/// @domName DirectoryEntrySync.removeRecursively; @docsEditable true |
void removeRecursively() native; |
@@ -6525,8 +6489,12 @@ class Document extends Node native "*Document" |
new DocumentEvents(this); |
/// @domName Document.body; @docsEditable true |
- @JSName('body') |
- Element $dom_body; |
+ Element get $dom_body => JS("Element", "#.body", this); |
+ |
+ /// @domName Document.body; @docsEditable true |
+ void set $dom_body(Element value) { |
+ JS("void", "#.body = #", this, value); |
+ } |
/// @domName Document.charset; @docsEditable true |
String charset; |
@@ -6536,9 +6504,7 @@ class Document extends Node native "*Document" |
/// @domName Document.defaultView; @docsEditable true |
Window get window => _convertNativeToDart_Window(this._window); |
- @JSName('defaultView') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _window; |
+ dynamic get _window => JS("dynamic", "#.defaultView", this); |
/// @domName Document.documentElement; @docsEditable true |
final Element documentElement; |
@@ -6547,15 +6513,13 @@ class Document extends Node native "*Document" |
final String domain; |
/// @domName Document.head; @docsEditable true |
- @JSName('head') |
- final HeadElement $dom_head; |
+ HeadElement get $dom_head => JS("HeadElement", "#.head", this); |
/// @domName Document.implementation; @docsEditable true |
final DOMImplementation implementation; |
/// @domName Document.lastModified; @docsEditable true |
- @JSName('lastModified') |
- final String $dom_lastModified; |
+ String get $dom_lastModified => JS("String", "#.lastModified", this); |
/// @domName Document.preferredStylesheetSet; @docsEditable true |
final String preferredStylesheetSet; |
@@ -6564,116 +6528,97 @@ class Document extends Node native "*Document" |
final String readyState; |
/// @domName Document.referrer; @docsEditable true |
- @JSName('referrer') |
- final String $dom_referrer; |
+ String get $dom_referrer => JS("String", "#.referrer", this); |
/// @domName Document.selectedStylesheetSet; @docsEditable true |
String selectedStylesheetSet; |
/// @domName Document.styleSheets; @docsEditable true |
- @JSName('styleSheets') |
- @Returns('_StyleSheetList') @Creates('_StyleSheetList') |
- final List<StyleSheet> $dom_styleSheets; |
+ List<StyleSheet> get $dom_styleSheets => JS("_StyleSheetList", "#.styleSheets", this); |
/// @domName Document.title; @docsEditable true |
- @JSName('title') |
- String $dom_title; |
+ String get $dom_title => JS("String", "#.title", this); |
+ |
+ /// @domName Document.title; @docsEditable true |
+ void set $dom_title(String value) { |
+ JS("void", "#.title = #", this, value); |
+ } |
/// @domName Document.webkitFullscreenElement; @docsEditable true |
- @JSName('webkitFullscreenElement') |
- final Element $dom_webkitFullscreenElement; |
+ Element get $dom_webkitFullscreenElement => JS("Element", "#.webkitFullscreenElement", this); |
/// @domName Document.webkitFullscreenEnabled; @docsEditable true |
- @JSName('webkitFullscreenEnabled') |
- final bool $dom_webkitFullscreenEnabled; |
+ bool get $dom_webkitFullscreenEnabled => JS("bool", "#.webkitFullscreenEnabled", this); |
/// @domName Document.webkitHidden; @docsEditable true |
- @JSName('webkitHidden') |
- final bool $dom_webkitHidden; |
+ bool get $dom_webkitHidden => JS("bool", "#.webkitHidden", this); |
/// @domName Document.webkitIsFullScreen; @docsEditable true |
- @JSName('webkitIsFullScreen') |
- final bool $dom_webkitIsFullScreen; |
+ bool get $dom_webkitIsFullScreen => JS("bool", "#.webkitIsFullScreen", this); |
/// @domName Document.webkitPointerLockElement; @docsEditable true |
- @JSName('webkitPointerLockElement') |
- final Element $dom_webkitPointerLockElement; |
+ Element get $dom_webkitPointerLockElement => JS("Element", "#.webkitPointerLockElement", this); |
/// @domName Document.webkitVisibilityState; @docsEditable true |
- @JSName('webkitVisibilityState') |
- final String $dom_webkitVisibilityState; |
+ String get $dom_webkitVisibilityState => JS("String", "#.webkitVisibilityState", this); |
/// @domName Document.caretRangeFromPoint; @docsEditable true |
- @JSName('caretRangeFromPoint') |
- Range $dom_caretRangeFromPoint(int x, int y) native; |
+ Range $dom_caretRangeFromPoint(int x, int y) native "caretRangeFromPoint"; |
/// @domName Document.createCDATASection; @docsEditable true |
- @JSName('createCDATASection') |
- CDATASection createCDataSection(String data) native; |
+ CDATASection createCDataSection(String data) native "createCDATASection"; |
/// @domName Document.createDocumentFragment; @docsEditable true |
DocumentFragment createDocumentFragment() native; |
/// @domName Document.createElement; @docsEditable true |
- @JSName('createElement') |
- Element $dom_createElement(String tagName) native; |
+ Element $dom_createElement(String tagName) native "createElement"; |
/// @domName Document.createElementNS; @docsEditable true |
- @JSName('createElementNS') |
- Element $dom_createElementNS(String namespaceURI, String qualifiedName) native; |
+ Element $dom_createElementNS(String namespaceURI, String qualifiedName) native "createElementNS"; |
/// @domName Document.createEvent; @docsEditable true |
- @JSName('createEvent') |
- Event $dom_createEvent(String eventType) native; |
+ Event $dom_createEvent(String eventType) native "createEvent"; |
/// @domName Document.createRange; @docsEditable true |
Range createRange() native; |
/// @domName Document.createTextNode; @docsEditable true |
- @JSName('createTextNode') |
- Text $dom_createTextNode(String data) native; |
+ Text $dom_createTextNode(String data) native "createTextNode"; |
/// @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; |
+ Touch _createTouch_1(LocalWindow window, target, identifier, pageX, pageY, screenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) native "createTouch"; |
/// @domName Document.createTouchList; @docsEditable true |
- @JSName('createTouchList') |
- TouchList $dom_createTouchList() native; |
+ TouchList $dom_createTouchList() native "createTouchList"; |
/// @domName Document.elementFromPoint; @docsEditable true |
- @JSName('elementFromPoint') |
- Element $dom_elementFromPoint(int x, int y) native; |
+ Element $dom_elementFromPoint(int x, int y) native "elementFromPoint"; |
/// @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; |
+ CanvasRenderingContext getCssCanvasContext(String contextId, String name, int width, int height) native "getCSSCanvasContext"; |
/// @domName Document.getElementById; @docsEditable true |
- @JSName('getElementById') |
- Element $dom_getElementById(String elementId) native; |
+ Element $dom_getElementById(String elementId) native "getElementById"; |
/// @domName Document.getElementsByClassName; @docsEditable true |
- @JSName('getElementsByClassName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByClassName(String tagname) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByClassName(String tagname) native "getElementsByClassName"; |
/// @domName Document.getElementsByName; @docsEditable true |
- @JSName('getElementsByName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByName(String elementName) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByName(String elementName) native "getElementsByName"; |
/// @domName Document.getElementsByTagName; @docsEditable true |
- @JSName('getElementsByTagName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByTagName(String tagname) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByTagName(String tagname) native "getElementsByTagName"; |
/// @domName Document.queryCommandEnabled; @docsEditable true |
bool queryCommandEnabled(String command) native; |
@@ -6691,25 +6636,20 @@ class Document extends Node native "*Document" |
String queryCommandValue(String command) native; |
/// @domName Document.querySelector; @docsEditable true |
- @JSName('querySelector') |
- Element $dom_querySelector(String selectors) native; |
+ Element $dom_querySelector(String selectors) native "querySelector"; |
/// @domName Document.querySelectorAll; @docsEditable true |
- @JSName('querySelectorAll') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_querySelectorAll(String selectors) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; |
/// @domName Document.webkitCancelFullScreen; @docsEditable true |
- @JSName('webkitCancelFullScreen') |
- void $dom_webkitCancelFullScreen() native; |
+ void $dom_webkitCancelFullScreen() native "webkitCancelFullScreen"; |
/// @domName Document.webkitExitFullscreen; @docsEditable true |
- @JSName('webkitExitFullscreen') |
- void $dom_webkitExitFullscreen() native; |
+ void $dom_webkitExitFullscreen() native "webkitExitFullscreen"; |
/// @domName Document.webkitExitPointerLock; @docsEditable true |
- @JSName('webkitExitPointerLock') |
- void $dom_webkitExitPointerLock() native; |
+ void $dom_webkitExitPointerLock() native "webkitExitPointerLock"; |
// TODO(jacobr): implement all Element methods not on Document. |
@@ -7029,13 +6969,11 @@ class DocumentFragment extends Node native "*DocumentFragment" { |
new ElementEvents(this); |
/// @domName DocumentFragment.querySelector; @docsEditable true |
- @JSName('querySelector') |
- Element $dom_querySelector(String selectors) native; |
+ Element $dom_querySelector(String selectors) native "querySelector"; |
/// @domName DocumentFragment.querySelectorAll; @docsEditable true |
- @JSName('querySelectorAll') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_querySelectorAll(String selectors) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -7578,8 +7516,8 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
} |
} |
- @JSName('insertAdjacentText') |
- void _insertAdjacentText(String where, String text) native; |
+ void _insertAdjacentText(String where, String text) |
+ native 'insertAdjacentText'; |
/** @domName Element.insertAdjacentHTML */ |
void insertAdjacentHtml(String where, String text) { |
@@ -7590,8 +7528,8 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
} |
} |
- @JSName('insertAdjacentHTML') |
- void _insertAdjacentHTML(String where, String text) native; |
+ void _insertAdjacentHtml(String where, String text) |
+ native 'insertAdjacentHTML'; |
/** @domName Element.insertAdjacentHTML */ |
Element insertAdjacentElement(String where, Element element) { |
@@ -7603,8 +7541,8 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
return element; |
} |
- @JSName('insertAdjacentElement') |
- void _insertAdjacentElement(String where, Element element) native; |
+ void _insertAdjacentElement(String where, Element element) |
+ native 'insertAdjacentElement'; |
void _insertAdjacentNode(String where, Node node) { |
switch (where.toLowerCase()) { |
@@ -7632,8 +7570,7 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
new ElementEvents(this); |
/// @domName HTMLElement.children; @docsEditable true |
- @JSName('children') |
- final HTMLCollection $dom_children; |
+ HTMLCollection get $dom_children => JS("HTMLCollection", "#.children", this); |
/// @domName HTMLElement.contentEditable; @docsEditable true |
String contentEditable; |
@@ -7651,8 +7588,12 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
String id; |
/// @domName HTMLElement.innerHTML; @docsEditable true |
- @JSName('innerHTML') |
- String innerHtml; |
+ String get innerHtml => JS("String", "#.innerHTML", this); |
+ |
+ /// @domName HTMLElement.innerHTML; @docsEditable true |
+ void set innerHtml(String value) { |
+ JS("void", "#.innerHTML = #", this, value); |
+ } |
/// @domName HTMLElement.isContentEditable; @docsEditable true |
final bool isContentEditable; |
@@ -7661,8 +7602,7 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
String lang; |
/// @domName HTMLElement.outerHTML; @docsEditable true |
- @JSName('outerHTML') |
- final String outerHtml; |
+ String get outerHtml => JS("String", "#.outerHTML", this); |
/// @domName HTMLElement.spellcheck; @docsEditable true |
bool spellcheck; |
@@ -7685,12 +7625,15 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
static const int ALLOW_KEYBOARD_INPUT = 1; |
/// @domName Element.childElementCount; @docsEditable true |
- @JSName('childElementCount') |
- final int $dom_childElementCount; |
+ int get $dom_childElementCount => JS("int", "#.childElementCount", this); |
/// @domName Element.className; @docsEditable true |
- @JSName('className') |
- String $dom_className; |
+ String get $dom_className => JS("String", "#.className", this); |
+ |
+ /// @domName Element.className; @docsEditable true |
+ void set $dom_className(String value) { |
+ JS("void", "#.className = #", this, value); |
+ } |
/// @domName Element.clientHeight; @docsEditable true |
final int clientHeight; |
@@ -7708,12 +7651,10 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
final Map<String, String> dataset; |
/// @domName Element.firstElementChild; @docsEditable true |
- @JSName('firstElementChild') |
- final Element $dom_firstElementChild; |
+ Element get $dom_firstElementChild => JS("Element", "#.firstElementChild", this); |
/// @domName Element.lastElementChild; @docsEditable true |
- @JSName('lastElementChild') |
- final Element $dom_lastElementChild; |
+ Element get $dom_lastElementChild => JS("Element", "#.lastElementChild", this); |
/// @domName Element.nextElementSibling; @docsEditable true |
final Element nextElementSibling; |
@@ -7761,12 +7702,10 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
void focus() native; |
/// @domName Element.getAttribute; @docsEditable true |
- @JSName('getAttribute') |
- String $dom_getAttribute(String name) native; |
+ String $dom_getAttribute(String name) native "getAttribute"; |
/// @domName Element.getAttributeNS; @docsEditable true |
- @JSName('getAttributeNS') |
- String $dom_getAttributeNS(String namespaceURI, String localName) native; |
+ String $dom_getAttributeNS(String namespaceURI, String localName) native "getAttributeNS"; |
/// @domName Element.getBoundingClientRect; @docsEditable true |
ClientRect getBoundingClientRect() native; |
@@ -7776,39 +7715,31 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
List<ClientRect> getClientRects() native; |
/// @domName Element.getElementsByClassName; @docsEditable true |
- @JSName('getElementsByClassName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByClassName(String name) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByClassName(String name) native "getElementsByClassName"; |
/// @domName Element.getElementsByTagName; @docsEditable true |
- @JSName('getElementsByTagName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByTagName(String name) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByTagName(String name) native "getElementsByTagName"; |
/// @domName Element.hasAttribute; @docsEditable true |
- @JSName('hasAttribute') |
- bool $dom_hasAttribute(String name) native; |
+ bool $dom_hasAttribute(String name) native "hasAttribute"; |
/// @domName Element.hasAttributeNS; @docsEditable true |
- @JSName('hasAttributeNS') |
- bool $dom_hasAttributeNS(String namespaceURI, String localName) native; |
+ bool $dom_hasAttributeNS(String namespaceURI, String localName) native "hasAttributeNS"; |
/// @domName Element.querySelector; @docsEditable true |
- @JSName('querySelector') |
- Element $dom_querySelector(String selectors) native; |
+ Element $dom_querySelector(String selectors) native "querySelector"; |
/// @domName Element.querySelectorAll; @docsEditable true |
- @JSName('querySelectorAll') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_querySelectorAll(String selectors) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_querySelectorAll(String selectors) native "querySelectorAll"; |
/// @domName Element.removeAttribute; @docsEditable true |
- @JSName('removeAttribute') |
- void $dom_removeAttribute(String name) native; |
+ void $dom_removeAttribute(String name) native "removeAttribute"; |
/// @domName Element.removeAttributeNS; @docsEditable true |
- @JSName('removeAttributeNS') |
- void $dom_removeAttributeNS(String namespaceURI, String localName) native; |
+ void $dom_removeAttributeNS(String namespaceURI, String localName) native "removeAttributeNS"; |
/// @domName Element.scrollByLines; @docsEditable true |
void scrollByLines(int lines) native; |
@@ -7817,20 +7748,16 @@ abstract class Element extends Node implements ElementTraversal native "*Element |
void scrollByPages(int pages) native; |
/// @domName Element.scrollIntoViewIfNeeded; @docsEditable true |
- @JSName('scrollIntoViewIfNeeded') |
- void scrollIntoView([bool centerIfNeeded]) native; |
+ void scrollIntoView([bool centerIfNeeded]) native "scrollIntoViewIfNeeded"; |
/// @domName Element.setAttribute; @docsEditable true |
- @JSName('setAttribute') |
- void $dom_setAttribute(String name, String value) native; |
+ void $dom_setAttribute(String name, String value) native "setAttribute"; |
/// @domName Element.setAttributeNS; @docsEditable true |
- @JSName('setAttributeNS') |
- void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String value) native; |
+ void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String value) native "setAttributeNS"; |
/// @domName Element.webkitMatchesSelector; @docsEditable true |
- @JSName('webkitMatchesSelector') |
- bool matchesSelector(String selectors) native; |
+ bool matchesSelector(String selectors) native "webkitMatchesSelector"; |
/// @domName Element.webkitRequestFullScreen; @docsEditable true |
void webkitRequestFullScreen(int flags) native; |
@@ -8140,8 +8067,7 @@ class Entry native "*Entry" { |
void remove(VoidCallback successCallback, [ErrorCallback errorCallback]) native; |
/// @domName Entry.toURL; @docsEditable true |
- @JSName('toURL') |
- String toUrl() native; |
+ String toUrl() native "toURL"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -8190,8 +8116,7 @@ class EntrySync native "*EntrySync" { |
void remove() native; |
/// @domName EntrySync.toURL; @docsEditable true |
- @JSName('toURL') |
- String toUrl() native; |
+ String toUrl() native "toURL"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -8290,9 +8215,7 @@ class Event native "*Event" { |
/// @domName Event.currentTarget; @docsEditable true |
EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._currentTarget); |
- @JSName('currentTarget') |
- @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
- final dynamic _currentTarget; |
+ dynamic get _currentTarget => JS("dynamic", "#.currentTarget", this); |
/// @domName Event.defaultPrevented; @docsEditable true |
final bool defaultPrevented; |
@@ -8305,9 +8228,7 @@ class Event native "*Event" { |
/// @domName Event.target; @docsEditable true |
EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
- @JSName('target') |
- @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
- final dynamic _target; |
+ dynamic get _target => JS("dynamic", "#.target", this); |
/// @domName Event.timeStamp; @docsEditable true |
final int timeStamp; |
@@ -8316,8 +8237,7 @@ class Event native "*Event" { |
final String type; |
/// @domName Event.initEvent; @docsEditable true |
- @JSName('initEvent') |
- void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native; |
+ void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg) native "initEvent"; |
/// @domName Event.preventDefault; @docsEditable true |
void preventDefault() native; |
@@ -8380,19 +8300,16 @@ class EventSource extends EventTarget native "*EventSource" { |
final String url; |
/// @domName EventSource.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName EventSource.close; @docsEditable true |
void close() native; |
/// @domName EventSource.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName EventSource.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class EventSourceEvents extends Events { |
@@ -8461,16 +8378,13 @@ class EventTarget native "*EventTarget" { |
Events get on => new Events(this); |
/// @domName EventTarget.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName EventTarget.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName EventTarget.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -8679,12 +8593,10 @@ class FileReader extends EventTarget native "*FileReader" { |
void abort() native; |
/// @domName FileReader.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName FileReader.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName FileReader.readAsArrayBuffer; @docsEditable true |
void readAsArrayBuffer(Blob blob) native; |
@@ -8693,15 +8605,13 @@ class FileReader extends EventTarget native "*FileReader" { |
void readAsBinaryString(Blob blob) native; |
/// @domName FileReader.readAsDataURL; @docsEditable true |
- @JSName('readAsDataURL') |
- void readAsDataUrl(Blob blob) native; |
+ void readAsDataUrl(Blob blob) native "readAsDataURL"; |
/// @domName FileReader.readAsText; @docsEditable true |
void readAsText(Blob blob, [String encoding]) native; |
/// @domName FileReader.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class FileReaderEvents extends Events { |
@@ -8736,8 +8646,7 @@ class FileReaderSync native "*FileReaderSync" { |
String readAsBinaryString(Blob blob) native; |
/// @domName FileReaderSync.readAsDataURL; @docsEditable true |
- @JSName('readAsDataURL') |
- String readAsDataUrl(Blob blob) native; |
+ String readAsDataUrl(Blob blob) native "readAsDataURL"; |
/// @domName FileReaderSync.readAsText; @docsEditable true |
String readAsText(Blob blob, [String encoding]) native; |
@@ -8784,16 +8693,13 @@ class FileWriter extends EventTarget native "*FileWriter" { |
void abort() native; |
/// @domName FileWriter.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName FileWriter.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName FileWriter.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName FileWriter.seek; @docsEditable true |
void seek(int position) native; |
@@ -8956,8 +8862,7 @@ class Float32Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
// -- end List<num> mixins. |
/// @domName Float32Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Float32Array.subarray; @docsEditable true |
Float32Array subarray(int start, [int end]) native; |
@@ -9067,8 +8972,7 @@ class Float64Array extends ArrayBufferView implements JavaScriptIndexingBehavior |
// -- end List<num> mixins. |
/// @domName Float64Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Float64Array.subarray; @docsEditable true |
Float64Array subarray(int start, [int end]) native; |
@@ -9167,9 +9071,7 @@ 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; |
+ dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); |
/// @domName HTMLFrameElement.frameBorder; @docsEditable true |
String frameBorder; |
@@ -9442,7 +9344,7 @@ class HTMLAllCollection implements JavaScriptIndexingBehavior, List<Node> native |
Node namedItem(String name) native; |
/// @domName HTMLAllCollection.tags; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
List<Node> tags(String name) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -9579,12 +9481,10 @@ class HTMLOptionsCollection extends HTMLCollection native "*HTMLOptionsCollectio |
class HashChangeEvent extends Event native "*HashChangeEvent" { |
/// @domName HashChangeEvent.newURL; @docsEditable true |
- @JSName('newURL') |
- final String newUrl; |
+ String get newUrl => JS("String", "#.newURL", this); |
/// @domName HashChangeEvent.oldURL; @docsEditable true |
- @JSName('oldURL') |
- final String oldUrl; |
+ String get oldUrl => JS("String", "#.oldURL", this); |
/// @domName HashChangeEvent.initHashChangeEvent; @docsEditable true |
void initHashChangeEvent(String type, bool canBubble, bool cancelable, String oldURL, String newURL) native; |
@@ -9766,8 +9666,7 @@ class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
String responseType; |
/// @domName XMLHttpRequest.responseXML; @docsEditable true |
- @JSName('responseXML') |
- final Document responseXml; |
+ Document get responseXml => JS("Document", "#.responseXML", this); |
/// @domName XMLHttpRequest.status; @docsEditable true |
final int status; |
@@ -9785,12 +9684,10 @@ class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
void abort() native; |
/// @domName XMLHttpRequest.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName XMLHttpRequest.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName XMLHttpRequest.getAllResponseHeaders; @docsEditable true |
String getAllResponseHeaders() native; |
@@ -9805,8 +9702,7 @@ class HttpRequest extends EventTarget native "*XMLHttpRequest" { |
void overrideMimeType(String override) native; |
/// @domName XMLHttpRequest.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName XMLHttpRequest.send; @docsEditable true |
void send([data]) native; |
@@ -9884,16 +9780,13 @@ class HttpRequestUpload extends EventTarget native "*XMLHttpRequestUpload" { |
new HttpRequestUploadEvents(this); |
/// @domName XMLHttpRequestUpload.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName XMLHttpRequestUpload.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName XMLHttpRequestUpload.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class HttpRequestUploadEvents extends Events { |
@@ -9961,10 +9854,8 @@ class IDBCursor native "*IDBCursor" { |
_continueFunction_2(); |
return; |
} |
- @JSName('continue') |
- void _continueFunction_1(key) native; |
- @JSName('continue') |
- void _continueFunction_2() native; |
+ void _continueFunction_1(key) native "continue"; |
+ void _continueFunction_2() native "continue"; |
/// @domName IDBCursor.delete; @docsEditable true |
IDBRequest delete() native; |
@@ -9974,8 +9865,7 @@ class IDBCursor native "*IDBCursor" { |
var value_1 = _convertDartToNative_SerializedScriptValue(value); |
return _update_1(value_1); |
} |
- @JSName('update') |
- IDBRequest _update_1(value) native; |
+ IDBRequest _update_1(value) native "update"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -10033,8 +9923,7 @@ class IDBDatabase extends EventTarget native "*IDBDatabase" { |
return db._transaction(stores, intMode); |
} |
- @JSName('transaction') |
- IDBTransaction _transaction(stores, mode) native; |
+ IDBTransaction _transaction(stores, mode) native 'transaction'; |
static bool _hasNumericMode(txn) => |
JS('bool', 'typeof(#.mode) === "number"', txn); |
@@ -10055,8 +9944,7 @@ class IDBDatabase extends EventTarget native "*IDBDatabase" { |
final dynamic version; |
/// @domName IDBDatabase.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName IDBDatabase.close; @docsEditable true |
void close() native; |
@@ -10069,21 +9957,17 @@ class IDBDatabase extends EventTarget native "*IDBDatabase" { |
} |
return _createObjectStore_2(name); |
} |
- @JSName('createObjectStore') |
- IDBObjectStore _createObjectStore_1(name, options) native; |
- @JSName('createObjectStore') |
- IDBObjectStore _createObjectStore_2(name) native; |
+ IDBObjectStore _createObjectStore_1(name, options) native "createObjectStore"; |
+ IDBObjectStore _createObjectStore_2(name) native "createObjectStore"; |
/// @domName IDBDatabase.deleteObjectStore; @docsEditable true |
void deleteObjectStore(String name) native; |
/// @domName IDBDatabase.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName IDBDatabase.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName IDBDatabase.setVersion; @docsEditable true |
IDBVersionChangeRequest setVersion(String version) native; |
@@ -10162,8 +10046,7 @@ class IDBFactory native "*IDBFactory" { |
var second_2 = _convertDartToNative_IDBKey(second); |
return _cmp_1(first_1, second_2); |
} |
- @JSName('cmp') |
- int _cmp_1(first, second) native; |
+ int _cmp_1(first, second) native "cmp"; |
/// @domName IDBFactory.deleteDatabase; @docsEditable true |
IDBVersionChangeRequest deleteDatabase(String name) native; |
@@ -10212,12 +10095,9 @@ class IDBIndex native "*IDBIndex" { |
} |
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; |
+ IDBRequest _count_1() native "count"; |
+ IDBRequest _count_2(IDBKeyRange range) native "count"; |
+ IDBRequest _count_3(key) native "count"; |
/// @domName IDBIndex.get; @docsEditable true |
IDBRequest get(key) { |
@@ -10230,12 +10110,10 @@ class IDBIndex native "*IDBIndex" { |
} |
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') |
+ IDBRequest _get_1(IDBKeyRange key) native "get"; |
@Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedScriptValue |
- IDBRequest _get_2(key) native; |
+ IDBRequest _get_2(key) native "get"; |
/// @domName IDBIndex.getKey; @docsEditable true |
IDBRequest getKey(key) { |
@@ -10248,12 +10126,10 @@ class IDBIndex native "*IDBIndex" { |
} |
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') |
+ IDBRequest _getKey_1(IDBKeyRange key) native "getKey"; |
@Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedScriptValue @Creates('IDBObjectStore') |
- IDBRequest _getKey_2(key) native; |
+ IDBRequest _getKey_2(key) native "getKey"; |
/// @domName IDBIndex.openCursor; @docsEditable true |
IDBRequest openCursor([key_OR_range, String direction]) { |
@@ -10279,21 +10155,16 @@ class IDBIndex native "*IDBIndex" { |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('openCursor') |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_1() native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_1() native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_2(IDBKeyRange range) native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_3(IDBKeyRange range, direction) native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_4(key) native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_4(key) native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_5(key, direction) native; |
+ IDBRequest _openCursor_5(key, direction) native "openCursor"; |
/// @domName IDBIndex.openKeyCursor; @docsEditable true |
IDBRequest openKeyCursor([key_OR_range, String direction]) { |
@@ -10319,21 +10190,16 @@ class IDBIndex native "*IDBIndex" { |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('openKeyCursor') |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openKeyCursor_1() native; |
- @JSName('openKeyCursor') |
+ IDBRequest _openKeyCursor_1() native "openKeyCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openKeyCursor_2(IDBKeyRange range) native; |
- @JSName('openKeyCursor') |
+ IDBRequest _openKeyCursor_2(IDBKeyRange range) native "openKeyCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openKeyCursor_3(IDBKeyRange range, direction) native; |
- @JSName('openKeyCursor') |
+ IDBRequest _openKeyCursor_3(IDBKeyRange range, direction) native "openKeyCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openKeyCursor_4(key) native; |
- @JSName('openKeyCursor') |
+ IDBRequest _openKeyCursor_4(key) native "openKeyCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openKeyCursor_5(key, direction) native; |
+ IDBRequest _openKeyCursor_5(key, direction) native "openKeyCursor"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -10379,16 +10245,14 @@ class IDBKeyRange native "*IDBKeyRange" { |
/// @domName IDBKeyRange.lower; @docsEditable true |
dynamic get lower => _convertNativeToDart_IDBKey(this._lower); |
- @JSName('lower') |
- final dynamic _lower; |
+ dynamic get _lower => JS("dynamic", "#.lower", this); |
/// @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; |
+ dynamic get _upper => JS("dynamic", "#.upper", this); |
/// @domName IDBKeyRange.upperOpen; @docsEditable true |
final bool upperOpen; |
@@ -10409,12 +10273,9 @@ class IDBKeyRange native "*IDBKeyRange" { |
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; |
+ static IDBKeyRange _bound__1(lower, upper, lowerOpen, upperOpen) native "bound"; |
+ static IDBKeyRange _bound__2(lower, upper, lowerOpen) native "bound"; |
+ static IDBKeyRange _bound__3(lower, upper) native "bound"; |
/// @domName IDBKeyRange.lowerBound_; @docsEditable true |
static IDBKeyRange lowerBound_(/*IDBKey*/ bound, [bool open]) { |
@@ -10425,18 +10286,15 @@ class IDBKeyRange native "*IDBKeyRange" { |
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; |
+ static IDBKeyRange _lowerBound__1(bound, open) native "lowerBound"; |
+ static IDBKeyRange _lowerBound__2(bound) native "lowerBound"; |
/// @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; |
+ static IDBKeyRange _only__1(value) native "only"; |
/// @domName IDBKeyRange.upperBound_; @docsEditable true |
static IDBKeyRange upperBound_(/*IDBKey*/ bound, [bool open]) { |
@@ -10447,10 +10305,8 @@ class IDBKeyRange native "*IDBKeyRange" { |
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; |
+ static IDBKeyRange _upperBound__1(bound, open) native "upperBound"; |
+ static IDBKeyRange _upperBound__2(bound) native "upperBound"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -10487,12 +10343,10 @@ class IDBObjectStore native "*IDBObjectStore" { |
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') |
+ IDBRequest _add_1(value, key) native "add"; |
@Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
- IDBRequest _add_2(value) native; |
+ IDBRequest _add_2(value) native "add"; |
/// @domName IDBObjectStore.clear; @docsEditable true |
IDBRequest clear() native; |
@@ -10511,12 +10365,9 @@ class IDBObjectStore native "*IDBObjectStore" { |
} |
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; |
+ IDBRequest _count_1() native "count"; |
+ IDBRequest _count_2(IDBKeyRange range) native "count"; |
+ IDBRequest _count_3(key) native "count"; |
/// @domName IDBObjectStore.createIndex; @docsEditable true |
IDBIndex createIndex(String name, keyPath, [Map options]) { |
@@ -10540,14 +10391,10 @@ class IDBObjectStore native "*IDBObjectStore" { |
} |
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; |
+ IDBIndex _createIndex_1(name, List keyPath) native "createIndex"; |
+ IDBIndex _createIndex_2(name, List keyPath, options) native "createIndex"; |
+ IDBIndex _createIndex_3(name, String keyPath) native "createIndex"; |
+ IDBIndex _createIndex_4(name, String keyPath, options) native "createIndex"; |
/// @domName IDBObjectStore.delete; @docsEditable true |
IDBRequest delete(key_OR_keyRange) { |
@@ -10560,10 +10407,8 @@ class IDBObjectStore native "*IDBObjectStore" { |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('delete') |
- IDBRequest _delete_1(IDBKeyRange keyRange) native; |
- @JSName('delete') |
- IDBRequest _delete_2(key) native; |
+ IDBRequest _delete_1(IDBKeyRange keyRange) native "delete"; |
+ IDBRequest _delete_2(key) native "delete"; |
/// @domName IDBObjectStore.deleteIndex; @docsEditable true |
void deleteIndex(String name) native; |
@@ -10579,12 +10424,10 @@ class IDBObjectStore native "*IDBObjectStore" { |
} |
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') |
+ IDBRequest _getObject_1(IDBKeyRange key) native "get"; |
@Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_SerializedScriptValue |
- IDBRequest _getObject_2(key) native; |
+ IDBRequest _getObject_2(key) native "get"; |
/// @domName IDBObjectStore.index; @docsEditable true |
IDBIndex index(String name) native; |
@@ -10613,21 +10456,16 @@ class IDBObjectStore native "*IDBObjectStore" { |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('openCursor') |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_1() native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_1() native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_2(IDBKeyRange range) native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_2(IDBKeyRange range) native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_3(IDBKeyRange range, direction) native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_3(IDBKeyRange range, direction) native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_4(key) native; |
- @JSName('openCursor') |
+ IDBRequest _openCursor_4(key) native "openCursor"; |
@Returns('IDBRequest') @Creates('IDBRequest') @Creates('IDBCursor') |
- IDBRequest _openCursor_5(key, direction) native; |
+ IDBRequest _openCursor_5(key, direction) native "openCursor"; |
/// @domName IDBObjectStore.put; @docsEditable true |
IDBRequest put(/*any*/ value, [/*IDBKey*/ key]) { |
@@ -10639,12 +10477,10 @@ class IDBObjectStore native "*IDBObjectStore" { |
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') |
+ IDBRequest _put_1(value, key) native "put"; |
@Returns('IDBRequest') @Creates('IDBRequest') @_annotation_Creates_IDBKey |
- IDBRequest _put_2(value) native; |
+ IDBRequest _put_2(value) native "put"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -10689,9 +10525,7 @@ class IDBRequest extends EventTarget native "*IDBRequest" { |
/// @domName IDBRequest.result; @docsEditable true |
dynamic get result => _convertNativeToDart_IDBAny(this._result); |
- @JSName('result') |
- @Creates('Null') |
- final dynamic _result; |
+ dynamic get _result => JS("dynamic", "#.result", this); |
/// @domName IDBRequest.source; @docsEditable true |
@Creates('Null') |
@@ -10704,16 +10538,13 @@ class IDBRequest extends EventTarget native "*IDBRequest" { |
final String webkitErrorMessage; |
/// @domName IDBRequest.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName IDBRequest.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName IDBRequest.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class IDBRequestEvents extends Events { |
@@ -10754,19 +10585,16 @@ class IDBTransaction extends EventTarget native "*IDBTransaction" { |
void abort() native; |
/// @domName IDBTransaction.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName IDBTransaction.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName IDBTransaction.objectStore; @docsEditable true |
IDBObjectStore objectStore(String name) native; |
/// @domName IDBTransaction.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class IDBTransactionEvents extends Events { |
@@ -10836,9 +10664,7 @@ class IFrameElement extends Element implements Element native "*HTMLIFrameElemen |
/// @domName HTMLIFrameElement.contentWindow; @docsEditable true |
Window get contentWindow => _convertNativeToDart_Window(this._contentWindow); |
- @JSName('contentWindow') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _contentWindow; |
+ dynamic get _contentWindow => JS("dynamic", "#.contentWindow", this); |
/// @domName HTMLIFrameElement.frameBorder; @docsEditable true |
String frameBorder; |
@@ -11067,7 +10893,7 @@ class InputElement extends Element implements Element native "*HTMLInputElement" |
bool indeterminate; |
/// @domName HTMLInputElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLInputElement.list; @docsEditable true |
@@ -11290,8 +11116,7 @@ class Int16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
// -- end List<int> mixins. |
/// @domName Int16Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Int16Array.subarray; @docsEditable true |
Int16Array subarray(int start, [int end]) native; |
@@ -11401,8 +11226,7 @@ class Int32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
// -- end List<int> mixins. |
/// @domName Int32Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Int32Array.subarray; @docsEditable true |
Int32Array subarray(int start, [int end]) native; |
@@ -11512,8 +11336,7 @@ class Int8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, L |
// -- end List<int> mixins. |
/// @domName Int8Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Int8Array.subarray; @docsEditable true |
Int8Array subarray(int start, [int end]) native; |
@@ -11627,7 +11450,7 @@ class KeygenElement extends Element implements Element native "*HTMLKeygenElemen |
String keytype; |
/// @domName HTMLKeygenElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLKeygenElement.name; @docsEditable true |
@@ -11757,10 +11580,7 @@ class LocalHistory implements History native "*History" { |
final int length; |
/// @domName History.state; @docsEditable true |
- dynamic get state => _convertNativeToDart_SerializedScriptValue(this._state); |
- @JSName('state') |
- @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScriptValue |
- final dynamic _state; |
+ final dynamic state; |
/// @domName History.back; @docsEditable true |
void back() native; |
@@ -11898,8 +11718,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
} |
// Prevent compiled from thinking 'location' property is available for a Dart |
// member. |
- @JSName('location') |
- _protect_location() native; |
+ _protect_location() native 'location'; |
static _isDartLocation(thing) { |
// On Firefox the code that implements 'is Location' fails to find the patch |
@@ -11931,11 +11750,11 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
_cancelAnimationFrame(id); |
} |
- @JSName('requestAnimationFrame') |
- int _requestAnimationFrame(RequestAnimationFrameCallback callback) native; |
+ int _requestAnimationFrame(RequestAnimationFrameCallback callback) |
+ native 'requestAnimationFrame'; |
- @JSName('cancelAnimationFrame') |
- void _cancelAnimationFrame(int id) native; |
+ void _cancelAnimationFrame(int id) |
+ native 'cancelAnimationFrame'; |
_ensureRequestAnimationFrame() { |
if (JS('bool', |
@@ -12049,9 +11868,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
/// @domName Window.opener; @docsEditable true |
Window get opener => _convertNativeToDart_Window(this._opener); |
- @JSName('opener') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _opener; |
+ dynamic get _opener => JS("dynamic", "#.opener", this); |
/// @domName Window.outerHeight; @docsEditable true |
final int outerHeight; |
@@ -12070,9 +11887,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
/// @domName Window.parent; @docsEditable true |
Window get parent => _convertNativeToDart_Window(this._parent); |
- @JSName('parent') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _parent; |
+ dynamic get _parent => JS("dynamic", "#.parent", this); |
/// @domName Window.performance; @docsEditable true |
final Performance performance; |
@@ -12106,9 +11921,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
/// @domName Window.self; @docsEditable true |
Window get self => _convertNativeToDart_Window(this._self); |
- @JSName('self') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _self; |
+ dynamic get _self => JS("dynamic", "#.self", this); |
/// @domName Window.sessionStorage; @docsEditable true |
final Storage sessionStorage; |
@@ -12127,9 +11940,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
/// @domName Window.top; @docsEditable true |
Window get top => _convertNativeToDart_Window(this._top); |
- @JSName('top') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _top; |
+ dynamic get _top => JS("dynamic", "#.top", this); |
/// @domName DOMWindow.webkitIndexedDB; @docsEditable true |
final IDBFactory webkitIndexedDB; |
@@ -12142,13 +11953,10 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
/// @domName Window.window; @docsEditable true |
Window get window => _convertNativeToDart_Window(this._window); |
- @JSName('window') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _window; |
+ dynamic get _window => JS("dynamic", "#.window", this); |
/// @domName Window.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName Window.alert; @docsEditable true |
void alert(String message) native; |
@@ -12175,20 +11983,17 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
bool confirm(String message) native; |
/// @domName Window.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName Window.find; @docsEditable true |
bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool wholeWord, bool searchInFrames, bool showDialog) native; |
/// @domName Window.getComputedStyle; @docsEditable true |
- @JSName('getComputedStyle') |
- CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native; |
+ CSSStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElement) native "getComputedStyle"; |
/// @domName Window.getMatchedCSSRules; @docsEditable true |
- @JSName('getMatchedCSSRules') |
@Returns('_CSSRuleList') @Creates('_CSSRuleList') |
- List<CSSRule> getMatchedCssRules(Element element, String pseudoElement) native; |
+ List<CSSRule> getMatchedCssRules(Element element, String pseudoElement) native "getMatchedCSSRules"; |
/// @domName Window.getSelection; @docsEditable true |
DOMSelection getSelection() native; |
@@ -12221,10 +12026,8 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('postMessage') |
- void _postMessage_1(message, targetOrigin) native; |
- @JSName('postMessage') |
- void _postMessage_2(message, targetOrigin, List messagePorts) native; |
+ void _postMessage_1(message, targetOrigin) native "postMessage"; |
+ void _postMessage_2(message, targetOrigin, List messagePorts) native "postMessage"; |
/// @domName Window.print; @docsEditable true |
void print() native; |
@@ -12233,8 +12036,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
void releaseEvents() native; |
/// @domName Window.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName Window.resizeBy; @docsEditable true |
void resizeBy(num x, num y) native; |
@@ -12273,8 +12075,7 @@ class LocalWindow extends EventTarget implements Window native "@*DOMWindow" { |
void webkitRequestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]) native; |
/// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true |
- @JSName('webkitResolveLocalFileSystemURL') |
- void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native; |
+ void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "webkitResolveLocalFileSystemURL"; |
} |
@@ -12531,12 +12332,10 @@ class MediaController extends EventTarget native "*MediaController" { |
num volume; |
/// @domName MediaController.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName MediaController.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName MediaController.pause; @docsEditable true |
void pause() native; |
@@ -12545,8 +12344,7 @@ class MediaController extends EventTarget native "*MediaController" { |
void play() native; |
/// @domName MediaController.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -12816,8 +12614,7 @@ class MediaKeyError native "*MediaKeyError" { |
class MediaKeyEvent extends Event native "*MediaKeyEvent" { |
/// @domName MediaKeyEvent.defaultURL; @docsEditable true |
- @JSName('defaultURL') |
- final String defaultUrl; |
+ String get defaultUrl => JS("String", "#.defaultURL", this); |
/// @domName MediaKeyEvent.errorCode; @docsEditable true |
final MediaKeyError errorCode; |
@@ -12914,22 +12711,19 @@ class MediaSource extends EventTarget native "*MediaSource" { |
final SourceBufferList sourceBuffers; |
/// @domName MediaSource.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName MediaSource.addSourceBuffer; @docsEditable true |
SourceBuffer addSourceBuffer(String type) native; |
/// @domName MediaSource.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName MediaSource.endOfStream; @docsEditable true |
void endOfStream(String error) native; |
/// @domName MediaSource.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName MediaSource.removeSourceBuffer; @docsEditable true |
void removeSourceBuffer(SourceBuffer buffer) native; |
@@ -12965,16 +12759,13 @@ class MediaStream extends EventTarget native "*MediaStream" { |
final MediaStreamTrackList videoTracks; |
/// @domName MediaStream.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName MediaStream.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName MediaStream.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class MediaStreamEvents extends Events { |
@@ -13035,16 +12826,13 @@ class MediaStreamTrack extends EventTarget native "*MediaStreamTrack" { |
final int readyState; |
/// @domName MediaStreamTrack.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName MediaStreamTrack.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName MediaStreamTrack.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class MediaStreamTrackEvents extends Events { |
@@ -13086,12 +12874,10 @@ class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { |
void add(MediaStreamTrack track) native; |
/// @domName MediaStreamTrackList.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName MediaStreamTrackList.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName MediaStreamTrackList.item; @docsEditable true |
MediaStreamTrack item(int index) native; |
@@ -13100,8 +12886,7 @@ class MediaStreamTrackList extends EventTarget native "*MediaStreamTrackList" { |
void remove(MediaStreamTrack track) native; |
/// @domName MediaStreamTrackList.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class MediaStreamTrackListEvents extends Events { |
@@ -13174,9 +12959,7 @@ class MessageEvent extends Event native "*MessageEvent" { |
/// @domName MessageEvent.data; @docsEditable true |
dynamic get data => _convertNativeToDart_SerializedScriptValue(this._data); |
- @JSName('data') |
- @_annotation_Creates_SerializedScriptValue @_annotation_Returns_SerializedScriptValue |
- final dynamic _data; |
+ dynamic get _data => JS("dynamic", "#.data", this); |
/// @domName MessageEvent.lastEventId; @docsEditable true |
final String lastEventId; |
@@ -13190,9 +12973,7 @@ class MessageEvent extends Event native "*MessageEvent" { |
/// @domName MessageEvent.source; @docsEditable true |
Window get source => _convertNativeToDart_Window(this._source); |
- @JSName('source') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _source; |
+ dynamic get _source => JS("dynamic", "#.source", this); |
/// @domName MessageEvent.initMessageEvent; @docsEditable true |
void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Object dataArg, String originArg, String lastEventIdArg, LocalWindow sourceArg, List messagePorts) native; |
@@ -13213,15 +12994,13 @@ class MessagePort extends EventTarget native "*MessagePort" { |
new MessagePortEvents(this); |
/// @domName MessagePort.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName MessagePort.close; @docsEditable true |
void close() native; |
/// @domName MessagePort.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName MessagePort.postMessage; @docsEditable true |
void postMessage(/*any*/ message, [List messagePorts]) { |
@@ -13234,14 +13013,11 @@ class MessagePort extends EventTarget native "*MessagePort" { |
_postMessage_2(message_2); |
return; |
} |
- @JSName('postMessage') |
- void _postMessage_1(message, List messagePorts) native; |
- @JSName('postMessage') |
- void _postMessage_2(message) native; |
+ void _postMessage_1(message, List messagePorts) native "postMessage"; |
+ void _postMessage_2(message) native "postMessage"; |
/// @domName MessagePort.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName MessagePort.start; @docsEditable true |
void start() native; |
@@ -13308,7 +13084,7 @@ class MeterElement extends Element implements Element native "*HTMLMeterElement" |
num high; |
/// @domName HTMLMeterElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLMeterElement.low; @docsEditable true |
@@ -13384,9 +13160,7 @@ class MouseEvent extends UIEvent native "*MouseEvent" { |
/// @domName MouseEvent.relatedTarget; @docsEditable true |
EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._relatedTarget); |
- @JSName('relatedTarget') |
- @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
- final dynamic _relatedTarget; |
+ dynamic get _relatedTarget => JS("dynamic", "#.relatedTarget", this); |
/// @domName MouseEvent.screenX; @docsEditable true |
final int screenX; |
@@ -13418,8 +13192,7 @@ class MouseEvent extends UIEvent native "*MouseEvent" { |
_$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget_1); |
return; |
} |
- @JSName('initMouseEvent') |
- void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native; |
+ void _$dom_initMouseEvent_1(type, canBubble, cancelable, LocalWindow view, detail, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTarget) native "initMouseEvent"; |
int get offsetX { |
@@ -13509,8 +13282,7 @@ class MutationObserver native "*MutationObserver" { |
__observe_1(target, options_1); |
return; |
} |
- @JSName('observe') |
- void __observe_1(Node target, options) native; |
+ void __observe_1(Node target, options) native "observe"; |
/// @domName MutationObserver.takeRecords; @docsEditable true |
List<MutationRecord> takeRecords() native; |
@@ -13574,8 +13346,7 @@ class MutationObserver native "*MutationObserver" { |
static _fixupList(list) => list; // TODO: Ensure is a JavaScript Array. |
// Call native function with no conversions. |
- @JSName('observe') |
- void _call(target, options) native; |
+ void _call(target, options) native 'observe'; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -13586,7 +13357,7 @@ class MutationObserver native "*MutationObserver" { |
class MutationRecord native "*MutationRecord" { |
/// @domName MutationRecord.addedNodes; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> addedNodes; |
/// @domName MutationRecord.attributeName; @docsEditable true |
@@ -13605,7 +13376,7 @@ class MutationRecord native "*MutationRecord" { |
final Node previousSibling; |
/// @domName MutationRecord.removedNodes; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> removedNodes; |
/// @domName MutationRecord.target; @docsEditable true |
@@ -13808,10 +13579,8 @@ class Navigator native "*Navigator" { |
_webkitGetUserMedia_2(options_2, successCallback); |
return; |
} |
- @JSName('webkitGetUserMedia') |
- void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback) native; |
- @JSName('webkitGetUserMedia') |
- void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successCallback) native; |
+ void _webkitGetUserMedia_1(options, NavigatorUserMediaSuccessCallback successCallback, NavigatorUserMediaErrorCallback errorCallback) native "webkitGetUserMedia"; |
+ void _webkitGetUserMedia_2(options, NavigatorUserMediaSuccessCallback successCallback) native "webkitGetUserMedia"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -14031,71 +13800,60 @@ class Node extends EventTarget native "*Node" { |
static const int TEXT_NODE = 3; |
/// @domName Node.attributes; @docsEditable true |
- @JSName('attributes') |
- final NamedNodeMap $dom_attributes; |
+ NamedNodeMap get $dom_attributes => JS("NamedNodeMap", "#.attributes", this); |
/// @domName Node.childNodes; @docsEditable true |
- @JSName('childNodes') |
- @Returns('NodeList') @Creates('NodeList') |
- final List<Node> $dom_childNodes; |
+ List<Node> get $dom_childNodes => JS("_NodeList", "#.childNodes", this); |
/// @domName Node.firstChild; @docsEditable true |
- @JSName('firstChild') |
- final Node $dom_firstChild; |
+ Node get $dom_firstChild => JS("Node", "#.firstChild", this); |
/// @domName Node.lastChild; @docsEditable true |
- @JSName('lastChild') |
- final Node $dom_lastChild; |
+ Node get $dom_lastChild => JS("Node", "#.lastChild", this); |
/// @domName Node.localName; @docsEditable true |
- @JSName('localName') |
- final String $dom_localName; |
+ String get $dom_localName => JS("String", "#.localName", this); |
/// @domName Node.namespaceURI; @docsEditable true |
- @JSName('namespaceURI') |
- final String $dom_namespaceUri; |
+ String get $dom_namespaceUri => JS("String", "#.namespaceURI", this); |
/// @domName Node.nextSibling; @docsEditable true |
- @JSName('nextSibling') |
- final Node nextNode; |
+ Node get nextNode => JS("Node", "#.nextSibling", this); |
/// @domName Node.nodeType; @docsEditable true |
final int nodeType; |
/// @domName Node.ownerDocument; @docsEditable true |
- @JSName('ownerDocument') |
- final Document document; |
+ Document get document => JS("Document", "#.ownerDocument", this); |
/// @domName Node.parentNode; @docsEditable true |
- @JSName('parentNode') |
- final Node parent; |
+ Node get parent => JS("Node", "#.parentNode", this); |
/// @domName Node.previousSibling; @docsEditable true |
- @JSName('previousSibling') |
- final Node previousNode; |
+ Node get previousNode => JS("Node", "#.previousSibling", this); |
/// @domName Node.textContent; @docsEditable true |
- @JSName('textContent') |
- String text; |
+ String get text => JS("String", "#.textContent", this); |
+ |
+ /// @domName Node.textContent; @docsEditable true |
+ void set text(String value) { |
+ JS("void", "#.textContent = #", this, value); |
+ } |
/// @domName Node.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName Node.appendChild; @docsEditable true |
- @JSName('appendChild') |
- Node $dom_appendChild(Node newChild) native; |
+ Node $dom_appendChild(Node newChild) native "appendChild"; |
/// @domName Node.cloneNode; @docsEditable true |
- @JSName('cloneNode') |
- Node clone(bool deep) native; |
+ Node clone(bool deep) native "cloneNode"; |
/// @domName Node.contains; @docsEditable true |
bool contains(Node other) native; |
/// @domName Node.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName Node.hasChildNodes; @docsEditable true |
bool hasChildNodes() native; |
@@ -14104,16 +13862,13 @@ class Node extends EventTarget native "*Node" { |
Node insertBefore(Node newChild, Node refChild) native; |
/// @domName Node.removeChild; @docsEditable true |
- @JSName('removeChild') |
- Node $dom_removeChild(Node oldChild) native; |
+ Node $dom_removeChild(Node oldChild) native "removeChild"; |
/// @domName Node.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName Node.replaceChild; @docsEditable true |
- @JSName('replaceChild') |
- Node $dom_replaceChild(Node newChild, Node oldChild) native; |
+ Node $dom_replaceChild(Node newChild, Node oldChild) native "replaceChild"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -14199,106 +13954,6 @@ class NodeIterator native "*NodeIterator" { |
// BSD-style license that can be found in the LICENSE file. |
-/// @domName NodeList; @docsEditable true |
-class NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeList" { |
- |
- /// @domName NodeList.length; @docsEditable true |
- final int length; |
- |
- Node operator[](int index) => JS("Node", "#[#]", 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. |
- |
- // From Iterable<Node>: |
- |
- 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); |
- } |
- |
- // From Collection<Node>: |
- |
- void add(Node value) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
- |
- void addLast(Node value) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
- |
- void addAll(Collection<Node> collection) { |
- throw new UnsupportedError("Cannot add to immutable List."); |
- } |
- |
- bool contains(Node element) => _Collections.contains(this, element); |
- |
- void forEach(void f(Node element)) => _Collections.forEach(this, f); |
- |
- Collection map(f(Node element)) => _Collections.map(this, [], f); |
- |
- Collection<Node> filter(bool f(Node element)) => |
- _Collections.filter(this, <Node>[], f); |
- |
- bool every(bool f(Node element)) => _Collections.every(this, f); |
- |
- bool some(bool f(Node element)) => _Collections.some(this, f); |
- |
- bool get isEmpty => this.length == 0; |
- |
- // From List<Node>: |
- |
- 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); |
- |
- int lastIndexOf(Node element, [int start]) { |
- if (start == null) start = length - 1; |
- return _Lists.lastIndexOf(this, element, start); |
- } |
- |
- Node get first => this[0]; |
- |
- Node get last => this[length - 1]; |
- |
- Node removeLast() { |
- throw new UnsupportedError("Cannot removeLast on immutable List."); |
- } |
- |
- void setRange(int start, int rangeLength, List<Node> 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, [Node 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. |
- |
- /// @domName NodeList.item; @docsEditable true |
- @JSName('item') |
- Node _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 Notation; @docsEditable true |
class Notation extends Node native "*Notation" { |
@@ -14340,8 +13995,7 @@ class Notification extends EventTarget native "*Notification" { |
String tag; |
/// @domName Notification.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName Notification.cancel; @docsEditable true |
void cancel() native; |
@@ -14350,12 +14004,10 @@ class Notification extends EventTarget native "*Notification" { |
void close() native; |
/// @domName Notification.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName Notification.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName Notification.requestPermission; @docsEditable true |
static void requestPermission(NotificationPermissionCallback callback) native; |
@@ -14389,8 +14041,7 @@ class NotificationCenter native "*NotificationCenter" { |
int checkPermission() native; |
/// @domName NotificationCenter.createHTMLNotification; @docsEditable true |
- @JSName('createHTMLNotification') |
- Notification createHtmlNotification(String url) native; |
+ Notification createHtmlNotification(String url) native "createHTMLNotification"; |
/// @domName NotificationCenter.createNotification; @docsEditable true |
Notification createNotification(String iconUrl, String title, String body) native; |
@@ -14443,20 +14094,16 @@ class OESVertexArrayObject native "*OESVertexArrayObject" { |
static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
/// @domName OESVertexArrayObject.bindVertexArrayOES; @docsEditable true |
- @JSName('bindVertexArrayOES') |
- void bindVertexArray(WebGLVertexArrayObjectOES arrayObject) native; |
+ void bindVertexArray(WebGLVertexArrayObjectOES arrayObject) native "bindVertexArrayOES"; |
/// @domName OESVertexArrayObject.createVertexArrayOES; @docsEditable true |
- @JSName('createVertexArrayOES') |
- WebGLVertexArrayObjectOES createVertexArray() native; |
+ WebGLVertexArrayObjectOES createVertexArray() native "createVertexArrayOES"; |
/// @domName OESVertexArrayObject.deleteVertexArrayOES; @docsEditable true |
- @JSName('deleteVertexArrayOES') |
- void deleteVertexArray(WebGLVertexArrayObjectOES arrayObject) native; |
+ void deleteVertexArray(WebGLVertexArrayObjectOES arrayObject) native "deleteVertexArrayOES"; |
/// @domName OESVertexArrayObject.isVertexArrayOES; @docsEditable true |
- @JSName('isVertexArrayOES') |
- bool isVertexArray(WebGLVertexArrayObjectOES arrayObject) native; |
+ bool isVertexArray(WebGLVertexArrayObjectOES arrayObject) native "isVertexArrayOES"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -14695,7 +14342,7 @@ class OutputElement extends Element implements Element native "*HTMLOutputElemen |
DOMSettableTokenList htmlFor; |
/// @domName HTMLOutputElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLOutputElement.name; @docsEditable true |
@@ -14927,8 +14574,7 @@ class PeerConnection00 extends EventTarget native "*PeerConnection00" { |
final List<MediaStream> remoteStreams; |
/// @domName PeerConnection00.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName PeerConnection00.addStream; @docsEditable true |
void addStream(MediaStream stream, [Map mediaStreamHints]) { |
@@ -14940,10 +14586,8 @@ class PeerConnection00 extends EventTarget native "*PeerConnection00" { |
_addStream_2(stream); |
return; |
} |
- @JSName('addStream') |
- void _addStream_1(MediaStream stream, mediaStreamHints) native; |
- @JSName('addStream') |
- void _addStream_2(MediaStream stream) native; |
+ void _addStream_1(MediaStream stream, mediaStreamHints) native "addStream"; |
+ void _addStream_2(MediaStream stream) native "addStream"; |
/// @domName PeerConnection00.close; @docsEditable true |
void close() native; |
@@ -14956,10 +14600,8 @@ class PeerConnection00 extends EventTarget native "*PeerConnection00" { |
} |
return _createAnswer_2(offer); |
} |
- @JSName('createAnswer') |
- SessionDescription _createAnswer_1(offer, mediaHints) native; |
- @JSName('createAnswer') |
- SessionDescription _createAnswer_2(offer) native; |
+ SessionDescription _createAnswer_1(offer, mediaHints) native "createAnswer"; |
+ SessionDescription _createAnswer_2(offer) native "createAnswer"; |
/// @domName PeerConnection00.createOffer; @docsEditable true |
SessionDescription createOffer([Map mediaHints]) { |
@@ -14969,21 +14611,17 @@ class PeerConnection00 extends EventTarget native "*PeerConnection00" { |
} |
return _createOffer_2(); |
} |
- @JSName('createOffer') |
- SessionDescription _createOffer_1(mediaHints) native; |
- @JSName('createOffer') |
- SessionDescription _createOffer_2() native; |
+ SessionDescription _createOffer_1(mediaHints) native "createOffer"; |
+ SessionDescription _createOffer_2() native "createOffer"; |
/// @domName PeerConnection00.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName PeerConnection00.processIceMessage; @docsEditable true |
void processIceMessage(IceCandidate candidate) native; |
/// @domName PeerConnection00.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName PeerConnection00.removeStream; @docsEditable true |
void removeStream(MediaStream stream) native; |
@@ -15004,10 +14642,8 @@ class PeerConnection00 extends EventTarget native "*PeerConnection00" { |
_startIce_2(); |
return; |
} |
- @JSName('startIce') |
- void _startIce_1(iceOptions) native; |
- @JSName('startIce') |
- void _startIce_2() native; |
+ void _startIce_1(iceOptions) native "startIce"; |
+ void _startIce_2() native "startIce"; |
} |
class PeerConnection00Events extends Events { |
@@ -15164,9 +14800,7 @@ 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; |
+ dynamic get _state => JS("dynamic", "#.state", this); |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -15248,7 +14882,7 @@ class ProgressElement extends Element implements Element native "*HTMLProgressEl |
factory ProgressElement() => document.$dom_createElement("progress"); |
/// @domName HTMLProgressElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLProgressElement.max; @docsEditable true |
@@ -15333,19 +14967,16 @@ class RTCDataChannel extends EventTarget native "*RTCDataChannel" { |
final bool reliable; |
/// @domName RTCDataChannel.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName RTCDataChannel.close; @docsEditable true |
void close() native; |
/// @domName RTCDataChannel.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName RTCDataChannel.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName RTCDataChannel.send; @docsEditable true |
void send(data) native; |
@@ -15451,8 +15082,7 @@ class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
final List<MediaStream> remoteStreams; |
/// @domName RTCPeerConnection.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName RTCPeerConnection.addIceCandidate; @docsEditable true |
void addIceCandidate(RTCIceCandidate candidate) native; |
@@ -15467,10 +15097,8 @@ class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
_addStream_2(stream); |
return; |
} |
- @JSName('addStream') |
- void _addStream_1(MediaStream stream, mediaConstraints) native; |
- @JSName('addStream') |
- void _addStream_2(MediaStream stream) native; |
+ void _addStream_1(MediaStream stream, mediaConstraints) native "addStream"; |
+ void _addStream_2(MediaStream stream) native "addStream"; |
/// @domName RTCPeerConnection.close; @docsEditable true |
void close() native; |
@@ -15485,10 +15113,8 @@ class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
_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 _createAnswer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback, mediaConstraints) native "createAnswer"; |
+ void _createAnswer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback) native "createAnswer"; |
/// @domName RTCPeerConnection.createDataChannel; @docsEditable true |
RTCDataChannel createDataChannel(String label, [Map options]) { |
@@ -15498,10 +15124,8 @@ class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
} |
return _createDataChannel_2(label); |
} |
- @JSName('createDataChannel') |
- RTCDataChannel _createDataChannel_1(label, options) native; |
- @JSName('createDataChannel') |
- RTCDataChannel _createDataChannel_2(label) native; |
+ RTCDataChannel _createDataChannel_1(label, options) native "createDataChannel"; |
+ RTCDataChannel _createDataChannel_2(label) native "createDataChannel"; |
/// @domName RTCPeerConnection.createOffer; @docsEditable true |
void createOffer(RTCSessionDescriptionCallback successCallback, [RTCErrorCallback failureCallback, Map mediaConstraints]) { |
@@ -15513,21 +15137,17 @@ class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
_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; |
+ void _createOffer_1(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback, mediaConstraints) native "createOffer"; |
+ void _createOffer_2(RTCSessionDescriptionCallback successCallback, RTCErrorCallback failureCallback) native "createOffer"; |
/// @domName RTCPeerConnection.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName RTCPeerConnection.getStats; @docsEditable true |
void getStats(RTCStatsCallback successCallback, MediaStreamTrack selector) native; |
/// @domName RTCPeerConnection.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName RTCPeerConnection.removeStream; @docsEditable true |
void removeStream(MediaStream stream) native; |
@@ -15554,12 +15174,9 @@ class RTCPeerConnection extends EventTarget native "*RTCPeerConnection" { |
_updateIce_3(); |
return; |
} |
- @JSName('updateIce') |
- void _updateIce_1(configuration, mediaConstraints) native; |
- @JSName('updateIce') |
- void _updateIce_2(configuration) native; |
- @JSName('updateIce') |
- void _updateIce_3() native; |
+ void _updateIce_1(configuration, mediaConstraints) native "updateIce"; |
+ void _updateIce_2(configuration) native "updateIce"; |
+ void _updateIce_3() native "updateIce"; |
} |
class RTCPeerConnectionEvents extends Events { |
@@ -15656,7 +15273,7 @@ class RTCStatsResponse native "*RTCStatsResponse" { |
/// @domName RadioNodeList; @docsEditable true |
-class RadioNodeList extends NodeList native "*RadioNodeList" { |
+class RadioNodeList extends _NodeList native "*RadioNodeList" { |
/// @domName RadioNodeList.value; @docsEditable true |
String value; |
@@ -16008,9 +15625,8 @@ class SQLResultSetRowList implements JavaScriptIndexingBehavior, List<Map> nativ |
Map item(int index) { |
return _convertNativeToDart_Dictionary(_item_1(index)); |
} |
- @JSName('item') |
@Creates('=Object') |
- _item_1(index) native; |
+ _item_1(index) native "item"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -16187,8 +15803,7 @@ class ScriptProfile native "*ScriptProfile" { |
class ScriptProfileNode native "*ScriptProfileNode" { |
/// @domName ScriptProfileNode.callUID; @docsEditable true |
- @JSName('callUID') |
- final int callUid; |
+ int get callUid => JS("int", "#.callUID", this); |
/// @domName ScriptProfileNode.functionName; @docsEditable true |
final String functionName; |
@@ -16234,7 +15849,7 @@ class SelectElement extends Element implements Element native "*HTMLSelectElemen |
final FormElement form; |
/// @domName HTMLSelectElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLSelectElement.length; @docsEditable true |
@@ -16344,29 +15959,29 @@ class ShadowRoot extends DocumentFragment native "*ShadowRoot" { |
bool applyAuthorStyles; |
/// @domName ShadowRoot.innerHTML; @docsEditable true |
- @JSName('innerHTML') |
- String innerHtml; |
+ String get innerHtml => JS("String", "#.innerHTML", this); |
+ |
+ /// @domName ShadowRoot.innerHTML; @docsEditable true |
+ void set innerHtml(String value) { |
+ JS("void", "#.innerHTML = #", this, value); |
+ } |
/// @domName ShadowRoot.resetStyleInheritance; @docsEditable true |
bool resetStyleInheritance; |
/// @domName ShadowRoot.cloneNode; @docsEditable true |
- @JSName('cloneNode') |
- Node clone(bool deep) native; |
+ Node clone(bool deep) native "cloneNode"; |
/// @domName ShadowRoot.getElementById; @docsEditable true |
- @JSName('getElementById') |
- Element $dom_getElementById(String elementId) native; |
+ Element $dom_getElementById(String elementId) native "getElementById"; |
/// @domName ShadowRoot.getElementsByClassName; @docsEditable true |
- @JSName('getElementsByClassName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByClassName(String className) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByClassName(String className) native "getElementsByClassName"; |
/// @domName ShadowRoot.getElementsByTagName; @docsEditable true |
- @JSName('getElementsByTagName') |
- @Returns('NodeList') @Creates('NodeList') |
- List<Node> $dom_getElementsByTagName(String tagName) native; |
+ @Returns('_NodeList') @Creates('_NodeList') |
+ List<Node> $dom_getElementsByTagName(String tagName) native "getElementsByTagName"; |
/// @domName ShadowRoot.getSelection; @docsEditable true |
DOMSelection getSelection() native; |
@@ -16530,19 +16145,16 @@ class SourceBufferList extends EventTarget implements JavaScriptIndexingBehavior |
// -- end List<SourceBuffer> mixins. |
/// @domName SourceBufferList.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName SourceBufferList.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName SourceBufferList.item; @docsEditable true |
SourceBuffer item(int index) native; |
/// @domName SourceBufferList.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -16755,16 +16367,13 @@ class SpeechRecognition extends EventTarget native "*SpeechRecognition" { |
void abort() native; |
/// @domName SpeechRecognition.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName SpeechRecognition.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName SpeechRecognition.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName SpeechRecognition.start; @docsEditable true |
void start() native; |
@@ -16874,8 +16483,7 @@ class SpeechRecognitionResult native "*SpeechRecognitionResult" { |
final Document emma; |
/// @domName SpeechRecognitionResult.finalValue; @docsEditable true |
- @JSName('final') |
- final bool finalValue; |
+ bool get finalValue => JS("bool", "#.final", this); |
/// @domName SpeechRecognitionResult.length; @docsEditable true |
final int length; |
@@ -16939,28 +16547,22 @@ class Storage implements Map<String, String> native "*Storage" { |
bool get isEmpty => $dom_key(0) == null; |
/// @domName Storage.length; @docsEditable true |
- @JSName('length') |
- final int $dom_length; |
+ int get $dom_length => JS("int", "#.length", this); |
/// @domName Storage.clear; @docsEditable true |
- @JSName('clear') |
- void $dom_clear() native; |
+ void $dom_clear() native "clear"; |
/// @domName Storage.getItem; @docsEditable true |
- @JSName('getItem') |
- String $dom_getItem(String key) native; |
+ String $dom_getItem(String key) native "getItem"; |
/// @domName Storage.key; @docsEditable true |
- @JSName('key') |
- String $dom_key(int index) native; |
+ String $dom_key(int index) native "key"; |
/// @domName Storage.removeItem; @docsEditable true |
- @JSName('removeItem') |
- void $dom_removeItem(String key) native; |
+ void $dom_removeItem(String key) native "removeItem"; |
/// @domName Storage.setItem; @docsEditable true |
- @JSName('setItem') |
- void $dom_setItem(String key, String data) native; |
+ void $dom_setItem(String key, String data) native "setItem"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
@@ -17289,8 +16891,7 @@ class TableElement extends Element implements Element native "*HTMLTableElement" |
return tbody; |
} |
- @JSName('createTBody') |
- Element _createTBody() native; |
+ Element _createTBody() native 'createTBody'; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -17411,7 +17012,7 @@ class TextAreaElement extends Element implements Element native "*HTMLTextAreaEl |
final FormElement form; |
/// @domName HTMLTextAreaElement.labels; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
final List<Node> labels; |
/// @domName HTMLTextAreaElement.maxLength; @docsEditable true |
@@ -17536,19 +17137,16 @@ class TextTrack extends EventTarget native "*TextTrack" { |
void addCue(TextTrackCue cue) native; |
/// @domName TextTrack.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName TextTrack.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName TextTrack.removeCue; @docsEditable true |
void removeCue(TextTrackCue cue) native; |
/// @domName TextTrack.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class TextTrackEvents extends Events { |
@@ -17607,20 +17205,16 @@ class TextTrackCue extends EventTarget native "*TextTrackCue" { |
String vertical; |
/// @domName TextTrackCue.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName TextTrackCue.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName TextTrackCue.getCueAsHTML; @docsEditable true |
- @JSName('getCueAsHTML') |
- DocumentFragment getCueAsHtml() native; |
+ DocumentFragment getCueAsHtml() native "getCueAsHTML"; |
/// @domName TextTrackCue.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class TextTrackCueEvents extends Events { |
@@ -17833,19 +17427,16 @@ class TextTrackList extends EventTarget implements JavaScriptIndexingBehavior, L |
// -- end List<TextTrack> mixins. |
/// @domName TextTrackList.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName TextTrackList.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName TextTrackList.item; @docsEditable true |
TextTrack item(int index) native; |
/// @domName TextTrackList.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
class TextTrackListEvents extends Events { |
@@ -17919,9 +17510,7 @@ class Touch native "*Touch" { |
/// @domName Touch.target; @docsEditable true |
EventTarget get target => _convertNativeToDart_EventTarget(this._target); |
- @JSName('target') |
- @Creates('EventTarget|=Object') @Returns('EventTarget|=Object') |
- final dynamic _target; |
+ dynamic get _target => JS("dynamic", "#.target", this); |
/// @domName Touch.webkitForce; @docsEditable true |
final num webkitForce; |
@@ -18085,8 +17674,12 @@ class TrackElement extends Element implements Element native "*HTMLTrackElement" |
static const int NONE = 0; |
/// @domName HTMLTrackElement.defaultValue; @docsEditable true |
- @JSName('default') |
- bool defaultValue; |
+ bool get defaultValue => JS("bool", "#.default", this); |
+ |
+ /// @domName HTMLTrackElement.defaultValue; @docsEditable true |
+ void set defaultValue(bool value) { |
+ JS("void", "#.default = #", this, value); |
+ } |
/// @domName HTMLTrackElement.kind; @docsEditable true |
String kind; |
@@ -18206,9 +17799,7 @@ class UIEvent extends Event native "*UIEvent" { |
/// @domName UIEvent.view; @docsEditable true |
Window get view => _convertNativeToDart_Window(this._view); |
- @JSName('view') |
- @Creates('LocalWindow|=Object') @Returns('LocalWindow|=Object') |
- final dynamic _view; |
+ dynamic get _view => JS("dynamic", "#.view", this); |
/// @domName UIEvent.which; @docsEditable true |
final int which; |
@@ -18337,8 +17928,7 @@ class Uint16Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
// -- end List<int> mixins. |
/// @domName Uint16Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Uint16Array.subarray; @docsEditable true |
Uint16Array subarray(int start, [int end]) native; |
@@ -18448,8 +18038,7 @@ class Uint32Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
// -- end List<int> mixins. |
/// @domName Uint32Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Uint32Array.subarray; @docsEditable true |
Uint32Array subarray(int start, [int end]) native; |
@@ -18559,8 +18148,7 @@ class Uint8Array extends ArrayBufferView implements JavaScriptIndexingBehavior, |
// -- end List<int> mixins. |
/// @domName Uint8Array.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Uint8Array.subarray; @docsEditable true |
Uint8Array subarray(int start, [int end]) native; |
@@ -18586,8 +18174,7 @@ class Uint8ClampedArray extends Uint8Array native "*Uint8ClampedArray" { |
// final int length; |
/// @domName Uint8ClampedArray.setElements; @docsEditable true |
- @JSName('set') |
- void setElements(Object array, [int offset]) native; |
+ void setElements(Object array, [int offset]) native "set"; |
/// @domName Uint8ClampedArray.subarray; @docsEditable true |
Uint8ClampedArray subarray(int start, [int end]) native; |
@@ -19825,16 +19412,11 @@ class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('texImage2D') |
- void _texImage2D_1(target, level, internalformat, width, height, int border, format, type, ArrayBufferView pixels) native; |
- @JSName('texImage2D') |
- void _texImage2D_2(target, level, internalformat, format, type, pixels) native; |
- @JSName('texImage2D') |
- void _texImage2D_3(target, level, internalformat, format, type, ImageElement image) native; |
- @JSName('texImage2D') |
- void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; |
- @JSName('texImage2D') |
- void _texImage2D_5(target, level, internalformat, format, type, VideoElement video) native; |
+ void _texImage2D_1(target, level, internalformat, width, height, int border, format, type, ArrayBufferView pixels) native "texImage2D"; |
+ void _texImage2D_2(target, level, internalformat, format, type, pixels) native "texImage2D"; |
+ void _texImage2D_3(target, level, internalformat, format, type, ImageElement image) native "texImage2D"; |
+ void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native "texImage2D"; |
+ void _texImage2D_5(target, level, internalformat, format, type, VideoElement video) native "texImage2D"; |
/// @domName WebGLRenderingContext.texParameterf; @docsEditable true |
void texParameterf(int target, int pname, num param) native; |
@@ -19875,16 +19457,11 @@ class WebGLRenderingContext extends CanvasRenderingContext native "*WebGLRenderi |
} |
throw new ArgumentError("Incorrect number or type of arguments"); |
} |
- @JSName('texSubImage2D') |
- void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int format, type, ArrayBufferView pixels) native; |
- @JSName('texSubImage2D') |
- void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) native; |
- @JSName('texSubImage2D') |
- void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElement image) native; |
- @JSName('texSubImage2D') |
- void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasElement canvas) native; |
- @JSName('texSubImage2D') |
- void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElement video) native; |
+ void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int format, type, ArrayBufferView pixels) native "texSubImage2D"; |
+ void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) native "texSubImage2D"; |
+ void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElement image) native "texSubImage2D"; |
+ void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasElement canvas) native "texSubImage2D"; |
+ void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElement video) native "texSubImage2D"; |
/// @domName WebGLRenderingContext.uniform1f; @docsEditable true |
void uniform1f(WebGLUniformLocation location, num x) native; |
@@ -20081,28 +19658,25 @@ class WebKitNamedFlow extends EventTarget native "*WebKitNamedFlow" { |
final bool overset; |
/// @domName WebKitNamedFlow.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName WebKitNamedFlow.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event event) native; |
+ bool $dom_dispatchEvent(Event event) native "dispatchEvent"; |
/// @domName WebKitNamedFlow.getContent; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
List<Node> getContent() native; |
/// @domName WebKitNamedFlow.getRegions; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
List<Node> getRegions() native; |
/// @domName WebKitNamedFlow.getRegionsByContent; @docsEditable true |
- @Returns('NodeList') @Creates('NodeList') |
+ @Returns('_NodeList') @Creates('_NodeList') |
List<Node> getRegionsByContent(Node contentNode) native; |
/// @domName WebKitNamedFlow.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -20128,8 +19702,7 @@ class WebSocket extends EventTarget native "*WebSocket" { |
static const int OPEN = 1; |
/// @domName WebSocket.URL; @docsEditable true |
- @JSName('URL') |
- final String Url; |
+ String get Url => JS("String", "#.URL", this); |
/// @domName WebSocket.binaryType; @docsEditable true |
String binaryType; |
@@ -20150,19 +19723,16 @@ class WebSocket extends EventTarget native "*WebSocket" { |
final String url; |
/// @domName WebSocket.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName WebSocket.close; @docsEditable true |
void close([int code, String reason]) native; |
/// @domName WebSocket.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName WebSocket.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName WebSocket.send; @docsEditable true |
void send(data) native; |
@@ -20293,10 +19863,8 @@ class Worker extends AbstractWorker native "*Worker" { |
_postMessage_2(message_2); |
return; |
} |
- @JSName('postMessage') |
- void _postMessage_1(message, List messagePorts) native; |
- @JSName('postMessage') |
- void _postMessage_2(message) native; |
+ void _postMessage_1(message, List messagePorts) native "postMessage"; |
+ void _postMessage_2(message) native "postMessage"; |
/// @domName Worker.terminate; @docsEditable true |
void terminate() native; |
@@ -20342,8 +19910,7 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
final NotificationCenter webkitNotifications; |
/// @domName WorkerContext.addEventListener; @docsEditable true |
- @JSName('addEventListener') |
- void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_addEventListener(String type, EventListener listener, [bool useCapture]) native "addEventListener"; |
/// @domName WorkerContext.clearInterval; @docsEditable true |
void clearInterval(int handle) native; |
@@ -20355,8 +19922,7 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
void close() native; |
/// @domName WorkerContext.dispatchEvent; @docsEditable true |
- @JSName('dispatchEvent') |
- bool $dom_dispatchEvent(Event evt) native; |
+ bool $dom_dispatchEvent(Event evt) native "dispatchEvent"; |
/// @domName WorkerContext.importScripts; @docsEditable true |
void importScripts() native; |
@@ -20368,8 +19934,7 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
DatabaseSync openDatabaseSync(String name, String version, String displayName, int estimatedSize, [DatabaseCallback creationCallback]) native; |
/// @domName WorkerContext.removeEventListener; @docsEditable true |
- @JSName('removeEventListener') |
- void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native; |
+ void $dom_removeEventListener(String type, EventListener listener, [bool useCapture]) native "removeEventListener"; |
/// @domName WorkerContext.setInterval; @docsEditable true |
int setInterval(TimeoutHandler handler, int timeout) native; |
@@ -20384,12 +19949,10 @@ class WorkerContext extends EventTarget native "*WorkerContext" { |
DOMFileSystemSync webkitRequestFileSystemSync(int type, int size) native; |
/// @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable true |
- @JSName('webkitResolveLocalFileSystemSyncURL') |
- EntrySync webkitResolveLocalFileSystemSyncUrl(String url) native; |
+ EntrySync webkitResolveLocalFileSystemSyncUrl(String url) native "webkitResolveLocalFileSystemSyncURL"; |
/// @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true |
- @JSName('webkitResolveLocalFileSystemURL') |
- void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native; |
+ void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "webkitResolveLocalFileSystemURL"; |
} |
class WorkerContextEvents extends Events { |
@@ -20531,8 +20094,7 @@ class XPathExpression native "*XPathExpression" { |
class XPathNSResolver native "*XPathNSResolver" { |
/// @domName XPathNSResolver.lookupNamespaceURI; @docsEditable true |
- @JSName('lookupNamespaceURI') |
- String lookupNamespaceUri(String prefix) native; |
+ String lookupNamespaceUri(String prefix) native "lookupNamespaceURI"; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -21728,6 +21290,105 @@ class _MutationObserverFactoryProvider { |
// BSD-style license that can be found in the LICENSE file. |
+/// @domName NodeList; @docsEditable true |
+class _NodeList implements JavaScriptIndexingBehavior, List<Node> native "*NodeList" { |
+ |
+ /// @domName NodeList.length; @docsEditable true |
+ final int length; |
+ |
+ Node operator[](int index) => JS("Node", "#[#]", 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. |
+ |
+ // From Iterable<Node>: |
+ |
+ 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); |
+ } |
+ |
+ // From Collection<Node>: |
+ |
+ void add(Node value) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
+ |
+ void addLast(Node value) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
+ |
+ void addAll(Collection<Node> collection) { |
+ throw new UnsupportedError("Cannot add to immutable List."); |
+ } |
+ |
+ bool contains(Node element) => _Collections.contains(this, element); |
+ |
+ void forEach(void f(Node element)) => _Collections.forEach(this, f); |
+ |
+ Collection map(f(Node element)) => _Collections.map(this, [], f); |
+ |
+ Collection<Node> filter(bool f(Node element)) => |
+ _Collections.filter(this, <Node>[], f); |
+ |
+ bool every(bool f(Node element)) => _Collections.every(this, f); |
+ |
+ bool some(bool f(Node element)) => _Collections.some(this, f); |
+ |
+ bool get isEmpty => this.length == 0; |
+ |
+ // From List<Node>: |
+ |
+ 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); |
+ |
+ int lastIndexOf(Node element, [int start]) { |
+ if (start == null) start = length - 1; |
+ return _Lists.lastIndexOf(this, element, start); |
+ } |
+ |
+ Node get first => this[0]; |
+ |
+ Node get last => this[length - 1]; |
+ |
+ Node removeLast() { |
+ throw new UnsupportedError("Cannot removeLast on immutable List."); |
+ } |
+ |
+ void setRange(int start, int rangeLength, List<Node> 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, [Node 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. |
+ |
+ /// @domName NodeList.item; @docsEditable true |
+ Node _item(int index) native "item"; |
+} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for 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 _NotificationFactoryProvider { |
static Notification createNotification(String title, [Map options]) => |
JS('Notification', 'new Notification(#,#)', title, options); |