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

Side by Side Diff: dart/samples/ui_lib/view/MeasureText.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/view/ConveyorView.dart ('k') | dart/samples/ui_lib/view/PagedViews.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 // TODO(jacobr): handle splitting lines on symbols such as '-' that aren't 5 // TODO(jacobr): handle splitting lines on symbols such as '-' that aren't
8 // whitespace but are valid word breaking points. 6 // whitespace but are valid word breaking points.
9 /** 7 /**
10 * Utility class to efficiently word break and measure text without requiring 8 * Utility class to efficiently word break and measure text without requiring
11 * access to the DOM. 9 * access to the DOM.
12 */ 10 */
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } else if (wordStartIndex === null && !whitespace) { 152 } else if (wordStartIndex === null && !whitespace) {
155 wordStartIndex = i; 153 wordStartIndex = i;
156 } 154 }
157 lastWhitespace = whitespace; 155 lastWhitespace = whitespace;
158 } 156 }
159 if (currentLength > 0) { 157 if (currentLength > 0) {
160 callback(startIndex, text.length, currentLength); 158 callback(startIndex, text.length, currentLength);
161 } 159 }
162 } 160 }
163 } 161 }
OLDNEW
« no previous file with comments | « dart/samples/ui_lib/view/ConveyorView.dart ('k') | dart/samples/ui_lib/view/PagedViews.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698