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

Unified Diff: tools/dom/scripts/generate_blink_file.py

Issue 2611353002: Added VMLibraryHooks setup for Dartium to support resolvePackageUri. (Closed)
Patch Set: pull in WebKit changes required for this CL Created 3 years, 11 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/deps/dartium.deps/DEPS ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generate_blink_file.py
diff --git a/tools/dom/scripts/generate_blink_file.py b/tools/dom/scripts/generate_blink_file.py
index dee266cf28481b1a51108c1b8026060f3dec25b7..85393a52ae5bc07cf3668c803cffedf086f8bfe8 100644
--- a/tools/dom/scripts/generate_blink_file.py
+++ b/tools/dom/scripts/generate_blink_file.py
@@ -98,6 +98,7 @@ library dart.dom._blink;
import 'dart:js' as js;
import 'dart:html' show DomException;
+import 'dart:_internal' as internal;
// This is a place to put custom renames if we need them.
final resolverMap = {
};
@@ -127,6 +128,12 @@ class Blink_Utils {
static register(document, tag, customType, extendsTagName) native "Utils_register";
+ // Below code sets up VMLibraryHooks for resolvePackageUri.
+ static Uri resolvePackageUri(Uri packageUri) native "Utils_resolvePackageUri";
+ static void _setupHooks() {
+ internal.VMLibraryHooks.resolvePackageUriFuture = resolvePackageUri;
+ }
+
// Defines an interceptor if there is an appropriate JavaScript prototype to define it on.
// In any case, returns a typed JS wrapper compatibile with dart:html and the new
// typed JS Interop.
« no previous file with comments | « tools/deps/dartium.deps/DEPS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698