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

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

Issue 1386843002: bindings: Implements the named properties object (WindowProperties). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 {% 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 28 matching lines...) Expand all
39 {% endfor %} 39 {% endfor %}
40 }; 40 };
41 41
42 {% endif %} 42 {% endif %}
43 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*); 43 {{exported}}static bool hasInstance(v8::Local<v8::Value>, v8::Isolate*);
44 {% if is_array_buffer_or_view %} 44 {% if is_array_buffer_or_view %}
45 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object); 45 {{exported}}static {{cpp_class}}* toImpl(v8::Local<v8::Object> object);
46 {% else %} 46 {% else %}
47 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*); 47 static v8::Local<v8::Object> findInstanceInPrototypeChain(v8::Local<v8::Valu e>, v8::Isolate*);
48 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*) ; 48 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplate(v8::Isolate*) ;
49 {% if has_named_properties_object %}
50 {{exported}}static v8::Local<v8::FunctionTemplate> domTemplateForNamedProper tiesObject(v8::Isolate*);
51 {% endif %}
49 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object) 52 static {{cpp_class}}* toImpl(v8::Local<v8::Object> object)
50 { 53 {
51 return toScriptWrappable(object)->toImpl<{{cpp_class}}>(); 54 return toScriptWrappable(object)->toImpl<{{cpp_class}}>();
52 } 55 }
53 {% endif %} 56 {% endif %}
54 {{exported}}static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Loca l<v8::Value>); 57 {{exported}}static {{cpp_class}}* toImplWithTypeCheck(v8::Isolate*, v8::Loca l<v8::Value>);
55 {% if has_partial_interface %} 58 {% if has_partial_interface %}
56 {{exported}}static WrapperTypeInfo wrapperTypeInfo; 59 {{exported}}static WrapperTypeInfo wrapperTypeInfo;
57 {% else %} 60 {% else %}
58 {{exported}}static const WrapperTypeInfo wrapperTypeInfo; 61 {{exported}}static const WrapperTypeInfo wrapperTypeInfo;
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 {% endif %} 193 {% endif %}
191 template <> 194 template <>
192 struct V8TypeOf<{{cpp_class}}> { 195 struct V8TypeOf<{{cpp_class}}> {
193 typedef {{v8_class}} Type; 196 typedef {{v8_class}} Type;
194 }; 197 };
195 198
196 } // namespace blink 199 } // namespace blink
197 {% endfilter %} 200 {% endfilter %}
198 201
199 #endif // {{v8_class}}_h 202 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_interface.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