OLD | NEW |
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 _Property { | 7 class _Property { |
8 _Property(this.name) : | 8 _Property(this.name) : |
9 _hasValue = false, | 9 _hasValue = false, |
10 writable = false, | 10 writable = false, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 } | 180 } |
181 | 181 |
182 static Element getAndValidateNativeType(Type type, String tagName) { | 182 static Element getAndValidateNativeType(Type type, String tagName) { |
183 var element = new Element.tag(tagName); | 183 var element = new Element.tag(tagName); |
184 if (!isTypeSubclassOf(type, element.runtimeType)) { | 184 if (!isTypeSubclassOf(type, element.runtimeType)) { |
185 return null; | 185 return null; |
186 } | 186 } |
187 return element; | 187 return element; |
188 } | 188 } |
189 | 189 |
190 static window() => wrap_jso(_blink.Blink_Utils.window()['window']); | 190 // TODO(terry): Enable below for Dartium w/ interop and remove other static wi
ndow(). |
| 191 // static window() => wrap_jso(_blink.Blink_Utils.window()['window']); |
| 192 static window() => _blink.Blink_Utils.window(); |
| 193 |
191 static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(m
essage); | 194 static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(m
essage); |
192 static void spawnDomHelper(Function f, int replyTo) => | 195 static void spawnDomHelper(Function f, int replyTo) => |
193 _blink.Blink_Utils.spawnDomHelper(f, replyTo); | 196 _blink.Blink_Utils.spawnDomHelper(f, replyTo); |
194 | 197 |
195 // TODO(vsm): Make this API compatible with spawnUri. It should also | 198 // TODO(vsm): Make this API compatible with spawnUri. It should also |
196 // return a Future<Isolate>. | 199 // return a Future<Isolate>. |
197 static spawnDomUri(String uri) => _blink.Blink_Utils.spawnDomUri(uri); | 200 static spawnDomUri(String uri) => _blink.Blink_Utils.spawnDomUri(uri); |
198 | 201 |
199 // The following methods were added for debugger integration to make working | 202 // The following methods were added for debugger integration to make working |
200 // with the Dart C mirrors API simpler. | 203 // with the Dart C mirrors API simpler. |
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1106 throw new UnimplementedError("scheduleMicrotask in background isolates " | 1109 throw new UnimplementedError("scheduleMicrotask in background isolates " |
1107 "are not supported in the browser")); | 1110 "are not supported in the browser")); |
1108 | 1111 |
1109 void _initializeCustomElement(Element e) { | 1112 void _initializeCustomElement(Element e) { |
1110 _Utils.initializeCustomElement(e); | 1113 _Utils.initializeCustomElement(e); |
1111 } | 1114 } |
1112 | 1115 |
1113 // Class for unsupported native browser 'DOM' objects. | 1116 // Class for unsupported native browser 'DOM' objects. |
1114 class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 { | 1117 class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 { |
1115 } | 1118 } |
OLD | NEW |