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

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

Issue 25808002: Move Rectangle and Point into dart:math. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 ef81ebd8d872d06b7b127e9c5a673ec37e4eab37..8243241e99f60e6f0cdf47fba2b60b973c6ec8de 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -1064,7 +1064,7 @@ _idl_type_registry = monitored.Dict('generator._idl_type_registry', {
'Array': TypeData(clazz='Primitive', dart_type='List'),
'custom': TypeData(clazz='Primitive', dart_type='dynamic'),
'ClientRect': TypeData(clazz='Interface',
- dart_type='Rect', suppress_interface=True),
+ dart_type='Rectangle', suppress_interface=True),
'Date': TypeData(clazz='Primitive', dart_type='DateTime', native_type='double'),
'DOMObject': TypeData(clazz='Primitive', dart_type='Object', native_type='ScriptValue'),
'DOMString': TypeData(clazz='Primitive', dart_type='String', native_type='String'),
@@ -1099,7 +1099,8 @@ _idl_type_registry = monitored.Dict('generator._idl_type_registry', {
'SVGElement': TypeData(clazz='Interface', custom_to_dart=True),
'ClientRectList': TypeData(clazz='Interface',
- item_type='ClientRect', dart_type='List<Rect>', suppress_interface=True),
+ item_type='ClientRect', dart_type='List<Rectangle>',
+ suppress_interface=True),
'CSSRuleList': TypeData(clazz='Interface',
item_type='CSSRule', suppress_interface=True),
'CSSValueList': TypeData(clazz='Interface',

Powered by Google App Engine
This is Rietveld 408576698