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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp

Issue 2460563002: [Bindings] Reformat methods.cpp.tmpl (2/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/V8TestInterfaceConstructor3.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp
index 4d2317dd1911c249e2f2cb9c088f927ae2923672..6c0c9536e245edfc4dac0adcc239d3fd53249639 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceConstructor3.cpp
@@ -49,22 +49,21 @@ static_assert(
namespace TestInterfaceConstructor3V8Internal {
-static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- if (UNLIKELY(info.Length() < 1)) {
- V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceConstructor3", ExceptionMessages::notEnoughArguments(1, info.Length())));
- return;
- }
-
- V8StringResource<> stringArg;
- stringArg = info[0];
- if (!stringArg.prepare())
- return;
-
- TestInterfaceConstructor3* impl = TestInterfaceConstructor3::create(stringArg);
- v8::Local<v8::Object> wrapper = info.Holder();
- wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3::wrapperTypeInfo, wrapper);
- v8SetReturnValue(info, wrapper);
+static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ if (UNLIKELY(info.Length() < 1)) {
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToConstruct("TestInterfaceConstructor3", ExceptionMessages::notEnoughArguments(1, info.Length())));
+ return;
+ }
+
+ V8StringResource<> stringArg;
+ stringArg = info[0];
+ if (!stringArg.prepare())
+ return;
+
+ TestInterfaceConstructor3* impl = TestInterfaceConstructor3::create(stringArg);
+ v8::Local<v8::Object> wrapper = info.Holder();
+ wrapper = impl->associateWithWrapper(info.GetIsolate(), &V8TestInterfaceConstructor3::wrapperTypeInfo, wrapper);
+ v8SetReturnValue(info, wrapper);
}
} // namespace TestInterfaceConstructor3V8Internal

Powered by Google App Engine
This is Rietveld 408576698