OLD | NEW |
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 | 4 |
5 #ifndef {{cpp_class}}_h | 5 #ifndef {{cpp_class}}_h |
6 #define {{cpp_class}}_h | 6 #define {{cpp_class}}_h |
7 | 7 |
8 {% for filename in header_includes %} | 8 {% for filename in header_includes %} |
9 #include "{{filename}}" | 9 #include "{{filename}}" |
10 {% endfor %} | 10 {% endfor %} |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 bool call({{argument_declarations | join(', ')}}); | 28 bool call({{argument_declarations | join(', ')}}); |
29 | 29 |
30 v8::Local<v8::Function> v8Value(v8::Isolate* isolate) { | 30 v8::Local<v8::Function> v8Value(v8::Isolate* isolate) { |
31 return m_callback.NewLocal(isolate); | 31 return m_callback.NewLocal(isolate); |
32 } | 32 } |
33 | 33 |
34 private: | 34 private: |
35 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>); | 35 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>); |
36 | 36 |
37 RefPtr<ScriptState> m_scriptState; | 37 RefPtr<ScriptState> script_state_; |
38 TraceWrapperV8Reference<v8::Function> m_callback; | 38 TraceWrapperV8Reference<v8::Function> m_callback; |
39 }; | 39 }; |
40 | 40 |
41 template <> | 41 template <> |
42 struct NativeValueTraits<{{cpp_class}}> : public NativeValueTraitsBase<{{cpp_cla
ss}}> { | 42 struct NativeValueTraits<{{cpp_class}}> : public NativeValueTraitsBase<{{cpp_cla
ss}}> { |
43 {{exported}}static {{cpp_class}}* NativeValue(v8::Isolate*, v8::Local<v8::Valu
e>, ExceptionState&); | 43 {{exported}}static {{cpp_class}}* NativeValue(v8::Isolate*, v8::Local<v8::Valu
e>, ExceptionState&); |
44 }; | 44 }; |
45 | 45 |
46 } // namespace blink | 46 } // namespace blink |
47 | 47 |
48 #endif // {{cpp_class}}_h | 48 #endif // {{cpp_class}}_h |
49 | 49 |
50 {% endfilter %}{# format_blink_cpp_source_code #} | 50 {% endfilter %}{# format_blink_cpp_source_code #} |
OLD | NEW |