| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |