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

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

Issue 2675943003: Remove custom left overs from object grouping (Closed)
Patch Set: Rebase (0 changes) Created 3 years, 10 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 {% 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 13 matching lines...) Expand all
24 24
25 DECLARE_TRACE(); 25 DECLARE_TRACE();
26 DECLARE_TRACE_WRAPPERS(); 26 DECLARE_TRACE_WRAPPERS();
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 void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object >& wrapper) {
35 DCHECK(!m_callback.isEmpty());
36 m_callback.setReference(wrapper, isolate);
37 }
38
39 private: 34 private:
40 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>); 35 {{cpp_class}}(ScriptState*, v8::Local<v8::Function>);
41 36
42 RefPtr<ScriptState> m_scriptState; 37 RefPtr<ScriptState> m_scriptState;
43 TraceWrapperV8Reference<v8::Function> m_callback; 38 TraceWrapperV8Reference<v8::Function> m_callback;
44 }; 39 };
45 40
46 } // namespace blink 41 } // namespace blink
47 42
48 #endif // {{cpp_class}}_h 43 #endif // {{cpp_class}}_h
49 44
50 {% endfilter %}{# format_blink_cpp_source_code #} 45 {% endfilter %}{# format_blink_cpp_source_code #}
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698