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

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

Issue 11361272: Adding missing 'part of html' statements. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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 part of html;
6
5 class _Utils { 7 class _Utils {
6 static List convertToList(List list) { 8 static List convertToList(List list) {
7 // FIXME: [possible optimization]: do not copy the array if Dart_IsArray is fine w/ it. 9 // FIXME: [possible optimization]: do not copy the array if Dart_IsArray is fine w/ it.
8 final length = list.length; 10 final length = list.length;
9 List result = new List(length); 11 List result = new List(length);
10 result.setRange(0, length, list); 12 result.setRange(0, length, list);
11 return result; 13 return result;
12 } 14 }
13 15
14 static List convertMapToList(Map map) { 16 static List convertMapToList(Map map) {
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 bool get isEmpty => Maps.isEmpty(this); 108 bool get isEmpty => Maps.isEmpty(this);
107 } 109 }
108 110
109 get _printClosure => (s) { 111 get _printClosure => (s) {
110 try { 112 try {
111 window.console.log(s); 113 window.console.log(s);
112 } catch (_) { 114 } catch (_) {
113 _Utils.print(s); 115 _Utils.print(s);
114 } 116 }
115 }; 117 };
OLDNEW
« no previous file with comments | « sdk/lib/html/src/dartium_MutationObserverSupported.dart ('k') | sdk/lib/html/src/native_DOMPublic.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698