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

Side by Side Diff: sky/engine/bindings/scripts/templates/interface_dart.template

Issue 915293003: Rename sky/engine/bindings2 to sky/engine/bindings (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: more better 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 abstract class {{interface_name}} extends {{ parent_interface if parent_interfac e else 'NativeFieldWrapperClass2' }} { 8 abstract class {{interface_name}} extends {{ parent_interface if parent_interfac e else 'NativeFieldWrapperClass2' }} {
9 9
10 {% macro args_macro(args) -%} 10 {% macro args_macro(args) -%}
(...skipping 23 matching lines...) Expand all
34 {{ attribute.dart_type }} get {{ attribute.name }} native "{{interface_name} }_{{ attribute.name }}_Getter"; 34 {{ attribute.dart_type }} get {{ attribute.name }} native "{{interface_name} }_{{ attribute.name }}_Getter";
35 {% if not attribute.is_read_only %} 35 {% if not attribute.is_read_only %}
36 void set {{ attribute.name }}({{ attribute.dart_type }} value) native "{{int erface_name}}_{{ attribute.name }}_Setter"; 36 void set {{ attribute.name }}({{ attribute.dart_type }} value) native "{{int erface_name}}_{{ attribute.name }}_Setter";
37 {% endif %} 37 {% endif %}
38 {% endfor %} 38 {% endfor %}
39 39
40 {% for method in methods %} 40 {% for method in methods %}
41 {{method.dart_type}} {{method.name}}({{ args_macro(method.arguments)}} ) nat ive "{{interface_name}}_{{ method.name }}_Callback"; 41 {{method.dart_type}} {{method.name}}({{ args_macro(method.arguments)}} ) nat ive "{{interface_name}}_{{ method.name }}_Callback";
42 {% endfor %} 42 {% endfor %}
43 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698