Change scripts to avoid generating things that bloat the compiled code

BUG=

Review URL: https://codereview.chromium.org/1759303003 .
This commit is contained in:
Alan Knight 2016-03-03 17:39:50 -08:00
parent 6219753e18
commit 4f3abbd5ef
8 changed files with 186 additions and 225 deletions

View file

@ -11822,18 +11822,6 @@ class BlinkPerformance extends BlinkEventTarget {
clearMeasures_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "clearMeasures", [__arg_0]); clearMeasures_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "clearMeasures", [__arg_0]);
getEntries_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "getEntries", []);
getEntriesByName_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByName", []);
getEntriesByName_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByName", [__arg_0]);
getEntriesByName_Callback_2_(mthis, __arg_0, __arg_1) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByName", [__arg_0, __arg_1]);
getEntriesByType_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByType", []);
getEntriesByType_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByType", [__arg_0]);
mark_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "mark", []); mark_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "mark", []);
mark_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "mark", [__arg_0]); mark_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "mark", [__arg_0]);
@ -12332,8 +12320,6 @@ class BlinkPushMessageData {
blob_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "blob", []); blob_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "blob", []);
json_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "json", []);
text_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "text", []); text_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "text", []);
} }
@ -22959,18 +22945,6 @@ class BlinkWorkerPerformance extends BlinkEventTarget {
clearMeasures_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "clearMeasures", [__arg_0]); clearMeasures_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "clearMeasures", [__arg_0]);
getEntries_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "getEntries", []);
getEntriesByName_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByName", []);
getEntriesByName_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByName", [__arg_0]);
getEntriesByName_Callback_2_(mthis, __arg_0, __arg_1) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByName", [__arg_0, __arg_1]);
getEntriesByType_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByType", []);
getEntriesByType_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "getEntriesByType", [__arg_0]);
mark_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "mark", []); mark_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "mark", []);
mark_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "mark", [__arg_0]); mark_Callback_1_(mthis, __arg_0) => Blink_JsNative_DomException.callMethod(mthis, "mark", [__arg_0]);
@ -22981,8 +22955,6 @@ class BlinkWorkerPerformance extends BlinkEventTarget {
measure_Callback_3_(mthis, __arg_0, __arg_1, __arg_2) => Blink_JsNative_DomException.callMethod(mthis, "measure", [__arg_0, __arg_1, __arg_2]); measure_Callback_3_(mthis, __arg_0, __arg_1, __arg_2) => Blink_JsNative_DomException.callMethod(mthis, "measure", [__arg_0, __arg_1, __arg_2]);
now_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "now", []);
webkitClearResourceTimings_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "webkitClearResourceTimings", []); webkitClearResourceTimings_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "webkitClearResourceTimings", []);
webkitSetResourceTimingBufferSize_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "webkitSetResourceTimingBufferSize", []); webkitSetResourceTimingBufferSize_Callback_0_(mthis) => Blink_JsNative_DomException.callMethod(mthis, "webkitSetResourceTimingBufferSize", []);

View file

@ -395,6 +395,7 @@ class AnimationEffectTiming extends Interceptor {
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@Creates('Null') @Creates('Null')
@Returns('num|String')
Object duration; Object duration;
@DomName('AnimationEffectTiming.easing') @DomName('AnimationEffectTiming.easing')
@ -2453,7 +2454,7 @@ class CanvasRenderingContext2D extends Interceptor implements CanvasRenderingCon
@DomName('CanvasRenderingContext2D.createImageDataFromImageData') @DomName('CanvasRenderingContext2D.createImageDataFromImageData')
@DocsEditable() @DocsEditable()
ImageData createImageDataFromImageData(ImageData imagedata) => ImageData createImageDataFromImageData(ImageData imagedata) =>
JS('ImageData', '#.createImageData(#, #)', this, imagedata); JS('ImageData', '#.createImageData(#)', this, imagedata);
/** /**
* Sets the color used inside shapes. * Sets the color used inside shapes.
@ -2837,71 +2838,6 @@ abstract class ChildNode extends Interceptor {
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
@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() @DocsEditable()
@DomName('CHROMIUMValuebuffer') @DomName('CHROMIUMValuebuffer')
@Experimental() // untriaged @Experimental() // untriaged
@ -4177,16 +4113,6 @@ class CssStyleDeclaration extends Interceptor with
@DocsEditable() @DocsEditable()
final CssRule parentRule; 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') @DomName('CSSStyleDeclaration.getPropertyPriority')
@DocsEditable() @DocsEditable()
String getPropertyPriority(String property) native; String getPropertyPriority(String property) native;
@ -25828,8 +25754,6 @@ class Notification extends EventTarget {
@DomName('Notification.data') @DomName('Notification.data')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@annotation_Creates_SerializedScriptValue
@annotation_Returns_SerializedScriptValue
final Object data; final Object data;
@DomName('Notification.dir') @DomName('Notification.dir')
@ -26550,24 +26474,6 @@ class Performance extends EventTarget {
@Experimental() @Experimental()
void clearMeasures(String measureName) native; 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') @DomName('Performance.mark')
@DocsEditable() @DocsEditable()
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#extensions-performance-interface // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#extensions-performance-interface
@ -27820,11 +27726,6 @@ class PushMessageData extends Interceptor {
@Experimental() // untriaged @Experimental() // untriaged
Blob blob() native; Blob blob() native;
@DomName('PushMessageData.json')
@DocsEditable()
@Experimental() // untriaged
Object json() native;
@DomName('PushMessageData.text') @DomName('PushMessageData.text')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@ -28228,6 +28129,15 @@ class RelatedEvent extends Event {
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // 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() @DocsEditable()
@DomName('ResourceProgressEvent') @DomName('ResourceProgressEvent')
@ -29887,16 +29797,34 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope {
@Experimental() // untriaged @Experimental() // untriaged
Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 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 // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // 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') @DomName('ServiceWorkerMessageEvent')
@Experimental() // untriaged @Experimental() // untriaged
@Native("ServiceWorkerMessageEvent") @Native("ServiceWorkerMessageEvent")
class ServiceWorkerMessageEvent extends Event { 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()
dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
@JSName('data')
@DomName('ServiceWorkerMessageEvent.data')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
@annotation_Returns_SerializedScriptValue
final dynamic _get_data;
// To suppress missing implicit constructor warnings. // To suppress missing implicit constructor warnings.
factory ServiceWorkerMessageEvent._() { throw new UnsupportedError("Not supported"); } factory ServiceWorkerMessageEvent._() { throw new UnsupportedError("Not supported"); }
@ -29912,13 +29840,6 @@ class ServiceWorkerMessageEvent extends Event {
static ServiceWorkerMessageEvent _create_1(type, eventInitDict) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#,#)', type, eventInitDict); static ServiceWorkerMessageEvent _create_1(type, eventInitDict) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#,#)', type, eventInitDict);
static ServiceWorkerMessageEvent _create_2(type) => JS('ServiceWorkerMessageEvent', 'new ServiceWorkerMessageEvent(#)', type); 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') @DomName('ServiceWorkerMessageEvent.lastEventId')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@ -29937,10 +29858,10 @@ class ServiceWorkerMessageEvent extends Event {
@DomName('ServiceWorkerMessageEvent.source') @DomName('ServiceWorkerMessageEvent.source')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
// TODO(jacobr): this isn't quite right.
@Creates('Null') @Creates('Null')
@Returns('EventTarget|=Object') @Returns('ServiceWorker|MessagePort')
final Object source; final Object source;
} }
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a // for details. All rights reserved. Use of this source code is governed by a
@ -34147,12 +34068,14 @@ class VttCue extends TextTrackCue {
@DomName('VTTCue.line') @DomName('VTTCue.line')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
num line; @Returns('num|String')
Object line;
@DomName('VTTCue.position') @DomName('VTTCue.position')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
num position; @Returns('num|String')
Object position;
@DomName('VTTCue.regionId') @DomName('VTTCue.regionId')
@DocsEditable() @DocsEditable()
@ -37237,21 +37160,6 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged @Experimental() // untriaged
void clearMeasures(String measureName) native; 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') @DomName('WorkerPerformance.mark')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@ -37262,11 +37170,6 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged @Experimental() // untriaged
void measure(String measureName, String startMark, String endMark) native; void measure(String measureName, String startMark, String endMark) native;
@DomName('WorkerPerformance.now')
@DocsEditable()
@Experimental() // untriaged
double now() native;
@JSName('webkitClearResourceTimings') @JSName('webkitClearResourceTimings')
@DomName('WorkerPerformance.webkitClearResourceTimings') @DomName('WorkerPerformance.webkitClearResourceTimings')
@DocsEditable() @DocsEditable()

View file

@ -6594,20 +6594,11 @@ class CssStyleDeclaration extends DartHtmlDomObject with
@DocsEditable() @DocsEditable()
CssRule get parentRule => wrap_jso(_blink.BlinkCSSStyleDeclaration.instance.parentRule_Getter_(unwrap_jso(this))); CssRule get parentRule => wrap_jso(_blink.BlinkCSSStyleDeclaration.instance.parentRule_Getter_(unwrap_jso(this)));
@DomName('CSSStyleDeclaration.__getter__')
@DocsEditable()
@Experimental() // untriaged
Object __getter__(String name) => wrap_jso(_blink.BlinkCSSStyleDeclaration.instance.$__getter___Callback_1_(unwrap_jso(this), name));
@DomName('CSSStyleDeclaration.__propertyQuery__') @DomName('CSSStyleDeclaration.__propertyQuery__')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
bool __propertyQuery__(String name) => _blink.BlinkCSSStyleDeclaration.instance.$__propertyQuery___Callback_1_(unwrap_jso(this), name); bool __propertyQuery__(String name) => _blink.BlinkCSSStyleDeclaration.instance.$__propertyQuery___Callback_1_(unwrap_jso(this), name);
@DomName('CSSStyleDeclaration.__setter__')
@DocsEditable()
void __setter__(String property, String propertyValue) => _blink.BlinkCSSStyleDeclaration.instance.$__setter___Callback_2_(unwrap_jso(this), property, propertyValue);
@DomName('CSSStyleDeclaration.getPropertyPriority') @DomName('CSSStyleDeclaration.getPropertyPriority')
@DocsEditable() @DocsEditable()
String getPropertyPriority(String property) => _blink.BlinkCSSStyleDeclaration.instance.getPropertyPriority_Callback_1_(unwrap_jso(this), property); String getPropertyPriority(String property) => _blink.BlinkCSSStyleDeclaration.instance.getPropertyPriority_Callback_1_(unwrap_jso(this), property);
@ -31354,24 +31345,6 @@ class Performance extends EventTarget {
@Experimental() @Experimental()
void clearMeasures(String measureName) => _blink.BlinkPerformance.instance.clearMeasures_Callback_1_(unwrap_jso(this), measureName); void clearMeasures(String measureName) => _blink.BlinkPerformance.instance.clearMeasures_Callback_1_(unwrap_jso(this), measureName);
@DomName('Performance.getEntries')
@DocsEditable()
// http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
@Experimental()
List<PerformanceEntry> getEntries() => wrap_jso(_blink.BlinkPerformance.instance.getEntries_Callback_0_(unwrap_jso(this)));
@DomName('Performance.getEntriesByName')
@DocsEditable()
// http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
@Experimental()
List<PerformanceEntry> getEntriesByName(String name, String entryType) => wrap_jso(_blink.BlinkPerformance.instance.getEntriesByName_Callback_2_(unwrap_jso(this), name, entryType));
@DomName('Performance.getEntriesByType')
@DocsEditable()
// http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute
@Experimental()
List<PerformanceEntry> getEntriesByType(String entryType) => wrap_jso(_blink.BlinkPerformance.instance.getEntriesByType_Callback_1_(unwrap_jso(this), entryType));
@DomName('Performance.mark') @DomName('Performance.mark')
@DocsEditable() @DocsEditable()
// https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#extensions-performance-interface // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#extensions-performance-interface
@ -33093,11 +33066,6 @@ class PushMessageData extends DartHtmlDomObject {
@Experimental() // untriaged @Experimental() // untriaged
Blob blob() => wrap_jso(_blink.BlinkPushMessageData.instance.blob_Callback_0_(unwrap_jso(this))); Blob blob() => wrap_jso(_blink.BlinkPushMessageData.instance.blob_Callback_0_(unwrap_jso(this)));
@DomName('PushMessageData.json')
@DocsEditable()
@Experimental() // untriaged
Object json() => wrap_jso(_blink.BlinkPushMessageData.instance.json_Callback_0_(unwrap_jso(this)));
@DomName('PushMessageData.text') @DomName('PushMessageData.text')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@ -35611,17 +35579,27 @@ class ServiceWorkerGlobalScope extends WorkerGlobalScope {
Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); 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 // for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code. // WARNING: Do not edit - generated code.
@DocsEditable() // TODO(alanknight): Provide a nicer constructor that uses named parameters
// rather than an initialization map.
@DomName('ServiceWorkerMessageEvent') @DomName('ServiceWorkerMessageEvent')
@Experimental() // untriaged @Experimental() // untriaged
class ServiceWorkerMessageEvent extends Event { 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()
dynamic get data => convertNativeToDart_SerializedScriptValue(
_blink.BlinkMessageEvent.instance.data_Getter_(unwrap_jso(this)));
// To suppress missing implicit constructor warnings. // To suppress missing implicit constructor warnings.
factory ServiceWorkerMessageEvent._() { throw new UnsupportedError("Not supported"); } factory ServiceWorkerMessageEvent._() { throw new UnsupportedError("Not supported"); }
@ -35647,11 +35625,6 @@ class ServiceWorkerMessageEvent extends Event {
ServiceWorkerMessageEvent.internal_() : super.internal_(); ServiceWorkerMessageEvent.internal_() : super.internal_();
@DomName('ServiceWorkerMessageEvent.data')
@DocsEditable()
@Experimental() // untriaged
Object get data => wrap_jso(_blink.BlinkServiceWorkerMessageEvent.instance.data_Getter_(unwrap_jso(this)));
@DomName('ServiceWorkerMessageEvent.lastEventId') @DomName('ServiceWorkerMessageEvent.lastEventId')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@ -40357,10 +40330,10 @@ class Url extends DartHtmlDomObject implements UrlUtils {
if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) { if ((blob_OR_source_OR_stream is Blob || blob_OR_source_OR_stream == null)) {
return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream)); return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream));
} }
if ((blob_OR_source_OR_stream is MediaStream)) { if ((blob_OR_source_OR_stream is MediaSource)) {
return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream)); return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream));
} }
if ((blob_OR_source_OR_stream is MediaSource)) { if ((blob_OR_source_OR_stream is MediaStream)) {
return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream)); return _blink.BlinkURL.instance.createObjectURL_Callback_1_(unwrap_jso(blob_OR_source_OR_stream));
} }
throw new ArgumentError("Incorrect number or type of arguments"); throw new ArgumentError("Incorrect number or type of arguments");
@ -44059,21 +44032,6 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged @Experimental() // untriaged
void clearMeasures(String measureName) => _blink.BlinkWorkerPerformance.instance.clearMeasures_Callback_1_(unwrap_jso(this), measureName); void clearMeasures(String measureName) => _blink.BlinkWorkerPerformance.instance.clearMeasures_Callback_1_(unwrap_jso(this), measureName);
@DomName('WorkerPerformance.getEntries')
@DocsEditable()
@Experimental() // untriaged
List<PerformanceEntry> getEntries() => wrap_jso(_blink.BlinkWorkerPerformance.instance.getEntries_Callback_0_(unwrap_jso(this)));
@DomName('WorkerPerformance.getEntriesByName')
@DocsEditable()
@Experimental() // untriaged
List<PerformanceEntry> getEntriesByName(String name, String entryType) => wrap_jso(_blink.BlinkWorkerPerformance.instance.getEntriesByName_Callback_2_(unwrap_jso(this), name, entryType));
@DomName('WorkerPerformance.getEntriesByType')
@DocsEditable()
@Experimental() // untriaged
List<PerformanceEntry> getEntriesByType(String entryType) => wrap_jso(_blink.BlinkWorkerPerformance.instance.getEntriesByType_Callback_1_(unwrap_jso(this), entryType));
@DomName('WorkerPerformance.mark') @DomName('WorkerPerformance.mark')
@DocsEditable() @DocsEditable()
@Experimental() // untriaged @Experimental() // untriaged
@ -44084,11 +44042,6 @@ class WorkerPerformance extends EventTarget {
@Experimental() // untriaged @Experimental() // untriaged
void measure(String measureName, String startMark, String endMark) => _blink.BlinkWorkerPerformance.instance.measure_Callback_3_(unwrap_jso(this), measureName, startMark, endMark); void measure(String measureName, String startMark, String endMark) => _blink.BlinkWorkerPerformance.instance.measure_Callback_3_(unwrap_jso(this), measureName, startMark, endMark);
@DomName('WorkerPerformance.now')
@DocsEditable()
@Experimental() // untriaged
num now() => _blink.BlinkWorkerPerformance.instance.now_Callback_0_(unwrap_jso(this));
@DomName('WorkerPerformance.webkitClearResourceTimings') @DomName('WorkerPerformance.webkitClearResourceTimings')
@DocsEditable() @DocsEditable()
@SupportedBrowser(SupportedBrowser.CHROME) @SupportedBrowser(SupportedBrowser.CHROME)

View file

@ -400,6 +400,71 @@ class Buffer extends Interceptor {
// BSD-style license that can be found in the LICENSE file. // BSD-style license that can be found in the LICENSE file.
@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() @DocsEditable()
@DomName('WebGLCompressedTextureATC') @DomName('WebGLCompressedTextureATC')
// http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc/ // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc/

View file

@ -29,6 +29,11 @@ _logger = logging.getLogger('dartmetadata')
_dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', { _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', {
'AnimationEffectTiming.duration': [
"@Creates('Null')",
"@Returns('num|String')",
],
'ArrayBufferView': [ 'ArrayBufferView': [
"@Creates('TypedData')", "@Creates('TypedData')",
"@Returns('TypedData|Null')", "@Returns('TypedData|Null')",
@ -56,6 +61,10 @@ _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', {
"@Returns('String|CanvasGradient|CanvasPattern')", "@Returns('String|CanvasGradient|CanvasPattern')",
], ],
'CryptoKey.algorithm': [
"@Creates('Null')",
],
'CustomEvent._detail': [ 'CustomEvent._detail': [
"@Creates('Null')", "@Creates('Null')",
], ],
@ -290,6 +299,16 @@ _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', {
"@annotation_Returns_SerializedScriptValue", "@annotation_Returns_SerializedScriptValue",
], ],
'ServiceWorkerMessageEvent.data': [
"@annotation_Creates_SerializedScriptValue",
"@annotation_Returns_SerializedScriptValue",
],
'ServiceWorkerMessageEvent.source': [
"@Creates('Null')",
"@Returns('ServiceWorker|MessagePort')",
],
'ShadowRoot.getElementsByClassName': [ 'ShadowRoot.getElementsByClassName': [
"@Creates('NodeList|HtmlCollection')", "@Creates('NodeList|HtmlCollection')",
"@Returns('NodeList|HtmlCollection')", "@Returns('NodeList|HtmlCollection')",
@ -317,6 +336,14 @@ _dart2js_annotations = monitored.Dict('dartmetadata._dart2js_annotations', {
"@Creates('Null')", "@Creates('Null')",
], ],
'VTTCue.line': [
"@Returns('num|String')",
],
'VTTCue.position': [
"@Returns('num|String')",
],
'WebGLRenderingContext.getBufferParameter': [ 'WebGLRenderingContext.getBufferParameter': [
"@Creates('int|Null')", "@Creates('int|Null')",
"@Returns('int|Null')", "@Returns('int|Null')",

View file

@ -563,6 +563,8 @@ removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [
'CanvasRenderingContext2D.webkitImageSmoothingEnabled', 'CanvasRenderingContext2D.webkitImageSmoothingEnabled',
'CharacterData.remove', 'CharacterData.remove',
'ChildNode.replaceWith', 'ChildNode.replaceWith',
'CSSStyleDeclaration.__getter__',
'CSSStyleDeclaration.__setter__',
'Window.call:blur', 'Window.call:blur',
'Window.call:focus', 'Window.call:focus',
'Window.clientInformation', 'Window.clientInformation',
@ -828,6 +830,7 @@ removed_html_members = monitored.Set('htmlrenamer.removed_html_members', [
'NodeList.item', 'NodeList.item',
'ParentNode.append', 'ParentNode.append',
'ParentNode.prepend', 'ParentNode.prepend',
'ServiceWorkerMessageEvent.data',
'ShadowRoot.getElementsByTagNameNS', 'ShadowRoot.getElementsByTagNameNS',
'SVGElement.getPresentationAttribute', 'SVGElement.getPresentationAttribute',
'SVGElementInstance.on:wheel', 'SVGElementInstance.on:wheel',

View file

@ -48,8 +48,8 @@ $else
@JSName('data') @JSName('data')
@DomName('MessageEvent.data') @DomName('MessageEvent.data')
@DocsEditable() @DocsEditable()
@Creates('Null') @annotation_Creates_SerializedScriptValue
@Returns('Object|Null') @annotation_Returns_SerializedScriptValue
final dynamic _get_data; final dynamic _get_data;
$endif $endif

View file

@ -0,0 +1,38 @@
// 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.
part of $LIBRARYNAME;
// TODO(alanknight): Provide a nicer constructor that uses named parameters
// rather than an initialization map.
$(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
$if DARTIUM
// 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()
dynamic get data => convertNativeToDart_SerializedScriptValue(
_blink.BlinkMessageEvent.instance.data_Getter_(unwrap_jso(this)));
$else
// 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()
dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data);
@JSName('data')
@DomName('ServiceWorkerMessageEvent.data')
@DocsEditable()
@annotation_Creates_SerializedScriptValue
@annotation_Returns_SerializedScriptValue
final dynamic _get_data;
$endif
$!MEMBERS
}