| Index: dart/sdk/lib/html/dart2js/html_dart2js.dart
|
| ===================================================================
|
| --- dart/sdk/lib/html/dart2js/html_dart2js.dart (revision 37109)
|
| +++ dart/sdk/lib/html/dart2js/html_dart2js.dart (working copy)
|
| @@ -715,10 +715,6 @@
|
| class BeforeLoadEvent extends Event native "BeforeLoadEvent" {
|
| // To suppress missing implicit constructor warnings.
|
| factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('BeforeLoadEvent.url')
|
| - @DocsEditable()
|
| - final String url;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -1403,21 +1399,6 @@
|
| // To suppress missing implicit constructor warnings.
|
| factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not supported"); }
|
|
|
| - /**
|
| - * The current default path of this canvas context, if there is one.
|
| - *
|
| - * ## Other resources
|
| - *
|
| - * * [Current default path]
|
| - * (http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#current-default-path)
|
| - * from WHATWG.
|
| - */
|
| - @DomName('CanvasRenderingContext2D.currentPath')
|
| - @DocsEditable()
|
| - // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#path-objects
|
| - @Experimental()
|
| - Path currentPath;
|
| -
|
| @DomName('CanvasRenderingContext2D.currentTransform')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -1707,58 +1688,7 @@
|
| @DocsEditable()
|
| void translate(num tx, num ty) native;
|
|
|
| - @DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - @Creates('ImageData|=Object')
|
| - ImageData getImageDataHD(num sx, num sy, num sw, num sh) {
|
| - return convertNativeToDart_ImageData(_getImageDataHD_1(sx, sy, sw, sh));
|
| - }
|
| - @JSName('webkitGetImageDataHD')
|
| - @DomName('CanvasRenderingContext2D.webkitGetImageDataHD')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - @Creates('ImageData|=Object')
|
| - _getImageDataHD_1(sx, sy, sw, sh) native;
|
|
|
| - @DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY, num dirtyWidth, num dirtyHeight]) {
|
| - if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight == null) {
|
| - var imagedata_1 = convertDartToNative_ImageData(imagedata);
|
| - _putImageDataHD_1(imagedata_1, dx, dy);
|
| - return;
|
| - }
|
| - if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX != null) {
|
| - var imagedata_2 = convertDartToNative_ImageData(imagedata);
|
| - _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight);
|
| - return;
|
| - }
|
| - throw new ArgumentError("Incorrect number or type of arguments");
|
| - }
|
| - @JSName('webkitPutImageDataHD')
|
| - @DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - void _putImageDataHD_1(imagedata, dx, dy) native;
|
| - @JSName('webkitPutImageDataHD')
|
| - @DomName('CanvasRenderingContext2D.webkitPutImageDataHD')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - void _putImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeight) native;
|
| -
|
| -
|
| /**
|
| * Sets the color used inside shapes.
|
| * [r], [g], [b] are 0-255, [a] is 0-1.
|
| @@ -8015,12 +7945,6 @@
|
| // To suppress missing implicit constructor warnings.
|
| factory DomImplementation._() { throw new UnsupportedError("Not supported"); }
|
|
|
| - @JSName('createCSSStyleSheet')
|
| - @DomName('DOMImplementation.createCSSStyleSheet')
|
| - @DocsEditable()
|
| - @Experimental() // non-standard
|
| - CssStyleSheet createCssStyleSheet(String title, String media) native;
|
| -
|
| @DomName('DOMImplementation.createDocument')
|
| @DocsEditable()
|
| XmlDocument createDocument(String namespaceURI, String qualifiedName, _DocumentType doctype) native;
|
| @@ -13401,7 +13325,17 @@
|
| @DocsEditable()
|
| // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.html
|
| @Experimental()
|
| - void requestAutocomplete() native;
|
| + void requestAutocomplete(Map details) {
|
| + var details_1 = convertDartToNative_Dictionary(details);
|
| + _requestAutocomplete_1(details_1);
|
| + return;
|
| + }
|
| + @JSName('requestAutocomplete')
|
| + @DomName('HTMLFormElement.requestAutocomplete')
|
| + @DocsEditable()
|
| + // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.html
|
| + @Experimental()
|
| + void _requestAutocomplete_1(details) native;
|
|
|
| @DomName('HTMLFormElement.reset')
|
| @DocsEditable()
|
| @@ -15846,24 +15780,6 @@
|
| // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#concept-input-type-file-selected
|
| final List<Entry> entries;
|
|
|
| - @JSName('webkitGrammar')
|
| - @DomName('HTMLInputElement.webkitGrammar')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-grammar
|
| - bool grammar;
|
| -
|
| - @JSName('webkitSpeech')
|
| - @DomName('HTMLInputElement.webkitSpeech')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api-draft.html#attrib-speech
|
| - bool speech;
|
| -
|
| @JSName('webkitdirectory')
|
| @DomName('HTMLInputElement.webkitdirectory')
|
| @DocsEditable()
|
| @@ -23371,11 +23287,6 @@
|
| @DocsEditable()
|
| final Element activeElement;
|
|
|
| - @JSName('applyAuthorStyles')
|
| - @DomName('ShadowRoot.applyAuthorStyles')
|
| - @DocsEditable()
|
| - bool _applyAuthorStyles;
|
| -
|
| @DomName('ShadowRoot.host')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -23435,20 +23346,39 @@
|
| static bool get supported =>
|
| JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)');
|
|
|
| + static bool _shadowRootDeprecationReported = false;
|
| + static void _shadowRootDeprecationReport() {
|
| + if (!_shadowRootDeprecationReported) {
|
| + window.console.warn('''
|
| +ShadowRoot.resetStyleInheritance and ShadowRoot.applyAuthorStyles now deprecated in dart:html.
|
| +Please remove them from your code.
|
| +''');
|
| + _shadowRootDeprecationReported = true;
|
| + }
|
| + }
|
| +
|
| @deprecated
|
| - bool get resetStyleInheritance => this._resetStyleInheritance;
|
| + bool get resetStyleInheritance {
|
| + _shadowRootDeprecationReport();
|
| + // Default value from when it was specified.
|
| + return false;
|
| + }
|
|
|
| @deprecated
|
| void set resetStyleInheritance(bool value) {
|
| - this._resetStyleInheritance = value;
|
| + _shadowRootDeprecationReport();
|
| }
|
|
|
| @deprecated
|
| - bool get applyAuthorStyles => this._applyAuthorStyles;
|
| + bool get applyAuthorStyles {
|
| + _shadowRootDeprecationReport();
|
| + // Default value from when it was specified.
|
| + return false;
|
| + }
|
|
|
| @deprecated
|
| void set applyAuthorStyles(bool value) {
|
| - this._applyAuthorStyles = value;
|
| + _shadowRootDeprecationReport();
|
| }
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| @@ -23865,12 +23795,6 @@
|
| class SpeechInputEvent extends Event native "SpeechInputEvent" {
|
| // To suppress missing implicit constructor warnings.
|
| factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('SpeechInputEvent.results')
|
| - @DocsEditable()
|
| - @Returns('_SpeechInputResultList')
|
| - @Creates('_SpeechInputResultList')
|
| - final List<SpeechInputResult> results;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -23884,14 +23808,6 @@
|
| class SpeechInputResult extends Interceptor native "SpeechInputResult" {
|
| // To suppress missing implicit constructor warnings.
|
| factory SpeechInputResult._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('SpeechInputResult.confidence')
|
| - @DocsEditable()
|
| - final double confidence;
|
| -
|
| - @DomName('SpeechInputResult.utterance')
|
| - @DocsEditable()
|
| - final String utterance;
|
| }
|
| // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -25824,11 +25740,6 @@
|
| @Experimental() // untriaged
|
| final Player player;
|
|
|
| - @DomName('TimedItem.specified')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - final Timing specified;
|
| -
|
| @DomName('TimedItem.startTime')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -29527,13 +29438,6 @@
|
| class WorkerCrypto extends Interceptor native "WorkerCrypto" {
|
| // To suppress missing implicit constructor warnings.
|
| factory WorkerCrypto._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('WorkerCrypto.getRandomValues')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - @Creates('TypedData')
|
| - @Returns('TypedData|Null')
|
| - TypedData getRandomValues(TypedData array) native;
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -29603,15 +29507,6 @@
|
| @Experimental() // untriaged
|
| final WorkerGlobalScope self;
|
|
|
| - @JSName('webkitNotifications')
|
| - @DomName('WorkerGlobalScope.webkitNotifications')
|
| - @DocsEditable()
|
| - @SupportedBrowser(SupportedBrowser.CHROME)
|
| - @SupportedBrowser(SupportedBrowser.SAFARI)
|
| - @Experimental()
|
| - @Experimental() // untriaged
|
| - final _NotificationCenter _webkitNotifications;
|
| -
|
| @DomName('WorkerGlobalScope.close')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
|
|