OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 part of $LIBRARYNAME; | 7 part of $LIBRARYNAME; |
8 | 8 |
9 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ | 9 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS
{ |
10 $!MEMBERS | 10 $!MEMBERS |
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
417 $this.attributeChanged(attrName, oldVal, newVal); | 417 $this.attributeChanged(attrName, oldVal, newVal); |
418 }); | 418 }); |
419 elemProto['attachedCallback'] = new js.JsFunction.withThis(($this) { | 419 elemProto['attachedCallback'] = new js.JsFunction.withThis(($this) { |
420 $this.attached(); | 420 $this.attached(); |
421 }); | 421 }); |
422 elemProto['detachedCallback'] = new js.JsFunction.withThis(($this) { | 422 elemProto['detachedCallback'] = new js.JsFunction.withThis(($this) { |
423 $this.detached(); | 423 $this.detached(); |
424 }); | 424 }); |
425 // document.registerElement('x-foo', {prototype: elemProto, extends: exten
dsTag}); | 425 // document.registerElement('x-foo', {prototype: elemProto, extends: exten
dsTag}); |
426 var jsMap = new js.JsObject.jsify({'prototype': elemProto, 'extends': exte
ndsTag}); | 426 var jsMap = new js.JsObject.jsify({'prototype': elemProto, 'extends': exte
ndsTag}); |
427 js.Jsnative.callMethod(js.JsNative.getProperty(js.context, 'document'), 'r
egisterElement', [tag, jsMap]); | 427 js.JsNative.callMethod(js.JsNative.getProperty(js.context, 'document'), 'r
egisterElement', [tag, jsMap]); |
428 } | 428 } |
429 $endif | 429 $endif |
430 } | 430 } |
431 | 431 |
432 /** *Deprecated*: use [registerElement] instead. */ | 432 /** *Deprecated*: use [registerElement] instead. */ |
433 @deprecated | 433 @deprecated |
434 @Experimental() | 434 @Experimental() |
435 void register(String tag, Type customElementClass, {String extendsTag}) { | 435 void register(String tag, Type customElementClass, {String extendsTag}) { |
436 return registerElement(tag, customElementClass, extendsTag: extendsTag); | 436 return registerElement(tag, customElementClass, extendsTag: extendsTag); |
437 } | 437 } |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
486 /// parameter must be provided. | 486 /// parameter must be provided. |
487 @Experimental() | 487 @Experimental() |
488 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { | 488 ElementUpgrader createElementUpgrader(Type type, {String extendsTag}) { |
489 $if DART2JS | 489 $if DART2JS |
490 return new _JSElementUpgrader(this, type, extendsTag); | 490 return new _JSElementUpgrader(this, type, extendsTag); |
491 $else | 491 $else |
492 return new _VMElementUpgrader(this, type, extendsTag); | 492 return new _VMElementUpgrader(this, type, extendsTag); |
493 $endif | 493 $endif |
494 } | 494 } |
495 } | 495 } |
OLD | NEW |