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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h

Issue 2452403002: [Bindings] Reformat template files (4/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/tests/results/core/LongCallbackFunction.h
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h b/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h
index 55f25c263f7249b8df452933ded96a420414c9bf..29474210efc7e7734db53faa064e4321310b9f39 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h
+++ b/third_party/WebKit/Source/bindings/tests/results/core/LongCallbackFunction.h
@@ -19,39 +19,35 @@ namespace blink {
class ScriptState;
-class CORE_EXPORT LongCallbackFunction final : public GarbageCollectedFinalized<LongCallbackFunction>,
- public TraceWrapperBase {
-public:
- static LongCallbackFunction* create(ScriptState* scriptState, v8::Local<v8::Function> callback)
- {
- return new LongCallbackFunction(scriptState, callback);
- }
+class CORE_EXPORT LongCallbackFunction final : public GarbageCollectedFinalized<LongCallbackFunction>, public TraceWrapperBase {
+ public:
+ static LongCallbackFunction* create(ScriptState* scriptState, v8::Local<v8::Function> callback) {
+ return new LongCallbackFunction(scriptState, callback);
+ }
- ~LongCallbackFunction() = default;
+ ~LongCallbackFunction() = default;
- DECLARE_TRACE();
- DECLARE_TRACE_WRAPPERS();
+ DECLARE_TRACE();
+ DECLARE_TRACE_WRAPPERS();
- bool call(ScriptWrappable* scriptWrappable, int num1, int num2, int& returnValue);
+ bool call(ScriptWrappable* scriptWrappable, int num1, int num2, int& returnValue);
- v8::Local<v8::Function> v8Value(v8::Isolate* isolate)
- {
- return m_callback.newLocal(isolate);
- }
+ v8::Local<v8::Function> v8Value(v8::Isolate* isolate) {
+ return m_callback.newLocal(isolate);
+ }
- void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object>& wrapper)
- {
- DCHECK(!m_callback.isEmpty());
- m_callback.setReference(wrapper, isolate);
- }
+ void setWrapperReference(v8::Isolate* isolate, const v8::Persistent<v8::Object>& wrapper) {
+ DCHECK(!m_callback.isEmpty());
+ m_callback.setReference(wrapper, isolate);
+ }
-private:
- LongCallbackFunction(ScriptState*, v8::Local<v8::Function>);
+ private:
+ LongCallbackFunction(ScriptState*, v8::Local<v8::Function>);
- RefPtr<ScriptState> m_scriptState;
- ScopedPersistent<v8::Function> m_callback;
+ RefPtr<ScriptState> m_scriptState;
+ ScopedPersistent<v8::Function> m_callback;
};
-} // namespace blink
+} // namespace blink
-#endif // LongCallbackFunction_h
+#endif // LongCallbackFunction_h

Powered by Google App Engine
This is Rietveld 408576698