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

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

Issue 12207205: Revert "Remove deprecated mappedBy." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | 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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 59
60 String join([String separator]) { 60 String join([String separator]) {
61 return IterableMixinWorkaround.joinList(this, separator); 61 return IterableMixinWorkaround.joinList(this, separator);
62 } 62 }
63 63
64 Iterable map(f(Element element)) { 64 Iterable map(f(Element element)) {
65 return IterableMixinWorkaround.mapList(this, f); 65 return IterableMixinWorkaround.mapList(this, f);
66 } 66 }
67 67
68 List mappedBy(f(Element element)) {
69 return IterableMixinWorkaround.mappedByList(this, f);
70 }
71
68 Iterable<Element> where(bool f(Element element)) { 72 Iterable<Element> where(bool f(Element element)) {
69 return IterableMixinWorkaround.where(this, f); 73 return IterableMixinWorkaround.where(this, f);
70 } 74 }
71 75
72 Iterable expand(Iterable f(Element element)) { 76 Iterable expand(Iterable f(Element element)) {
73 return IterableMixinWorkaround.expand(this, f); 77 return IterableMixinWorkaround.expand(this, f);
74 } 78 }
75 79
76 bool get isEmpty { 80 bool get isEmpty {
77 return _element.$dom_firstElementChild == null; 81 return _element.$dom_firstElementChild == null;
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 283 }
280 284
281 String join([String separator]) { 285 String join([String separator]) {
282 return IterableMixinWorkaround.joinList(this, separator); 286 return IterableMixinWorkaround.joinList(this, separator);
283 } 287 }
284 288
285 Iterable map(f(Element element)) { 289 Iterable map(f(Element element)) {
286 return IterableMixinWorkaround.mapList(this, f); 290 return IterableMixinWorkaround.mapList(this, f);
287 } 291 }
288 292
293 List mappedBy(f(Element element)) {
294 return IterableMixinWorkaround.mappedByList(this, f);
295 }
296
289 Iterable<Element> where(bool f(Element element)) { 297 Iterable<Element> where(bool f(Element element)) {
290 return IterableMixinWorkaround.where(this, f); 298 return IterableMixinWorkaround.where(this, f);
291 } 299 }
292 300
293 Iterable expand(Iterable f(Element element)) { 301 Iterable expand(Iterable f(Element element)) {
294 return IterableMixinWorkaround.expand(this, f); 302 return IterableMixinWorkaround.expand(this, f);
295 } 303 }
296 304
297 bool every(bool f(Element element)) { 305 bool every(bool f(Element element)) {
298 for(Element element in this) { 306 for(Element element in this) {
(...skipping 809 matching lines...) Expand 10 before | Expand all | Expand 10 after
1108 const ScrollAlignment._internal(this._value); 1116 const ScrollAlignment._internal(this._value);
1109 toString() => 'ScrollAlignment.$_value'; 1117 toString() => 'ScrollAlignment.$_value';
1110 1118
1111 /// Attempt to align the element to the top of the scrollable area. 1119 /// Attempt to align the element to the top of the scrollable area.
1112 static const TOP = const ScrollAlignment._internal('TOP'); 1120 static const TOP = const ScrollAlignment._internal('TOP');
1113 /// Attempt to center the element in the scrollable area. 1121 /// Attempt to center the element in the scrollable area.
1114 static const CENTER = const ScrollAlignment._internal('CENTER'); 1122 static const CENTER = const ScrollAlignment._internal('CENTER');
1115 /// Attempt to align the element to the bottom of the scrollable area. 1123 /// Attempt to align the element to the bottom of the scrollable area.
1116 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1124 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1117 } 1125 }
OLDNEW
« no previous file with comments | « tools/dom/src/CssClassSet.dart ('k') | tools/dom/templates/html/impl/impl_Node.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698