| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
| 6 | 6 |
| 7 #include "config.h" | 7 #include "config.h" |
| 8 {% filter conditional(conditional_string) %} | 8 {% filter conditional(conditional_string) %} |
| 9 #include "DartWebkitClassIds.h" | 9 #include "DartWebkitClassIds.h" |
| 10 #include "{{dart_class}}.h" | 10 #include "{{dart_class}}.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 {# Resolver Methods #} | 82 {# Resolver Methods #} |
| 83 {% from 'methods_cpp.template' import generate_resolver_body with context %} | 83 {% from 'methods_cpp.template' import generate_resolver_body with context %} |
| 84 {% for method in methods if not method.suppressed %} | 84 {% for method in methods if not method.suppressed %} |
| 85 {{generate_resolver_body(dart_class, interface_name, method) | indent(4)}} | 85 {{generate_resolver_body(dart_class, interface_name, method) | indent(4)}} |
| 86 {% endfor %} | 86 {% endfor %} |
| 87 {# Special operations (methods) #} | 87 {# Special operations (methods) #} |
| 88 {# TODO(terry): Only emit indexed getter for DataTransferItemList; emit for
interfaces. #} | 88 {# TODO(terry): Only emit indexed getter for DataTransferItemList; emit for
interfaces. #} |
| 89 {% if dart_class == 'DartDataTransferItemList' %} | 89 {% if dart_class == 'DartDataTransferItemList' %} |
| 90 {% block indexed_property_getter_resolver %}{% endblock %} | 90 {% block indexed_property_getter_resolver %}{% endblock %} |
| 91 {% endif %} | 91 {% endif %} |
| 92 {% if dart_class == 'DartCSSStyleDeclaration' %} |
| 93 {% block named_property_getter_resolver %}{% endblock %} |
| 94 {% endif %} |
| 92 return 0; | 95 return 0; |
| 93 } | 96 } |
| 94 | 97 |
| 95 const uint8_t* {{dart_class}}::symbolizer(Dart_NativeFunction nf) | 98 const uint8_t* {{dart_class}}::symbolizer(Dart_NativeFunction nf) |
| 96 { | 99 { |
| 97 {% from 'methods_cpp.template' import generate_symbolizer_constructor with c
ontext %} | 100 {% from 'methods_cpp.template' import generate_symbolizer_constructor with c
ontext %} |
| 98 {% for constructor in constructors %} | 101 {% for constructor in constructors %} |
| 99 {{generate_symbolizer_constructor(dart_class, interface_name, constructor) | ind
ent(4)}} | 102 {{generate_symbolizer_constructor(dart_class, interface_name, constructor) | ind
ent(4)}} |
| 100 {% endfor %} | 103 {% endfor %} |
| 101 {% for constructor in custom_constructors %} | 104 {% for constructor in custom_constructors %} |
| 102 {{generate_symbolizer_constructor(dart_class, interface_name, constructor) | ind
ent(4)}} | 105 {{generate_symbolizer_constructor(dart_class, interface_name, constructor) | ind
ent(4)}} |
| 103 {% endfor %} | 106 {% endfor %} |
| 104 {% if named_constructor %} | 107 {% if named_constructor %} |
| 105 {{generate_symbolizer_constructor(dart_class, interface_name, named_constructor)
| indent(4)}} | 108 {{generate_symbolizer_constructor(dart_class, interface_name, named_constructor)
| indent(4)}} |
| 106 {% endif %} | 109 {% endif %} |
| 107 {% from 'attributes_cpp.template' import generate_attribute_symbolizer_body
%} | 110 {% from 'attributes_cpp.template' import generate_attribute_symbolizer_body
%} |
| 108 {% for attribute in attributes %} | 111 {% for attribute in attributes %} |
| 109 {{generate_attribute_symbolizer_body(dart_class, interface_name, attribute) | in
dent(4)}} | 112 {{generate_attribute_symbolizer_body(dart_class, interface_name, attribute) | in
dent(4)}} |
| 110 {% endfor %} | 113 {% endfor %} |
| 111 {% from 'methods_cpp.template' import generate_symbolizer_body with context
%} | 114 {% from 'methods_cpp.template' import generate_symbolizer_body with context
%} |
| 112 {% for method in methods if not method.suppressed %} | 115 {% for method in methods if not method.suppressed %} |
| 113 {{generate_symbolizer_body(dart_class, interface_name, method) | indent(4)}} | 116 {{generate_symbolizer_body(dart_class, interface_name, method) | indent(4)}} |
| 114 {% endfor %} | 117 {% endfor %} |
| 118 {% if dart_class == 'DartCSSStyleDeclaration' %} |
| 119 {% block generate_symbolizer_named_property_getter %}{% endblock %} |
| 120 {% endif %} |
| 115 {% block generate_symbolizer_indexed_property_getter %}{% endblock %} | 121 {% block generate_symbolizer_indexed_property_getter %}{% endblock %} |
| 116 return 0; | 122 return 0; |
| 117 } | 123 } |
| 118 | 124 |
| 119 } // namespace WebCore | 125 } // namespace WebCore |
| 120 | 126 |
| 121 {% endfilter %} | 127 {% endfilter %} |
| OLD | NEW |