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

Unified Diff: third_party/WebKit/Source/bindings/templates/callback_interface.h.tmpl

Issue 2454133002: [Bindings] Reformat template files for Interface (1/4) (Closed)
Patch Set: Rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/bindings/templates/callback_interface.h.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/callback_interface.h.tmpl b/third_party/WebKit/Source/bindings/templates/callback_interface.h.tmpl
index b94d2e920cb90bb073b841fba1085c0874c35972..728b7bff85b1f65e2777e4ae84215cdbee38f296 100644
--- a/third_party/WebKit/Source/bindings/templates/callback_interface.h.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/callback_interface.h.tmpl
@@ -11,28 +11,27 @@
namespace blink {
class {{v8_class}} final : public {{cpp_class}}, public ActiveDOMCallback {
- USING_GARBAGE_COLLECTED_MIXIN({{v8_class}});
-public:
- static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* scriptState)
- {
- return new {{v8_class}}(callback, scriptState);
- }
+ USING_GARBAGE_COLLECTED_MIXIN({{v8_class}});
+ public:
+ static {{v8_class}}* create(v8::Local<v8::Function> callback, ScriptState* scriptState) {
+ return new {{v8_class}}(callback, scriptState);
+ }
- ~{{v8_class}}() override;
+ ~{{v8_class}}() override;
- DECLARE_VIRTUAL_TRACE();
+ DECLARE_VIRTUAL_TRACE();
{% for method in methods %}
- {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override;
+ {{method.cpp_type}} {{method.name}}({{method.argument_declarations | join(', ')}}) override;
{% endfor %}
-private:
- {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*);
+ private:
+ {{exported}}{{v8_class}}(v8::Local<v8::Function>, ScriptState*);
- ScopedPersistent<v8::Function> m_callback;
- RefPtr<ScriptState> m_scriptState;
+ ScopedPersistent<v8::Function> m_callback;
+ RefPtr<ScriptState> m_scriptState;
};
}
-#endif // {{v8_class}}_h
+#endif // {{v8_class}}_h
{% endfilter %}{# format_blink_cpp_source_code #}

Powered by Google App Engine
This is Rietveld 408576698