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

Unified Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 300923003: Modify blink type map to finalize lazily (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerate / merge Created 6 years, 6 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
Index: tools/dom/templates/html/dartium/html_dartium.darttemplate
diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate
index aef8e8b9d196d605095bf0a4f9fe693a957e7ce1..7e7453e02a457360b2f47f88ff15ef09015dcf48 100644
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate
@@ -142,18 +142,18 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
}
$if DART_USE_BLINK
// FIXME: Can we make this private?
-const htmlBlinkMap = const {
- '_HistoryCrossFrame': _HistoryCrossFrame,
- '_LocationCrossFrame': _LocationCrossFrame,
- '_DOMWindowCrossFrame': _DOMWindowCrossFrame,
+final htmlBlinkMap = {
+ '_HistoryCrossFrame': () => _HistoryCrossFrame,
+ '_LocationCrossFrame': () => _LocationCrossFrame,
+ '_DOMWindowCrossFrame': () => _DOMWindowCrossFrame,
// FIXME: Move these to better locations.
- 'DateTime': DateTime,
- 'JsObject': js.JsObject,
- 'JsFunction': js.JsFunction,
- 'JsArray': js.JsArray,
+ 'DateTime': () => DateTime,
+ 'JsObject': () => js.JsObject,
+ 'JsFunction': () => js.JsFunction,
+ 'JsArray': () => js.JsArray,
$!TYPE_MAP
// FIXME: Temporary workaround. The Blink name matches the Dart name
// post Chrome 35. We still generate the old mapping from 'Clipboard'.
- 'DataTransfer': DataTransfer,
+ 'DataTransfer': () => DataTransfer,
};
$endif

Powered by Google App Engine
This is Rietveld 408576698