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

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

Issue 2571063002: Remove Blink-in-JS (Closed)
Patch Set: Created 4 years 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 10 matching lines...) Expand all
21 STATIC_ONLY({{v8_class}}Constructor); 21 STATIC_ONLY({{v8_class}}Constructor);
22 public: 22 public:
23 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrap perWorld&); 23 static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, const DOMWrap perWorld&);
24 static const WrapperTypeInfo wrapperTypeInfo; 24 static const WrapperTypeInfo wrapperTypeInfo;
25 }; 25 };
26 26
27 {% endif %} 27 {% endif %}
28 class {{v8_class}} { 28 class {{v8_class}} {
29 STATIC_ONLY({{v8_class}}); 29 STATIC_ONLY({{v8_class}});
30 public: 30 public:
31 {% if has_private_script %}
32 class PrivateScript {
33 STATIC_ONLY(PrivateScript);
34 public:
35 {% for method in methods if method.is_implemented_in_private_script %}
36 static bool {{method.name}}Method({{method.argument_declarations_for_private _script | join(', ')}});
37 {% endfor %}
38 {% for attribute in attributes if attribute.is_implemented_in_private_script %}
39 static bool {{attribute.name}}AttributeGetter(LocalFrame* frame, {{cpp_class }}* holderImpl, {{attribute.cpp_type}}* result);
40 {% if not attribute.is_read_only %}
41 static bool {{attribute.name}}AttributeSetter(LocalFrame* frame, {{cpp_class }}* holderImpl, {{attribute.argument_cpp_type}} cppValue);
42 {% endif %}
43 {% endfor %}
44 };
45
46 {% endif %}
47 {% if is_array_buffer_or_view %} 31 {% if is_array_buffer_or_view %}
48 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object); 32 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object);
49 {% else %} 33 {% else %}
50 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); 34 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
51 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value> , v8::Isolate*); 35 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Value> , v8::Isolate*);
52 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c onst DOMWrapperWorld&); 36 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*, c onst DOMWrapperWorld&);
53 {% if has_named_properties_object %} 37 {% if has_named_properties_object %}
54 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplateForNamedProperti esObject(v8::Isolate*, const DOMWrapperWorld&); 38 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplateForNamedProperti esObject(v8::Isolate*, const DOMWrapperWorld&);
55 {% endif %} 39 {% endif %}
56 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object) { 40 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object) {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 template <> 170 template <>
187 struct V8TypeOf<{{cpp_class}}> { 171 struct V8TypeOf<{{cpp_class}}> {
188 typedef {{v8_class}} Type; 172 typedef {{v8_class}} Type;
189 }; 173 };
190 174
191 } // namespace blink 175 } // namespace blink
192 176
193 #endif // {{v8_class}}_h 177 #endif // {{v8_class}}_h
194 178
195 {% endfilter %}{# format_blink_cpp_source_code #} 179 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698