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

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

Issue 1349493003: Dartium JS Interop enabled. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/src/dartium_WrappedEvent.dart ('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 34c032bb7377e674228c7e78276c1cbdbc2f9816..9f74d3e1c7471e613522f960fd8c54004f0d37d2 100644
--- a/tools/dom/src/native_DOMImplementation.dart
+++ b/tools/dom/src/native_DOMImplementation.dart
@@ -187,9 +187,7 @@ class _Utils {
return element;
}
- // TODO(terry): Enable below for Dartium w/ interop and remove other static window().
- // static window() => wrap_jso(_blink.Blink_Utils.window()['window']);
- static window() => _blink.Blink_Utils.window();
+ static window() => wrap_jso(js.context['window']);
static forwardingPrint(String message) => _blink.Blink_Utils.forwardingPrint(message);
static void spawnDomHelper(Function f, int replyTo) =>
@@ -806,15 +804,19 @@ class _Utils {
static Element createElement(Document document, String tagName) =>
wrap_jso(_blink.Blink_Utils.createElement(unwrap_jso(document), tagName));
- static void initializeCustomElement(HtmlElement element) =>
- _blink.Blink_Utils.initializeCustomElement(unwrap_jso(element));
-
static Element changeElementWrapper(HtmlElement element, Type type) =>
_blink.Blink_Utils.changeElementWrapper(unwrap_jso(element), type);
}
class _DOMWindowCrossFrame extends NativeFieldWrapperClass2 implements
WindowBase {
+ /** Needed because KeyboardEvent is implements.
+ * TODO(terry): Consider making blink_jsObject private (add underscore) for
+ * all blink_jsObject. Then needed private wrap/unwrap_jso
+ * functions that delegate to a public wrap/unwrap_jso.
+ */
+ js.JsObject blink_jsObject;
+
_DOMWindowCrossFrame.internal();
// Fields.
@@ -873,7 +875,7 @@ class _LocationCrossFrame extends NativeFieldWrapperClass2 implements LocationBa
_LocationCrossFrame.internal();
// Fields.
- void set href(String h) => _blink.Blink_LocationCrossFrame.set_href(this, h);
+ set href(String h) => _blink.Blink_LocationCrossFrame.set_href(this, h);
// Implementation support.
String get typeName => "Location";
@@ -1109,10 +1111,6 @@ get _pureIsolateScheduleImmediateClosure => ((void callback()) =>
throw new UnimplementedError("scheduleMicrotask in background isolates "
"are not supported in the browser"));
-void _initializeCustomElement(Element e) {
- _Utils.initializeCustomElement(e);
-}
-
// Class for unsupported native browser 'DOM' objects.
class _UnsupportedBrowserObject extends NativeFieldWrapperClass2 {
}
« no previous file with comments | « tools/dom/src/dartium_WrappedEvent.dart ('k') | tools/dom/templates/html/dartium/html_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698