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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 {% 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
11 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback { 11 class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback {
12 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN({{v8_class}}); 12 USING_GARBAGE_COLLECTED_MIXIN({{v8_class}});
13 public: 13 public:
14 static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* s criptState) 14 static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* s criptState)
15 { 15 {
16 return new {{v8_class}}(callback, scriptState); 16 return new {{v8_class}}(callback, scriptState);
17 } 17 }
18 18
19 ~{{v8_class}}() override; 19 ~{{v8_class}}() override;
20 20
21 DECLARE_VIRTUAL_TRACE(); 21 DECLARE_VIRTUAL_TRACE();
22 22
23 {% for method in methods %} 23 {% for method in methods %}
24 {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override; 24 {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override;
25 {% endfor %} 25 {% endfor %}
26 private: 26 private:
27 {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*); 27 {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*);
28 28
29 ScopedPersistent<v8::Function> m_callback; 29 ScopedPersistent<v8::Function> m_callback;
30 RefPtr<ScriptState> m_scriptState; 30 RefPtr<ScriptState> m_scriptState;
31 }; 31 };
32 32
33 } 33 }
34 #endif // {{v8_class}}_h 34 #endif // {{v8_class}}_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/scripts/v8_types.py ('k') | third_party/WebKit/Source/bindings/templates/methods.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698