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

Side by Side Diff: client/dom/src/native_DOMImplementation.dart

Issue 9618010: Add utility print method. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressing Pavel's comments Created 8 years, 9 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.copyFrom(list, 0, 0, length); 10 result.copyFrom(list, 0, 0, length);
11 return result; 11 return result;
12 } 12 }
13 13
14 static makeNotImplementedException() { 14 static makeNotImplementedException() {
15 return const NotImplementedException(); 15 return const NotImplementedException();
16 } 16 }
17 17
18 static window() native "TopLevel_Window"; 18 static window() native "Utils_window";
19 19 static print(String message) native "Utils_print";
20 static SendPort spawnDomIsolate(Window window, String entryPoint) native "Util s_spawnDomIsolate"; 20 static SendPort spawnDomIsolate(Window window, String entryPoint) native "Util s_spawnDomIsolate";
21 } 21 }
22 22
23 /* 23 /*
24 * [NPObjectBase] is native wrapper class injected from embedder's code. 24 * [NPObjectBase] is native wrapper class injected from embedder's code.
25 */ 25 */
26 class NPObject extends DOMWrapperBase { 26 class NPObject extends DOMWrapperBase {
27 static NPObject retrieve(String key) native "NPObject_retrieve"; 27 static NPObject retrieve(String key) native "NPObject_retrieve";
28 property(String propertyName) native "NPObject_property"; 28 property(String propertyName) native "NPObject_property";
29 invoke(String methodName, [ObjectArray args = null]) native "NPObject_invoke"; 29 invoke(String methodName, [ObjectArray args = null]) native "NPObject_invoke";
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 class LocationCrossFrameImplementation extends DOMWrapperBase implements Locatio n { 71 class LocationCrossFrameImplementation extends DOMWrapperBase implements Locatio n {
72 // Fields. 72 // Fields.
73 void set href(String) native "Location_href_Setter"; 73 void set href(String) native "Location_href_Setter";
74 74
75 // Implementation support. 75 // Implementation support.
76 static LocationCrossFrameImplementation _createLocationCrossFrameImplementatio n() => new LocationCrossFrameImplementation._createLocationCrossFrameImplementat ion(); 76 static LocationCrossFrameImplementation _createLocationCrossFrameImplementatio n() => new LocationCrossFrameImplementation._createLocationCrossFrameImplementat ion();
77 LocationCrossFrameImplementation._createLocationCrossFrameImplementation(); 77 LocationCrossFrameImplementation._createLocationCrossFrameImplementation();
78 78
79 String get typeName() => "Location"; 79 String get typeName() => "Location";
80 } 80 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698