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

Unified Diff: tools/dom/src/native_DOMImplementation.dart

Issue 1173403004: Changed to use JSInterop (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Re-gen'd somehow diffs stopped showing up in CL 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/src/native_DOMImplementation.dart
diff --git a/tools/dom/src/native_DOMImplementation.dart b/tools/dom/src/native_DOMImplementation.dart
index c0eee3482ca5bc5ed51c4886810fde0ae7c3cd16..a43df6998d5e2b7b405d010d6a3e7435a2633d65 100644
--- a/tools/dom/src/native_DOMImplementation.dart
+++ b/tools/dom/src/native_DOMImplementation.dart
@@ -187,7 +187,7 @@ class _Utils {
return element;
}
- static window() => _blink.Blink_Utils.window();
+ static window() => wrap_jso(_blink.Blink_Utils.window()['window']);
static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(message);
static void spawnDomHelper(Function f, int replyTo) =>
_blink.Blink_Utils.spawnDomHelper(f, replyTo);
@@ -798,16 +798,16 @@ class _Utils {
}
static void _register(Document document, String tag, Type customType,
- String extendsTagName) => _blink.Blink_Utils.register(document, tag, customType, extendsTagName);
+ String extendsTagName) => _blink.Blink_Utils.register(unwrap_jso(document), tag, customType, extendsTagName);
static Element createElement(Document document, String tagName) =>
- _blink.Blink_Utils.createElement(document, tagName);
+ wrap_jso(_blink.Blink_Utils.createElement(unwrap_jso(document), tagName));
static void initializeCustomElement(HtmlElement element) =>
- _blink.Blink_Utils.initializeCustomElement(element);
+ _blink.Blink_Utils.initializeCustomElement(unwrap_jso(element));
static Element changeElementWrapper(HtmlElement element, Type type) =>
- _blink.Blink_Utils.changeElementWrapper(element, type);
+ _blink.Blink_Utils.changeElementWrapper(unwrap_jso(element), type);
}
class _DOMWindowCrossFrame extends NativeFieldWrapperClass2 implements
« no previous file with comments | « tools/dom/scripts/systemnative.py ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698