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

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

Issue 2005433002: [Origin Trials] Install origin trial bindings on V8 context conditionally (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@track-ef-install
Patch Set: Clean up 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 {{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 %}; 158 {{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 %};
159 {% else %} { } 159 {% else %} { }
160 {% endif %} 160 {% endif %}
161 {% if has_partial_interface %} 161 {% if has_partial_interface %}
162 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeAndInterfaceObjectFunction); 162 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeAndInterfaceObjectFunction);
163 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate); 163 {{exported}}static void install{{v8_class}}Template(v8::Isolate*, const DOMW rapperWorld&, v8::Local<v8::FunctionTemplate> interfaceTemplate);
164 {% for method in methods if method.overloads and method.overloads.has_partia l_overloads %} 164 {% for method in methods if method.overloads and method.overloads.has_partia l_overloads %}
165 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 165 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
166 {% endfor %} 166 {% endfor %}
167 {% endif %} 167 {% endif %}
168 {% for group in attributes|origin_trial_enabled_attributes|groupby('origin_t rial_feature_name') %}{{newline}}
169 static void install{{group.grouper}}(v8::Isolate*, const DOMWrapperWorld&, v 8::Local<v8::Object> instance, v8::Local<v8::Function> interface);
170 {% endfor %}
168 {% if has_partial_interface %} 171 {% if has_partial_interface %}
169 172
170 private: 173 private:
171 static InstallTemplateFunction install{{v8_class}}TemplateFunction; 174 static InstallTemplateFunction install{{v8_class}}TemplateFunction;
172 {% endif %} 175 {% endif %}
173 }; 176 };
174 177
175 {% if has_event_constructor %} 178 {% if has_event_constructor %}
176 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); 179 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info);
177 180
178 {% endif %} 181 {% endif %}
179 template <> 182 template <>
180 struct V8TypeOf<{{cpp_class}}> { 183 struct V8TypeOf<{{cpp_class}}> {
181 typedef {{v8_class}} Type; 184 typedef {{v8_class}} Type;
182 }; 185 };
183 186
184 } // namespace blink 187 } // namespace blink
185 188
186 #endif // {{v8_class}}_h 189 #endif // {{v8_class}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698