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

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

Issue 2906613002: [Bindings] Export constructorCallback functions in generated code (Closed)
Patch Set: remove an empty line Created 3 years, 6 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/tests/results/core/V8TestException.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 {% if method.is_custom %} 55 {% if method.is_custom %}
56 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Val ue>&); 56 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::Val ue>&);
57 {% endif %} 57 {% endif %}
58 {% if method.is_custom_call_prologue %} 58 {% if method.is_custom_call_prologue %}
59 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*); 59 static void {{method.name}}MethodPrologueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*);
60 {% endif %} 60 {% endif %}
61 {% if method.is_custom_call_epilogue %} 61 {% if method.is_custom_call_epilogue %}
62 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*); 62 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackInfo <v8::Value>&, {{cpp_class}}*);
63 {% endif %} 63 {% endif %}
64 {% endfor %} 64 {% endfor %}
65 {% if constructors or has_custom_constructor or has_html_constructor %}
66 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
67 {% endif %}
68 {% if has_custom_constructor %} 65 {% if has_custom_constructor %}
69 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); 66 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&);
70 {% endif %} 67 {% endif %}
71 {% for attribute in attributes %} 68 {% for attribute in attributes %}
72 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_by #} 69 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_by #}
73 {% if attribute.is_data_type_property %} 70 {% if attribute.is_data_type_property %}
74 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallback Info<v8::Value>&); 71 static void {{attribute.name}}AttributeGetterCustom(const v8::PropertyCallback Info<v8::Value>&);
75 {% else %} 72 {% else %}
76 static void {{attribute.name}}AttributeGetterCustom(const v8::FunctionCallback Info<v8::Value>&); 73 static void {{attribute.name}}AttributeGetterCustom(const v8::FunctionCallback Info<v8::Value>&);
77 {% endif %} 74 {% endif %}
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 {% for feature in origin_trial_features %} 141 {% for feature in origin_trial_features %}
145 142
146 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface); 143 static void install{{feature.name}}(v8::Isolate*, const DOMWrapperWorld&, v8:: Local<v8::Object> instance, v8::Local<v8::Object> prototype, v8::Local<v8::Funct ion> interface);
147 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce); 144 static void install{{feature.name}}(ScriptState*, v8::Local<v8::Object> instan ce);
148 {% if not feature.needs_instance %} 145 {% if not feature.needs_instance %}
149 static void install{{feature.name}}(ScriptState*); 146 static void install{{feature.name}}(ScriptState*);
150 {% endif %} 147 {% endif %}
151 {% endfor %} 148 {% endfor %}
152 149
153 // Callback functions 150 // Callback functions
151 {% if constructors or has_custom_constructor or has_html_constructor %}
152 {{exported}}static void constructorCallback(const v8::FunctionCallbackInfo<v8: :Value>&);
153
154 {% endif %}
154 {% for constant in constants | has_special_getter %} 155 {% for constant in constants | has_special_getter %}
155 {{exported}}static void {{constant.name}}ConstantGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>&); 156 {{exported}}static void {{constant.name}}ConstantGetterCallback(v8::Local<v8:: Name>, const v8::PropertyCallbackInfo<v8::Value>&);
156 {% endfor %} 157 {% endfor %}
157 158
158 {% for attribute in attributes %} 159 {% for attribute in attributes %}
159 {% if attribute.is_cached_accessor %} 160 {% if attribute.is_cached_accessor %}
160 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedPropertyKey( v8::Isolate*); 161 {{exported}}static v8::Local<v8::Private> {{attribute.name}}CachedPropertyKey( v8::Isolate*);
161 {% endif %} 162 {% endif %}
162 {% for world_suffix in attribute.world_suffixes %} 163 {% for world_suffix in attribute.world_suffixes %}
163 {% if not attribute.constructor_type %} 164 {% if not attribute.constructor_type %}
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 template <> 275 template <>
275 struct V8TypeOf<{{cpp_class}}> { 276 struct V8TypeOf<{{cpp_class}}> {
276 typedef {{v8_class}} Type; 277 typedef {{v8_class}} Type;
277 }; 278 };
278 279
279 } // namespace blink 280 } // namespace blink
280 281
281 #endif // {{v8_class}}_h 282 #endif // {{v8_class}}_h
282 283
283 {% endfilter %}{# format_blink_cpp_source_code #} 284 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/bindings/tests/results/core/V8TestException.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698