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

Unified Diff: sdk/lib/_blink/dartium/_blink_dartium.dart

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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_blink/dartium/_blink_dartium.dart
diff --git a/sdk/lib/_blink/dartium/_blink_dartium.dart b/sdk/lib/_blink/dartium/_blink_dartium.dart
index bb8082720295060a9f7760450c8e06cfccb05766..a0fce4b249cd5e202bed23b9540030c09f86b051 100644
--- a/sdk/lib/_blink/dartium/_blink_dartium.dart
+++ b/sdk/lib/_blink/dartium/_blink_dartium.dart
@@ -9,6 +9,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 = {
@@ -23275,6 +23276,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 | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698