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

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

Issue 605853003: Stop suppressing generation of bindings with Promise. (Closed) Base URL: https://dart.googlecode.com/svn/branches/dartium_integration/dart
Patch Set: Created 6 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
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 5411edba7169e8e1fc1934c5f33441483a0ee281..8ce85d05b89d6475265a7054040369ea4a8035e4 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -1154,6 +1154,7 @@ _idl_type_registry = monitored.Dict('generator._idl_type_registry', {
'ClientRect': TypeData(clazz='Interface',
dart_type='Rectangle', suppress_interface=True),
'Date': TypeData(clazz='Primitive', dart_type='DateTime', native_type='double'),
+ 'Promise': TypeData(clazz='Primitive', dart_type='Future', native_type='ScriptPromise'),
'DOMObject': TypeData(clazz='Primitive', dart_type='Object', native_type='ScriptValue'),
'DOMString': TypeData(clazz='Primitive', dart_type='String', native_type='String'),
# TODO(vsm): This won't actually work until we convert the Map to

Powered by Google App Engine
This is Rietveld 408576698