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

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

Issue 15773008: Exposing DOM float & double types as double rather than num. Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « tests/html/url_test.dart ('k') | tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index 73bf90ecc22721d37adcbe9bc7d56c959daba5fb..ff4ddc7c4cb0a4f84b5dc32dde693c1839426503 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -933,8 +933,8 @@ _idl_type_registry = monitored.Dict('generator._idl_type_registry', {
webcore_setter_name='setUnsignedIntegralAttribute'),
'long long': TypeData(clazz='Primitive', dart_type='int'),
'unsigned long long': TypeData(clazz='Primitive', dart_type='int'),
- 'float': TypeData(clazz='Primitive', dart_type='num', native_type='double'),
- 'double': TypeData(clazz='Primitive', dart_type='num'),
+ 'float': TypeData(clazz='Primitive', dart_type='double', native_type='double'),
+ 'double': TypeData(clazz='Primitive', dart_type='double'),
'any': TypeData(clazz='Primitive', dart_type='Object', native_type='ScriptValue'),
'Array': TypeData(clazz='Primitive', dart_type='List'),
« no previous file with comments | « tests/html/url_test.dart ('k') | tools/dom/templates/html/impl/impl_CanvasRenderingContext2D.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698