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

Side by Side Diff: dart/samples/ui_lib/view/CompositeView.dart

Issue 11233061: Revert "Parts must start with 'part of'" and "Attempt to fix VM build" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « dart/samples/ui_lib/util/utilslib.dart ('k') | dart/samples/ui_lib/view/ConveyorView.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 part of view;
2
3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // 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
5 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
6 4
7 /** 5 /**
8 * A View that is composed of child views. 6 * A View that is composed of child views.
9 */ 7 */
10 class CompositeView extends View { 8 class CompositeView extends View {
11 9
12 List<View> childViews; 10 List<View> childViews;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 } 78 }
81 79
82 void removeChild(View view) { 80 void removeChild(View view) {
83 childViews = childViews.filter(bool _(e) { return view != e; }); 81 childViews = childViews.filter(bool _(e) { return view != e; });
84 // TODO(rnystrom): Container shouldn't be null. Remove this check. 82 // TODO(rnystrom): Container shouldn't be null. Remove this check.
85 if (container !== null) { 83 if (container !== null) {
86 view.node.remove(); 84 view.node.remove();
87 } 85 }
88 } 86 }
89 } 87 }
OLDNEW
« no previous file with comments | « dart/samples/ui_lib/util/utilslib.dart ('k') | dart/samples/ui_lib/view/ConveyorView.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698