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

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

Issue 2057273002: [OriginTrials] Support OriginTrialEnabled IDL attribute on constants (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move signature creation out of for loop Created 4 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
OLDNEW
1 {% include 'copyright_block.txt' %} 1 {% include 'copyright_block.txt' %}
2 #ifndef {{v8_class}}_h 2 #ifndef {{v8_class}}_h
3 #define {{v8_class}}_h 3 #define {{v8_class}}_h
4 4
5 {% for filename in header_includes %} 5 {% for filename in header_includes %}
6 #include "{{filename}}" 6 #include "{{filename}}"
7 {% endfor %} 7 {% endfor %}
8 8
9 namespace blink { 9 namespace blink {
10 10
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Con text>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local< v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate ){% if unscopeables or has_conditional_attributes_on_prototype or conditionally_ enabled_methods %}; 161 {{exported}}static void preparePrototypeAndInterfaceObject(v8::Local<v8::Con text>, const DOMWrapperWorld&, v8::Local<v8::Object> prototypeObject, v8::Local< v8::Function> interfaceObject, v8::Local<v8::FunctionTemplate> interfaceTemplate ){% if unscopeables or has_conditional_attributes_on_prototype or conditionally_ enabled_methods %};
162 {% else %} { } 162 {% else %} { }
163 {% endif %} 163 {% endif %}
164 {% if has_partial_interface %} 164 {% if has_partial_interface %}
165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeAndInterfaceObjectFunction); 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeAndInterfaceObjectFunction);
166 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); 166 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
167 {% for method in methods if method.overloads and method.overloads.has_partia l_overloads %} 167 {% for method in methods if method.overloads and method.overloads.has_partia l_overloads %}
168 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 168 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
169 {% endfor %} 169 {% endfor %}
170 {% endif %} 170 {% endif %}
171 {% for group in attributes|origin_trial_enabled_attributes|groupby('origin_t rial_feature_name') %}{{newline}} 171 {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}}
172 static void install{{group.grouper}}(ScriptState*, v8::Local<v8::Object> ins tance); 172 static void install{{origin_trial_feature_name}}(ScriptState*, v8::Local<v8: :Object> instance);
173 {% endfor %} 173 {% endfor %}
174 {% if has_partial_interface %} 174 {% if has_partial_interface %}
175 175
176 private: 176 private:
177 static InstallTemplateFunction install{{v8_class}}TemplateFunction; 177 static InstallTemplateFunction install{{v8_class}}TemplateFunction;
178 {% endif %} 178 {% endif %}
179 }; 179 };
180 180
181 {% if has_event_constructor %} 181 {% if has_event_constructor %}
182 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); 182 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info);
183 183
184 {% endif %} 184 {% endif %}
185 template <> 185 template <>
186 struct V8TypeOf<{{cpp_class}}> { 186 struct V8TypeOf<{{cpp_class}}> {
187 typedef {{v8_class}} Type; 187 typedef {{v8_class}} Type;
188 }; 188 };
189 189
190 } // namespace blink 190 } // namespace blink
191 191
192 #endif // {{v8_class}}_h 192 #endif // {{v8_class}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698