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

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

Issue 1996903002: [Binding] Delete hasInstance() from ArrayBuffer related interfaces (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 21 matching lines...) Expand all
32 {% endfor %} 32 {% endfor %}
33 {% for attribute in attributes if attribute.is_implemented_in_private_sc ript %} 33 {% for attribute in attributes if attribute.is_implemented_in_private_sc ript %}
34 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.cpp_type}}* result); 34 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.cpp_type}}* result);
35 {% if not attribute.is_read_only %} 35 {% if not attribute.is_read_only %}
36 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue); 36 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_c lass}}* holderImpl, {{attribute.argument_cpp_type}} cppValue);
37 {% endif %} 37 {% endif %}
38 {% endfor %} 38 {% endfor %}
39 }; 39 };
40 40
41 {% endif %} 41 {% endif %}
42 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
43 {% if is_array_buffer_or_view %} 42 {% if is_array_buffer_or_view %}
44 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object); 43 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object);
45 {% else %} 44 {% else %}
45 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
46 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*); 46 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*);
47 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&); 47 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrapperWorld&);
48 {% if has_named_properties_object %} 48 {% if has_named_properties_object %}
49 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplateForNamedProper tiesObject(v8::Isolate*, const DOMWrapperWorld&); 49 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplateForNamedProper tiesObject(v8::Isolate*, const DOMWrapperWorld&);
50 {% endif %} 50 {% endif %}
51 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object) 51 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object)
52 { 52 {
53 return toScriptWrappable(object)->toImpl<{{cpp_class}}>(); 53 return toScriptWrappable(object)->toImpl<{{cpp_class}}>();
54 } 54 }
55 {% endif %} 55 {% endif %}
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 {% endif %} 178 {% endif %}
179 template <> 179 template <>
180 struct V8TypeOf<{{cpp_class}}> { 180 struct V8TypeOf<{{cpp_class}}> {
181 typedef {{v8_class}} Type; 181 typedef {{v8_class}} Type;
182 }; 182 };
183 183
184 } // namespace blink 184 } // namespace blink
185 185
186 #endif // {{v8_class}}_h 186 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_union.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