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

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

Issue 1237263005: Revert "- Update _blink library using dart:js instead of native keyword" (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 5 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
« no previous file with comments | « tools/dom/scripts/go.sh ('k') | 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 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
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 // TODO(terry): Above enabled for Dartium w/ interop and remove below static w indow() for C++. 191 // static window() => wrap_jso(_blink.Blink_Utils.window()['window']);
192 // static window() => _blink.Blink_Utils.window(); 192 static window() => _blink.Blink_Utils.window();
193 193
194 static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(m essage); 194 static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(m essage);
195 static void spawnDomHelper(Function f, int replyTo) => 195 static void spawnDomHelper(Function f, int replyTo) =>
196 _blink.Blink_Utils.spawnDomHelper(f, replyTo); 196 _blink.Blink_Utils.spawnDomHelper(f, replyTo);
197 197
198 // TODO(vsm): Make this API compatible with spawnUri. It should also 198 // TODO(vsm): Make this API compatible with spawnUri. It should also
199 // return a Future<Isolate>. 199 // return a Future<Isolate>.
200 static spawnDomUri(String uri) => _blink.Blink_Utils.spawnDomUri(uri); 200 static spawnDomUri(String uri) => _blink.Blink_Utils.spawnDomUri(uri);
201 201
202 // The following methods were added for debugger integration to make working 202 // The following methods were added for debugger integration to make working
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 throw new UnimplementedError("scheduleMicrotask in background isolates " 1109 throw new UnimplementedError("scheduleMicrotask in background isolates "
1110 "are not supported in the browser")); 1110 "are not supported in the browser"));
1111 1111
1112 void _initializeCustomElement(Element e) { 1112 void _initializeCustomElement(Element e) {
1113 _Utils.initializeCustomElement(e); 1113 _Utils.initializeCustomElement(e);
1114 } 1114 }
1115 1115
1116 // Class for unsupported native browser 'DOM' objects. 1116 // Class for unsupported native browser 'DOM' objects.
1117 class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 { 1117 class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 {
1118 } 1118 }
OLDNEW
« no previous file with comments | « tools/dom/scripts/go.sh ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698