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

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

Issue 2341673004: [Binding] Replace 'Unscopeable' with 'Unscopable' (Closed)
Patch Set: . Created 4 years, 3 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 {% 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + {{custom_internal_field_counter}}; 150 static const int eventListenerCacheIndex = v8DefaultWrapperInternalFieldCoun t + {{custom_internal_field_counter}};
151 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %} 151 {% set custom_internal_field_counter = custom_internal_field_counter + 1 %}
152 {% endif %} 152 {% endif %}
153 {# persistentHandleIndex must be the last field, if it is present. 153 {# persistentHandleIndex must be the last field, if it is present.
154 Detailed explanation: https://codereview.chromium.org/139173012 154 Detailed explanation: https://codereview.chromium.org/139173012
155 FIXME: Remove this internal field, and share one field for either: 155 FIXME: Remove this internal field, and share one field for either:
156 * a persistent handle (if the object is in oilpan) or 156 * a persistent handle (if the object is in oilpan) or
157 * a C++ pointer to the DOM object (if the object is not in oilpan) #} 157 * a C++ pointer to the DOM object (if the object is not in oilpan) #}
158 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}}; 158 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}};
159 {# End custom internal fields #} 159 {# End custom internal fields #}
160 {% if unscopeables or has_conditional_attributes_on_prototype or 160 {% if unscopables or has_conditional_attributes_on_prototype or
161 methods | conditionally_exposed(is_partial) %} 161 methods | conditionally_exposed(is_partial) %}
162 {{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 ); 162 {{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 );
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 %}
(...skipping 17 matching lines...) Expand all
188 template <> 188 template <>
189 struct V8TypeOf<{{cpp_class}}> { 189 struct V8TypeOf<{{cpp_class}}> {
190 typedef {{v8_class}} Type; 190 typedef {{v8_class}} Type;
191 }; 191 };
192 192
193 } // namespace blink 193 } // namespace blink
194 194
195 #endif // {{v8_class}}_h 195 #endif // {{v8_class}}_h
196 196
197 {% endfilter %}{# format_blink_cpp_source_code #} 197 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_interface.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