| 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 2464e3b14703bde3b166ed9e51ad68d97f568282..a4a162b322c0e24e75604718ade851e7a2f2b31e 100644
|
| --- a/sdk/lib/html/dart2js/html_dart2js.dart
|
| +++ b/sdk/lib/html/dart2js/html_dart2js.dart
|
| @@ -395,6 +395,7 @@ class AnimationEffectTiming extends Interceptor {
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @Creates('Null')
|
| + @Returns('num|String')
|
| Object duration;
|
|
|
| @DomName('AnimationEffectTiming.easing')
|
| @@ -2453,7 +2454,7 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
|
| @DomName('CanvasRenderingContext2D.createImageDataFromImageData')
|
| @DocsEditable()
|
| ImageData createImageDataFromImageData(ImageData imagedata) =>
|
| - JS('ImageData', '#.createImageData(#, #)', this, imagedata);
|
| + JS('ImageData', '#.createImageData(#)', this, imagedata);
|
|
|
| /**
|
| * Sets the color used inside shapes.
|
| @@ -2838,71 +2839,6 @@ abstract class ChildNode extends Interceptor {
|
|
|
|
|
| @DocsEditable()
|
| -@DomName('CHROMIUMSubscribeUniform')
|
| -@Experimental() // untriaged
|
| -@Native("CHROMIUMSubscribeUniform")
|
| -class ChromiumSubscribeUniform extends Interceptor {
|
| - // To suppress missing implicit constructor warnings.
|
| - factory ChromiumSubscribeUniform._() { throw new UnsupportedError("Not supported"); }
|
| -
|
| - @DomName('CHROMIUMSubscribeUniform.MOUSE_POSITION_CHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - static const int MOUSE_POSITION_CHROMIUM = 0x924C;
|
| -
|
| - @DomName('CHROMIUMSubscribeUniform.SUBSCRIBED_VALUES_BUFFER_CHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - static const int SUBSCRIBED_VALUES_BUFFER_CHROMIUM = 0x924B;
|
| -
|
| - @JSName('bindValuebufferCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.bindValuebufferCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void bindValuebufferChromium(int target, ChromiumValuebuffer buffer) native;
|
| -
|
| - @JSName('createValuebufferCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.createValuebufferCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - ChromiumValuebuffer createValuebufferChromium() native;
|
| -
|
| - @JSName('deleteValuebufferCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.deleteValuebufferCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void deleteValuebufferChromium(ChromiumValuebuffer buffer) native;
|
| -
|
| - @JSName('isValuebufferCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.isValuebufferCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - bool isValuebufferChromium(ChromiumValuebuffer buffer) native;
|
| -
|
| - @JSName('populateSubscribedValuesCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.populateSubscribedValuesCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void populateSubscribedValuesChromium(int target) native;
|
| -
|
| - @JSName('subscribeValueCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.subscribeValueCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void subscribeValueChromium(int target, int subscriptions) native;
|
| -
|
| - @JSName('uniformValuebufferCHROMIUM')
|
| - @DomName('CHROMIUMSubscribeUniform.uniformValuebufferCHROMIUM')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - void uniformValuebufferChromium(UniformLocation location, int target, int subscription) native;
|
| -}
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| -// for details. All rights reserved. Use of this source code is governed by a
|
| -// BSD-style license that can be found in the LICENSE file.
|
| -
|
| -
|
| -@DocsEditable()
|
| @DomName('CHROMIUMValuebuffer')
|
| @Experimental() // untriaged
|
| @Native("CHROMIUMValuebuffer")
|
| @@ -4177,16 +4113,6 @@ class CssStyleDeclaration extends Interceptor with
|
| @DocsEditable()
|
| final CssRule parentRule;
|
|
|
| - @DomName('CSSStyleDeclaration.__getter__')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - @Creates('Null')
|
| - Object __getter__(String name) native;
|
| -
|
| - @DomName('CSSStyleDeclaration.__setter__')
|
| - @DocsEditable()
|
| - void __setter__(String property, String propertyValue) native;
|
| -
|
| @DomName('CSSStyleDeclaration.getPropertyPriority')
|
| @DocsEditable()
|
| String getPropertyPriority(String property) native;
|
| @@ -23498,13 +23424,15 @@ class MessageEvent extends Event {
|
| // use those conversions right now, so do this as a one-off.
|
| @DomName('MessageEvent.data')
|
| @DocsEditable()
|
| + @annotation_Creates_SerializedScriptValue
|
| + @annotation_Returns_SerializedScriptValue
|
| dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
|
|
|
| @JSName('data')
|
| @DomName('MessageEvent.data')
|
| @DocsEditable()
|
| - @annotation_Creates_SerializedScriptValue
|
| - @annotation_Returns_SerializedScriptValue
|
| + @Creates('Null')
|
| + @Returns('Object|Null')
|
| final dynamic _get_data;
|
|
|
|
|
| @@ -25828,8 +25756,6 @@ class Notification extends EventTarget {
|
| @DomName('Notification.data')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - @annotation_Creates_SerializedScriptValue
|
| - @annotation_Returns_SerializedScriptValue
|
| final Object data;
|
|
|
| @DomName('Notification.dir')
|
| @@ -26550,24 +26476,6 @@ class Performance extends EventTarget {
|
| @Experimental()
|
| void clearMeasures(String measureName) native;
|
|
|
| - @DomName('Performance.getEntries')
|
| - @DocsEditable()
|
| - // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
|
| - @Experimental()
|
| - List<PerformanceEntry> getEntries() native;
|
| -
|
| - @DomName('Performance.getEntriesByName')
|
| - @DocsEditable()
|
| - // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
|
| - @Experimental()
|
| - List<PerformanceEntry> getEntriesByName(String name, String entryType) native;
|
| -
|
| - @DomName('Performance.getEntriesByType')
|
| - @DocsEditable()
|
| - // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
|
| - @Experimental()
|
| - List<PerformanceEntry> getEntriesByType(String entryType) native;
|
| -
|
| @DomName('Performance.mark')
|
| @DocsEditable()
|
| // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#extensions-performance-interface
|
| @@ -27820,11 +27728,6 @@ class PushMessageData extends Interceptor {
|
| @Experimental() // untriaged
|
| Blob blob() native;
|
|
|
| - @DomName('PushMessageData.json')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - Object json() native;
|
| -
|
| @DomName('PushMessageData.text')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -28228,6 +28131,15 @@ class RelatedEvent extends Event {
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +// WARNING: Do not edit - generated code.
|
| +
|
| +
|
| +@DomName('RequestAnimationFrameCallback')
|
| +typedef void RequestAnimationFrameCallback(num highResTime);
|
| +// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// for details. All rights reserved. Use of this source code is governed by a
|
| +// BSD-style license that can be found in the LICENSE file.
|
| +
|
|
|
| @DocsEditable()
|
| @DomName('ResourceProgressEvent')
|
| @@ -29887,16 +29799,36 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope {
|
| @Experimental() // untriaged
|
| Stream<MessageEvent> get onMessage => messageEvent.forTarget(this);
|
| }
|
| -// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| +// Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| // BSD-style license that can be found in the LICENSE file.
|
|
|
| +// WARNING: Do not edit - generated code.
|
| +
|
|
|
| -@DocsEditable()
|
| +// TODO(alanknight): Provide a nicer constructor that uses named parameters
|
| +// rather than an initialization map.
|
| @DomName('ServiceWorkerMessageEvent')
|
| @Experimental() // untriaged
|
| @Native("ServiceWorkerMessageEvent")
|
| class ServiceWorkerMessageEvent extends Event {
|
| +
|
| + // TODO(alanknight): This really should be generated by the
|
| + // _OutputConversion in the systemnative.py script, but that doesn't
|
| + // use those conversions right now, so do this as a one-off.
|
| + @DomName('ServiceWorkerMessageEvent.data')
|
| + @DocsEditable()
|
| + @annotation_Creates_SerializedScriptValue
|
| + @annotation_Returns_SerializedScriptValue
|
| + dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
|
| +
|
| + @JSName('data')
|
| + @DomName('ServiceWorkerMessageEvent.data')
|
| + @DocsEditable()
|
| + @Creates('Null')
|
| + @Returns('Object|Null')
|
| + final dynamic _get_data;
|
| +
|
| // To suppress missing implicit constructor warnings.
|
| factory ServiceWorkerMessageEvent._() { throw new UnsupportedError("Not supported"); }
|
|
|
| @@ -29912,13 +29844,6 @@ class ServiceWorkerMessageEvent extends Event {
|
| static ServiceWorkerMessageEvent _create_1(type, eventInitDict) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#,#)', type, eventInitDict);
|
| static ServiceWorkerMessageEvent _create_2(type) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#)', type);
|
|
|
| - @DomName('ServiceWorkerMessageEvent.data')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - // TODO(jacobr): we need to actually convert to a SerializedScriptValue
|
| - @Creates('=Object')
|
| - final Object data;
|
| -
|
| @DomName('ServiceWorkerMessageEvent.lastEventId')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -29937,10 +29862,10 @@ class ServiceWorkerMessageEvent extends Event {
|
| @DomName('ServiceWorkerMessageEvent.source')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - // TODO(jacobr): this isn't quite right.
|
| @Creates('Null')
|
| - @Returns('EventTarget|=Object')
|
| + @Returns('ServiceWorker|MessagePort')
|
| final Object source;
|
| +
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
| @@ -34147,12 +34072,14 @@ class VttCue extends TextTrackCue {
|
| @DomName('VTTCue.line')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - num line;
|
| + @Returns('num|String')
|
| + Object line;
|
|
|
| @DomName('VTTCue.position')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| - num position;
|
| + @Returns('num|String')
|
| + Object position;
|
|
|
| @DomName('VTTCue.regionId')
|
| @DocsEditable()
|
| @@ -37237,21 +37164,6 @@ class WorkerPerformance extends EventTarget {
|
| @Experimental() // untriaged
|
| void clearMeasures(String measureName) native;
|
|
|
| - @DomName('WorkerPerformance.getEntries')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - List<PerformanceEntry> getEntries() native;
|
| -
|
| - @DomName('WorkerPerformance.getEntriesByName')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - List<PerformanceEntry> getEntriesByName(String name, String entryType) native;
|
| -
|
| - @DomName('WorkerPerformance.getEntriesByType')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - List<PerformanceEntry> getEntriesByType(String entryType) native;
|
| -
|
| @DomName('WorkerPerformance.mark')
|
| @DocsEditable()
|
| @Experimental() // untriaged
|
| @@ -37262,11 +37174,6 @@ class WorkerPerformance extends EventTarget {
|
| @Experimental() // untriaged
|
| void measure(String measureName, String startMark, String endMark) native;
|
|
|
| - @DomName('WorkerPerformance.now')
|
| - @DocsEditable()
|
| - @Experimental() // untriaged
|
| - double now() native;
|
| -
|
| @JSName('webkitClearResourceTimings')
|
| @DomName('WorkerPerformance.webkitClearResourceTimings')
|
| @DocsEditable()
|
|
|