| 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.
|
|
|