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

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

Issue 1085453003: IDL: Add support for [Unscopeable] on attributes and methods (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fixes Created 5 years, 8 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
« 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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 * a C++ pointer to the DOM object (if the object is not in oilpan) #} 151 * a C++ pointer to the DOM object (if the object is not in oilpan) #}
152 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}}; 152 static const int internalFieldCount = v8DefaultWrapperInternalFieldCount + { {custom_internal_field_counter}};
153 {# End custom internal fields #} 153 {# End custom internal fields #}
154 {% if interface_name == 'Window' %} 154 {% if interface_name == 'Window' %}
155 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v 8::Value> key, v8::AccessType, v8::Local<v8::Value> data); 155 static bool namedSecurityCheckCustom(v8::Local<v8::Object> host, v8::Local<v 8::Value> key, v8::AccessType, v8::Local<v8::Value> data);
156 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data); 156 static bool indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t index, v8::AccessType, v8::Local<v8::Value> data);
157 {% endif %} 157 {% endif %}
158 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*){% if has_conditional_attributes %}; 158 static void installConditionallyEnabledProperties(v8::Local<v8::Object>, v8: :Isolate*){% if has_conditional_attributes %};
159 {% else %} { } 159 {% else %} { }
160 {% endif %} 160 {% endif %}
161 static void installConditionallyEnabledMethods(v8::Local<v8::Object>, v8::Is olate*){% if conditionally_enabled_methods %}; 161 static void preparePrototypeObject(v8::Isolate*, v8::Local<v8::Object>){% if unscopeables 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, Insta llConditionallyEnabledMethodsFunction); 165 {{exported}}static void updateWrapperTypeInfo(InstallTemplateFunction, Prepa rePrototypeObjectFunction);
166 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe mplate>, v8::Isolate*); 166 {{exported}}static void install{{v8_class}}Template(v8::Local<v8::FunctionTe mplate>, v8::Isolate*);
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 {% if has_partial_interface %} 171 {% if has_partial_interface %}
172 172
173 private: 173 private:
174 static InstallTemplateFunction install{{v8_class}}TemplateFunction; 174 static InstallTemplateFunction install{{v8_class}}TemplateFunction;
175 {% endif %} 175 {% endif %}
(...skipping 25 matching lines...) Expand all
201 {% endif %} 201 {% endif %}
202 template <> 202 template <>
203 struct V8TypeOf<{{cpp_class}}> { 203 struct V8TypeOf<{{cpp_class}}> {
204 typedef {{v8_class}} Type; 204 typedef {{v8_class}} Type;
205 }; 205 };
206 206
207 } // namespace blink 207 } // namespace blink
208 {% endfilter %} 208 {% endfilter %}
209 209
210 #endif // {{v8_class}}_h 210 #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