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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // WARNING: Do not edit - generated code. 5 // WARNING: Do not edit - generated code.
6 part of sky.core; 6 part of sky.core;
7 7
8 {% macro args_macro(args) -%} 8 {% macro args_macro(args) -%}
9 {%- for arg in args -%} 9 {%- for arg in args -%}
10 {%- if arg.is_optional and (loop.first or not args[arg.index-1].is_optio nal) -%} 10 {%- if arg.is_optional and (loop.first or not args[arg.index-1].is_optio nal) -%}
(...skipping 25 matching lines...) Expand all
36 {{ attribute.dart_type }} get {{ attribute.name }} native "{{interface_name} }_{{ attribute.name }}_Getter"; 36 {{ attribute.dart_type }} get {{ attribute.name }} native "{{interface_name} }_{{ attribute.name }}_Getter";
37 {% if not attribute.is_read_only %} 37 {% if not attribute.is_read_only %}
38 void set {{ attribute.name }}({{ attribute.dart_type }} value) native "{{int erface_name}}_{{ attribute.name }}_Setter"; 38 void set {{ attribute.name }}({{ attribute.dart_type }} value) native "{{int erface_name}}_{{ attribute.name }}_Setter";
39 {% endif %} 39 {% endif %}
40 {% endfor %} 40 {% endfor %}
41 41
42 // Methods 42 // Methods
43 {% for method in methods %} 43 {% for method in methods %}
44 {{method.dart_type}} {{method.name}}({{ args_macro(method.arguments)}}) nati ve "{{interface_name}}_{{ method.name }}_Callback"; 44 {{method.dart_type}} {{method.name}}({{ args_macro(method.arguments)}}) nati ve "{{interface_name}}_{{ method.name }}_Callback";
45 {% endfor %} 45 {% endfor %}
46
47 // Operators
48 {% if named_property_getter %}
49 String operator[](String name) native "{{interface_name}}___getter___Callbac k";
esprehn 2015/02/19 20:12:48 python naming?
abarth-chromium 2015/02/19 20:19:57 We inherited this name from Dartium. It's not vis
50 {% endif %}
51 {% if named_property_setter %}
52 void operator[]=(String name, String value) native "{{interface_name}}___set ter___Callback";
53 {% endif %}
46 } 54 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698