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

Side by Side Diff: Source/bindings/templates/callback_interface.h

Issue 954683002: InlinedVisitor: Migrate bindings to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY! 5 // This file has been auto-generated by {{code_generator}}. DO NOT MODIFY!
6 6
7 #ifndef {{v8_class}}_h 7 #ifndef {{v8_class}}_h
8 #define {{v8_class}}_h 8 #define {{v8_class}}_h
9 9
10 {% filter conditional(conditional_string) %} 10 {% filter conditional(conditional_string) %}
11 {% for filename in header_includes %} 11 {% for filename in header_includes %}
12 #include "{{filename}}" 12 #include "{{filename}}"
13 {% endfor %} 13 {% endfor %}
14 14
15 namespace blink { 15 namespace blink {
16 16
17 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback { 17 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback {
18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN({{v8_class}}); 18 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN({{v8_class}});
19 public: 19 public:
20 static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* s criptState) 20 static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* s criptState)
21 { 21 {
22 return new {{v8_class}}(callback, scriptState); 22 return new {{v8_class}}(callback, scriptState);
23 } 23 }
24 24
25 virtual ~{{v8_class}}(); 25 virtual ~{{v8_class}}();
26 26
27 virtual void trace(Visitor*) override; 27 DECLARE_VIRTUAL_TRACE();
28 28
29 {% for method in methods %} 29 {% for method in methods %}
30 virtual {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override; 30 virtual {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override;
31 {% endfor %} 31 {% endfor %}
32 private: 32 private:
33 {{v8_class}}(v8::Local<v8::Function>, ScriptState*); 33 {{v8_class}}(v8::Local<v8::Function>, ScriptState*);
34 34
35 ScopedPersistent<v8::Function> m_callback; 35 ScopedPersistent<v8::Function> m_callback;
36 RefPtr<ScriptState> m_scriptState; 36 RefPtr<ScriptState> m_scriptState;
37 }; 37 };
38 38
39 } 39 }
40 {% endfilter %} 40 {% endfilter %}
41 #endif // {{v8_class}}_h 41 #endif // {{v8_class}}_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698