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

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

Issue 57393002: Version 0.8.10.2 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 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; 5 part of html;
6 6
7 class _ConsoleVariables { 7 class _ConsoleVariables {
8 Map<String, Object> _data = new Map<String, Object>(); 8 Map<String, Object> _data = new Map<String, Object>();
9 9
10 /** 10 /**
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 static Element getAndValidateNativeType(Type type, String tagName) { 118 static Element getAndValidateNativeType(Type type, String tagName) {
119 var element = new Element.tag(tagName); 119 var element = new Element.tag(tagName);
120 if (!isTypeSubclassOf(type, element.runtimeType)) { 120 if (!isTypeSubclassOf(type, element.runtimeType)) {
121 return null; 121 return null;
122 } 122 }
123 return element; 123 return element;
124 } 124 }
125 125
126 static window() native "Utils_window"; 126 static window() native "Utils_window";
127 static forwardingPrint(String message) native "Utils_forwardingPrint"; 127 static forwardingPrint(String message) native "Utils_forwardingPrint";
128 static int _getNewIsolateId() native "Utils_getNewIsolateId";
129 128
130 // The following methods were added for debugger integration to make working 129 // The following methods were added for debugger integration to make working
131 // with the Dart C mirrors API simpler. 130 // with the Dart C mirrors API simpler.
132 // TODO(jacobr): consider moving them to a separate library. 131 // TODO(jacobr): consider moving them to a separate library.
133 // If Dart supported dynamic code injection, we would only inject this code 132 // If Dart supported dynamic code injection, we would only inject this code
134 // when the debugger is invoked. 133 // when the debugger is invoked.
135 134
136 /** 135 /**
137 * Strips the private secret prefix from member names of the form 136 * Strips the private secret prefix from member names of the form
138 * someName@hash. 137 * someName@hash.
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
621 _scheduleImmediateHelper._schedule(callback); 620 _scheduleImmediateHelper._schedule(callback);
622 }; 621 };
623 622
624 get _pureIsolateScheduleImmediateClosure => ((void callback()) => 623 get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
625 throw new UnimplementedError("scheduleMicrotask in background isolates " 624 throw new UnimplementedError("scheduleMicrotask in background isolates "
626 "are not supported in the browser")); 625 "are not supported in the browser"));
627 626
628 void _initializeCustomElement(Element e) { 627 void _initializeCustomElement(Element e) {
629 _Utils.initializeCustomElement(e); 628 _Utils.initializeCustomElement(e);
630 } 629 }
OLDNEW
« no previous file with comments | « dart/tools/dom/src/Serialization.dart ('k') | dart/tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698