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

Side by Side Diff: sdk/lib/html/templates/html/impl/impl_Element.darttemplate

Issue 11415067: Add annotations on native fields and methods (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
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 part of html; 5 part of html;
6 6
7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated 7 // TODO(jacobr): use _Lists.dart to remove some of the duplicated
8 // functionality. 8 // functionality.
9 class _ChildrenElementList implements List { 9 class _ChildrenElementList implements List {
10 // Raw Element. 10 // Raw Element.
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after
610 /** 610 /**
611 * Experimental support for [web components][wc]. This field stores a 611 * Experimental support for [web components][wc]. This field stores a
612 * reference to the component implementation. It was inspired by Mozilla's 612 * reference to the component implementation. It was inspired by Mozilla's
613 * [x-tags][] project. Please note: in the future it may be possible to 613 * [x-tags][] project. Please note: in the future it may be possible to
614 * `extend Element` from your class, in which case this field will be 614 * `extend Element` from your class, in which case this field will be
615 * deprecated and will simply return this [Element] object. 615 * deprecated and will simply return this [Element] object.
616 * 616 *
617 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html 617 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html
618 * [x-tags]: http://x-tags.org/ 618 * [x-tags]: http://x-tags.org/
619 */ 619 */
620 $if DART2JS
621 @Creates('Null') // Set from Dart code; does not instantiate a native type.
ngeoffray 2012/11/20 08:50:13 Why do you need this one?
sra1 2012/11/20 09:01:42 xtag is really a Dart-only field used by the WebCo
622 $endif
620 var xtag; 623 var xtag;
621 624
622 $if DARTIUM 625 $if DARTIUM
623 noSuchMethod(InvocationMirror invocation) { 626 noSuchMethod(InvocationMirror invocation) {
624 if (dynamicUnknownElementDispatcher == null) { 627 if (dynamicUnknownElementDispatcher == null) {
625 throw new NoSuchMethodError(this, invocation.memberName, 628 throw new NoSuchMethodError(this, invocation.memberName,
626 invocation.positionalArguments, 629 invocation.positionalArguments,
627 invocation.namedArguments); 630 invocation.namedArguments);
628 } else { 631 } else {
629 String hackedName = invocation.memberName; 632 String hackedName = invocation.memberName;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 $if DART2JS 763 $if DART2JS
761 // Optimization to improve performance until the dart2js compiler inlines this 764 // Optimization to improve performance until the dart2js compiler inlines this
762 // method. 765 // method.
763 static Element createElement_tag(String tag) => 766 static Element createElement_tag(String tag) =>
764 JS('Element', 'document.createElement(#)', tag); 767 JS('Element', 'document.createElement(#)', tag);
765 $else 768 $else
766 static Element createElement_tag(String tag) => 769 static Element createElement_tag(String tag) =>
767 document.$dom_createElement(tag); 770 document.$dom_createElement(tag);
768 $endif 771 $endif
769 } 772 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698