Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: tools/dom/templates/html/impl/impl_HTMLDocument.darttemplate

Issue 1390113003: Fix some build breaks. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: TBR Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/dom/templates/html/dartium/html_dartium.darttemplate ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/dartium/html_dartium.darttemplate ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698