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

Side by Side Diff: dart/samples/ui_lib/layout/ViewLayout.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/layout/SizingFunctions.dart ('k') | dart/samples/ui_lib/layout/layout.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 layout;
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 /** The interface that the layout algorithms use to talk to the view. */ 5 /** The interface that the layout algorithms use to talk to the view. */
8 abstract class Positionable { 6 abstract class Positionable {
9 ViewLayout get layout; 7 ViewLayout get layout;
10 8
11 /** Gets our custom CSS properties, as provided by the CSS preprocessor. */ 9 /** Gets our custom CSS properties, as provided by the CSS preprocessor. */
12 Map<String, String> get customStyle; 10 Map<String, String> get customStyle;
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 // For an unset max-content size, use the actual size 223 // For an unset max-content size, use the actual size
226 return size; 224 return size;
227 } 225 }
228 if (style.endsWith('%')) { 226 if (style.endsWith('%')) {
229 num percent = double.parse(style.substring(0, style.length - 1)); 227 num percent = double.parse(style.substring(0, style.length - 1));
230 return ((percent / 100) * parentSize).toInt(); 228 return ((percent / 100) * parentSize).toInt();
231 } 229 }
232 return _toPixels(style); 230 return _toPixels(style);
233 } 231 }
234 } 232 }
OLDNEW
« no previous file with comments | « dart/samples/ui_lib/layout/SizingFunctions.dart ('k') | dart/samples/ui_lib/layout/layout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698