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

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

Issue 2832923003: v8binding: Don't allow author script to define indexed accessor prop. (Closed)
Patch Set: Added the test expectation. Created 3 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 {% 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 {% endif %} 238 {% endif %}
239 {% if named_property_getter and named_property_getter.is_enumerable %} 239 {% if named_property_getter and named_property_getter.is_enumerable %}
240 {{exported}}static void namedPropertyQueryCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer>&); 240 {{exported}}static void namedPropertyQueryCallback(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Integer>&);
241 {% endif %} 241 {% endif %}
242 {% if named_property_getter and named_property_getter.is_enumerable %} 242 {% if named_property_getter and named_property_getter.is_enumerable %}
243 {{exported}}static void namedPropertyEnumeratorCallback(const v8::PropertyCall backInfo<v8::Array>&); 243 {{exported}}static void namedPropertyEnumeratorCallback(const v8::PropertyCall backInfo<v8::Array>&);
244 {% endif %} 244 {% endif %}
245 {% if indexed_property_getter or named_property_getter %} 245 {% if indexed_property_getter or named_property_getter %}
246 {{exported}}static void indexedPropertyGetterCallback(uint32_t index, const v8 ::PropertyCallbackInfo<v8::Value>&); 246 {{exported}}static void indexedPropertyGetterCallback(uint32_t index, const v8 ::PropertyCallbackInfo<v8::Value>&);
247 {% endif %} 247 {% endif %}
248 {% if indexed_property_setter or named_property_setter %} 248 {% if indexed_property_getter or named_property_setter %}
249 {{exported}}static void indexedPropertySetterCallback(uint32_t index, v8::Loca l<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&); 249 {{exported}}static void indexedPropertySetterCallback(uint32_t index, v8::Loca l<v8::Value>, const v8::PropertyCallbackInfo<v8::Value>&);
250 {% endif %} 250 {% endif %}
251 {% if indexed_property_deleter or named_property_deleter %} 251 {% if indexed_property_deleter or named_property_deleter %}
252 {{exported}}static void indexedPropertyDeleterCallback(uint32_t index, const v 8::PropertyCallbackInfo<v8::Boolean>&); 252 {{exported}}static void indexedPropertyDeleterCallback(uint32_t index, const v 8::PropertyCallbackInfo<v8::Boolean>&);
253 {% endif %} 253 {% endif %}
254 {% if indexed_property_getter %}
255 {{exported}}static void indexedPropertyDefinerCallback(uint32_t index, const v 8::PropertyDescriptor&, const v8::PropertyCallbackInfo<v8::Value>&);
256 {% endif %}
254 257
255 {% if needs_runtime_enabled_installer %} 258 {% if needs_runtime_enabled_installer %}
256 {{exported if has_partial_interface else ''}}static void InstallRuntimeEnabled Features( 259 {{exported if has_partial_interface else ''}}static void InstallRuntimeEnabled Features(
257 v8::Isolate*, 260 v8::Isolate*,
258 const DOMWrapperWorld& world, 261 const DOMWrapperWorld& world,
259 v8::Local<v8::Object> instance, 262 v8::Local<v8::Object> instance,
260 v8::Local<v8::Object> prototype, 263 v8::Local<v8::Object> prototype,
261 v8::Local<v8::Function> interface); 264 v8::Local<v8::Function> interface);
262 265
263 {% if has_partial_interface %} 266 {% if has_partial_interface %}
(...skipping 27 matching lines...) Expand all
291 template <> 294 template <>
292 struct V8TypeOf<{{cpp_class}}> { 295 struct V8TypeOf<{{cpp_class}}> {
293 typedef {{v8_class}} Type; 296 typedef {{v8_class}} Type;
294 }; 297 };
295 298
296 } // namespace blink 299 } // namespace blink
297 300
298 #endif // {{v8_class}}_h 301 #endif // {{v8_class}}_h
299 302
300 {% endfilter %}{# format_blink_cpp_source_code #} 303 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698