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

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

Issue 2106983002: Allow origin trials to be declared on IDL operations (methods) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removing unneeded includes, addressing nits Created 4 years, 5 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 {# persistentHandleIndex must be the last field, if it is present. 151 {# persistentHandleIndex must be the last field, if it is present.
152 Detailed explanation: https://codereview.chromium.org/139173012 152 Detailed explanation: https://codereview.chromium.org/139173012
153 FIXME: Remove this internal field, and share one field for either: 153 FIXME: Remove this internal field, and share one field for either:
154 * a persistent handle (if the object is in oilpan) or 154 * a persistent handle (if the object is in oilpan) or
155 * a C++ pointer to the DOM object (if the object is not in oilpan) #} 155 * a C++ pointer to the DOM object (if the object is not in oilpan) #}
156 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}}; 156 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}};
157 {# End custom internal fields #} 157 {# End custom internal fields #}
158 {% if has_conditional_attributes %} 158 {% if has_conditional_attributes %}
159 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*); 159 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*);
160 {% endif %} 160 {% endif %}
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 methods | cond itionally_exposed(is_partial) %};
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 origin_trial_feature_name in origin_trial_feature_names %}{{newline}} 171 {% for origin_trial_feature_name in origin_trial_feature_names %}{{newline}}
(...skipping 11 matching lines...) Expand all
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
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_utilities.py ('k') | third_party/WebKit/Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698