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

Side by Side Diff: third_party/WebKit/Source/bindings/templates/interface.h.tmpl

Issue 2424693002: Custom Elements: Complete HTMLConstructor Algorithm (Closed)
Patch Set: Redefinition guard Created 4 years, 1 month 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 {% filter format_blink_cpp_source_code %} 1 {% filter format_blink_cpp_source_code %}
2 2
3 {% include 'copyright_block.txt' %} 3 {% include 'copyright_block.txt' %}
4 #ifndef {{v8_class}}_h 4 #ifndef {{v8_class}}_h
5 #define {{v8_class}}_h 5 #define {{v8_class}}_h
6 6
7 {% for filename in header_includes %} 7 {% for filename in header_includes %}
8 #include "{{filename}}" 8 #include "{{filename}}"
9 {% endfor %} 9 {% endfor %}
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 {% endif %} 88 {% endif %}
89 {% if method.is_custom_call_epilogue %} 89 {% if method.is_custom_call_epilogue %}
90 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*); 90 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*);
91 {% endif %} 91 {% endif %}
92 {% endfor %} 92 {% endfor %}
93 {% if constructors or has_custom_constructor or has_event_constructor or has _html_constructor %} 93 {% if constructors or has_custom_constructor or has_event_constructor or has _html_constructor %}
94 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 94 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
95 {% endif %} 95 {% endif %}
96 {% if has_custom_constructor %} 96 {% if has_custom_constructor %}
97 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); 97 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&);
98 {% elif has_html_constructor %}
99 static void HTMLConstructor(const v8::FunctionCallbackInfo<v8::Value>&);
100 {% endif %} 98 {% endif %}
101 {% for attribute in attributes %} 99 {% for attribute in attributes %}
102 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #} 100 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #}
103 {% if attribute.is_data_type_property %} 101 {% if attribute.is_data_type_property %}
104 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba ckInfo<v8::Value>&); 102 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallba ckInfo<v8::Value>&);
105 {% else %} 103 {% else %}
106 static void {{attribute.name}}AttributeGetterCustom(const v8::FunctionCallba ckInfo<v8::Value>&); 104 static void {{attribute.name}}AttributeGetterCustom(const v8::FunctionCallba ckInfo<v8::Value>&);
107 {% endif %} 105 {% endif %}
108 {% endif %} 106 {% endif %}
109 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #} 107 {% if attribute.has_custom_setter %}{# FIXME: and not attribute.implemented_ by #}
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 template <> 189 template <>
192 struct V8TypeOf<{{cpp_class}}> { 190 struct V8TypeOf<{{cpp_class}}> {
193 typedef {{v8_class}} Type; 191 typedef {{v8_class}} Type;
194 }; 192 };
195 193
196 } // namespace blink 194 } // namespace blink
197 195
198 #endif // {{v8_class}}_h 196 #endif // {{v8_class}}_h
199 197
200 {% endfilter %}{# format_blink_cpp_source_code #} 198 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698