OLD | NEW |
1 // Copyright 2014 The Dartium Authors. All rights reserved. | 1 // Copyright 2014 The Dartium 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 // This file has been auto-generated by {{code_generator_dart}}. DO NOT MODIFY! | 5 // This file has been auto-generated by {{code_generator_dart}}. DO NOT MODIFY! |
6 | 6 |
7 #include "sky/engine/config.h" | |
8 #include "{{dart_class}}.h" | 7 #include "{{dart_class}}.h" |
9 | 8 |
10 {% for filename in cpp_includes %} | 9 {% for filename in cpp_includes %} |
11 #include "{{filename}}" | 10 #include "{{filename}}" |
12 {% endfor %} | 11 {% endfor %} |
13 | 12 |
14 #include "sky/engine/tonic/dart_api_scope.h" | 13 #include "sky/engine/tonic/dart_api_scope.h" |
15 #include "sky/engine/tonic/dart_converter.h" | 14 #include "sky/engine/tonic/dart_converter.h" |
16 #include "sky/engine/tonic/dart_isolate_scope.h" | 15 #include "sky/engine/tonic/dart_isolate_scope.h" |
17 | 16 |
(...skipping 22 matching lines...) Expand all Loading... |
40 Dart_Handle *arguments = 0; | 39 Dart_Handle *arguments = 0; |
41 {% endif %} | 40 {% endif %} |
42 | 41 |
43 {% set return_with = 'return' | 42 {% set return_with = 'return' |
44 if method.idl_type == 'boolean' else '' %}{# void #} | 43 if method.idl_type == 'boolean' else '' %}{# void #} |
45 {{return_with}} callback_.handleEvent({{method.arguments | length}}, argumen
ts); | 44 {{return_with}} callback_.handleEvent({{method.arguments | length}}, argumen
ts); |
46 } | 45 } |
47 | 46 |
48 {% endfor %} | 47 {% endfor %} |
49 } // namespace blink | 48 } // namespace blink |
OLD | NEW |