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

Side by Side Diff: Source/bindings/templates/interface.h

Issue 1019453002: IDL: Add [Custom=CallEpilogue] to eliminate CG special cases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix after rebase Created 5 years, 9 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 | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium 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}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #ifndef {{v8_class}}_h 7 #ifndef {{v8_class}}_h
8 #define {{v8_class}}_h 8 #define {{v8_class}}_h
9 9
10 {% filter conditional(conditional_string) %} 10 {% filter conditional(conditional_string) %}
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 {% endif %} 80 {% endif %}
81 {% if interface_name == 'Window' %} 81 {% if interface_name == 'Window' %}
82 static v8::Local<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*); 82 static v8::Local<v8::ObjectTemplate> getShadowObjectTemplate(v8::Isolate*);
83 {% endif %} 83 {% endif %}
84 {% for method in methods %} 84 {% for method in methods %}
85 {% if method.is_custom %} 85 {% if method.is_custom %}
86 {% filter conditional(method.conditional_string) %} 86 {% filter conditional(method.conditional_string) %}
87 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&); 87 static void {{method.name}}MethodCustom(const v8::FunctionCallbackInfo<v8::V alue>&);
88 {% endfilter %} 88 {% endfilter %}
89 {% endif %} 89 {% endif %}
90 {% if method.is_custom_call_epilogue %}
91 {% filter conditional(method.conditional_string) %}
92 static void {{method.name}}MethodEpilogueCustom(const v8::FunctionCallbackIn fo<v8::Value>&, {{cpp_class}}*);
93 {% endfilter %}
94 {% endif %}
90 {% endfor %} 95 {% endfor %}
91 {% if constructors or has_custom_constructor or has_event_constructor %} 96 {% if constructors or has_custom_constructor or has_event_constructor %}
92 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&); 97 static void constructorCallback(const v8::FunctionCallbackInfo<v8::Value>&);
93 {% endif %} 98 {% endif %}
94 {% if has_custom_constructor %} 99 {% if has_custom_constructor %}
95 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&); 100 static void constructorCustom(const v8::FunctionCallbackInfo<v8::Value>&);
96 {% endif %} 101 {% endif %}
97 {% for attribute in attributes %} 102 {% for attribute in attributes %}
98 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #} 103 {% if attribute.has_custom_getter %}{# FIXME: and not attribute.implemented_ by #}
99 {% filter conditional(attribute.conditional_string) %} 104 {% filter conditional(attribute.conditional_string) %}
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 201
197 {% endif %}{# has_custom_to_v8 #} 202 {% endif %}{# has_custom_to_v8 #}
198 {% if has_event_constructor %} 203 {% if has_event_constructor %}
199 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info); 204 bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionSta te&, const v8::FunctionCallbackInfo<v8::Value>& info);
200 205
201 {% endif %} 206 {% endif %}
202 } // namespace blink 207 } // namespace blink
203 {% endfilter %} 208 {% endfilter %}
204 209
205 #endif // {{v8_class}}_h 210 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_methods.py ('k') | Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698