| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // WARNING: Do not edit - generated code. |
| 6 |
| 7 #ifndef GEN_SKY_BINDINGS_{{dart_class}}_H_ |
| 8 #define GEN_SKY_BINDINGS_{{dart_class}}_H_ |
| 9 |
| 10 {% for filename in header_includes %} |
| 11 #include "{{filename}}" |
| 12 {% endfor %} |
| 13 |
| 14 namespace blink { |
| 15 |
| 16 struct {{dart_class}} { |
| 17 static bool hasInstance(Dart_Handle handle) { |
| 18 // TODO(abarth): Need to look up the class_id from |handle| and compare with
|dart_class_id|. |
| 19 return false; |
| 20 } |
| 21 |
| 22 static Dart_NativeFunction Resolver(Dart_Handle name, |
| 23 int argument_count, |
| 24 bool* auto_scope); |
| 25 static const uint8_t* Symbolizer(Dart_NativeFunction native_function); |
| 26 }; |
| 27 |
| 28 namespace {{dart_class}}Internal { |
| 29 {% from 'methods_cpp.template' import static_method_name %} |
| 30 |
| 31 {% if has_custom_constructor %} |
| 32 {# FIXME(vsm): Name this properly. #} |
| 33 void constructorCallback(Dart_NativeArguments); |
| 34 {% endif %} |
| 35 |
| 36 {% if has_event_constructor %} |
| 37 void initialize{{interface_name}}ForDart({{interface_name}}Init&, const String
&, const HashMap<String, Dart_Handle>&, Dart_Handle&); |
| 38 {% endif %} |
| 39 {% for method in methods if method.is_custom_element_callbacks and not method.
suppressed %} |
| 40 void {{method.name}}_{{method.number_of_arguments}}(Dart_NativeArguments); |
| 41 {% endfor %} |
| 42 {% for method in methods if method.is_custom or method.custom_dart_new %} |
| 43 void {{static_method_name(method.name)}}(Dart_NativeArguments args); |
| 44 {% if method.overload_index == 1 %} |
| 45 void {{static_method_name(method.name, 0)}}(Dart_NativeArguments args); |
| 46 {% endif %} |
| 47 {% endfor %} |
| 48 {% for attribute in attributes %} |
| 49 {% if attribute.has_custom_getter %} |
| 50 void {{attribute.name}}Getter(Dart_NativeArguments); |
| 51 {% endif %} |
| 52 {% if attribute.has_custom_setter %} |
| 53 void {{attribute.name}}Setter(Dart_NativeArguments); |
| 54 {% endif %} |
| 55 {% endfor %} |
| 56 } |
| 57 |
| 58 } // namespace blink |
| 59 |
| 60 #endif // GEN_SKY_BINDINGS_{{dart_class}}_H_ |
| OLD | NEW |