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

Unified Diff: sky/engine/bindings/scripts/dart_types.py

Issue 1214833004: Split Size into Size and Offset. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « no previous file | sky/engine/bindings/scripts/templates/interface_dart.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/bindings/scripts/dart_types.py
diff --git a/sky/engine/bindings/scripts/dart_types.py b/sky/engine/bindings/scripts/dart_types.py
index 11b7a92ef860e35e8f98598667f423762d3e7586..ccbfd2404cff28941ee2dff6e8bd3f0ba7202456 100644
--- a/sky/engine/bindings/scripts/dart_types.py
+++ b/sky/engine/bindings/scripts/dart_types.py
@@ -120,8 +120,10 @@ CPP_SPECIAL_CONVERSION_RULES = {
# dart_value_to_cpp_value using CPP_SPECIAL_CONVERSION_RULES directly
# instead of calling cpp_type.
'Float32List': 'Float32List',
+ 'Offset': 'Offset',
'Point': 'Point',
'Rect': 'Rect',
+ 'Size': 'Size',
'MojoDataPipeConsumer': 'mojo::ScopedDataPipeConsumerHandle',
'TileMode': 'SkShader::TileMode',
'TransferMode': 'SkXfermode::Mode',
@@ -372,8 +374,10 @@ DART_TO_CPP_VALUE = {
# Pass-by-value types.
'Color': pass_by_value_format('CanvasColor'),
'Float32List': pass_by_value_format('Float32List'),
+ 'Offset': pass_by_value_format('Offset'),
'Point': pass_by_value_format('Point'),
'Rect': pass_by_value_format('Rect'),
+ 'Size': pass_by_value_format('Size'),
'TileMode': pass_by_value_format('TileMode', ''),
'TransferMode': pass_by_value_format('TransferMode', ''),
'PaintingStyle': pass_by_value_format('PaintingStyle', ''),
« no previous file with comments | « no previous file | sky/engine/bindings/scripts/templates/interface_dart.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698