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

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

Issue 1202683002: bindings: Supports per-member [Exposed] for attributes on prototype. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/interface.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 {% 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 {% filter conditional(conditional_string) %} 5 {% filter conditional(conditional_string) %}
6 {% for filename in header_includes %} 6 {% for filename in header_includes %}
7 #include "{{filename}}" 7 #include "{{filename}}"
8 {% endfor %} 8 {% endfor %}
9 9
10 namespace blink { 10 namespace blink {
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 * a C++ pointer to the DOM object (if the object is not in oilpan) #} 159 * a C++ pointer to the DOM object (if the object is not in oilpan) #}
160 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}}; 160 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}};
161 {# End custom internal fields #} 161 {# End custom internal fields #}
162 {% if interface_name == 'Window' %} 162 {% if interface_name == 'Window' %}
163 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v 8::Value> key, v8::AccessType, v8::Local<v8::Value> data); 163 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v 8::Value> key, v8::AccessType, v8::Local<v8::Value> data);
164 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data); 164 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data);
165 {% endif %} 165 {% endif %}
166 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*){% if has_conditional_attributes %}; 166 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*){% if has_conditional_attributes %};
167 {% else %} { } 167 {% else %} { }
168 {% endif %} 168 {% endif %}
169 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object>){% if unscopeables or conditionally_enabled_methods %}; 169 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object> proto typeObject, v8::Local<v8::FunctionTemplate> interfaceTemplate){% if unscopeables or has_conditional_attributes_on_prototype or conditionally_enabled_methods %};
170 {% else %} { } 170 {% else %} { }
171 {% endif %} 171 {% endif %}
172 {% if has_partial_interface %} 172 {% if has_partial_interface %}
173 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeObjectFunction); 173 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeObjectFunction);
174 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe mplate>, v8::Isolate*); 174 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe mplate>, v8::Isolate*);
175 {% for method in methods if method.overloads and method.overloads.has_partia l_overloads %} 175 {% for method in methods if method.overloads and method.overloads.has_partia l_overloads %}
176 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&)); 176 {{exported}}static void register{{method.name | blink_capitalize}}MethodForP artialInterface(void (*)(const v8::FunctionCallbackInfo<v8::Value>&));
177 {% endfor %} 177 {% endfor %}
178 {% endif %} 178 {% endif %}
179 {% if has_partial_interface %} 179 {% if has_partial_interface %}
180 180
181 private: 181 private:
182 static InstallTemplateFunction install{{v8_class}}TemplateFunction; 182 static InstallTemplateFunction install{{v8_class}}TemplateFunction;
183 {% endif %} 183 {% endif %}
184 }; 184 };
185 185
186 {% if has_event_constructor %} 186 {% if has_event_constructor %}
187 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info); 187 {{exported}}bool initialize{{cpp_class}}({{cpp_class}}Init&, const Dictionary&, ExceptionState&, const v8::FunctionCallbackInfo<v8::Value>& info);
188 188
189 {% endif %} 189 {% endif %}
190 template <> 190 template <>
191 struct V8TypeOf<{{cpp_class}}> { 191 struct V8TypeOf<{{cpp_class}}> {
192 typedef {{v8_class}} Type; 192 typedef {{v8_class}} Type;
193 }; 193 };
194 194
195 } // namespace blink 195 } // namespace blink
196 {% endfilter %} 196 {% endfilter %}
197 197
198 #endif // {{v8_class}}_h 198 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « Source/bindings/scripts/v8_interface.py ('k') | Source/bindings/templates/interface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698