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

Unified Diff: sky/engine/bindings/scripts/templates/interface_dart.template

Issue 942553002: Make element.style["color"] work in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Add back removeProperty Created 5 years, 10 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: sky/engine/bindings/scripts/templates/interface_dart.template
diff --git a/sky/engine/bindings/scripts/templates/interface_dart.template b/sky/engine/bindings/scripts/templates/interface_dart.template
index a69850a21a66f233f971ecf86e4a04faf2857b76..8c20f30844ef8f2b0cfdd4b6dfe5ecbd8efa4e0b 100644
--- a/sky/engine/bindings/scripts/templates/interface_dart.template
+++ b/sky/engine/bindings/scripts/templates/interface_dart.template
@@ -43,4 +43,12 @@ abstract class {{interface_name}} extends {{ parent_interface if parent_interfac
{% for method in methods %}
{{method.dart_type}} {{method.name}}({{ args_macro(method.arguments)}}) native "{{interface_name}}_{{ method.name }}_Callback";
{% endfor %}
+
+ // Operators
+{% if named_property_getter %}
+ String operator[](String name) native "{{interface_name}}___getter___Callback";
+{% endif %}
+{% if named_property_setter %}
+ void operator[]=(String name, String value) native "{{interface_name}}___setter___Callback";
+{% endif %}
}
« no previous file with comments | « sky/engine/bindings/scripts/templates/interface_cpp.template ('k') | sky/engine/core/animation/AnimationNodeTiming.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698