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

Side by Side Diff: lib/html/src/native_DOMImplementation.dart

Issue 10913125: Remove lib/dom directory! (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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
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 class _Utils { 5 class _Utils {
6 static List convertToList(List list) { 6 static List convertToList(List list) {
7 // FIXME: [possible optimization]: do not copy the array if Dart_IsArray is fine w/ it. 7 // FIXME: [possible optimization]: do not copy the array if Dart_IsArray is fine w/ it.
8 final length = list.length; 8 final length = list.length;
9 List result = new List(length); 9 List result = new List(length);
10 result.setRange(0, length, list); 10 result.setRange(0, length, list);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 bool isEmpty() => Maps.isEmpty(this); 105 bool isEmpty() => Maps.isEmpty(this);
106 } 106 }
107 107
108 get _printClosure => (s) { 108 get _printClosure => (s) {
109 try { 109 try {
110 window.console.log(s); 110 window.console.log(s);
111 } on Dynamic catch(_) { 111 } on Dynamic catch(_) {
112 _Utils.print(s); 112 _Utils.print(s);
113 } 113 }
114 }; 114 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698