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

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

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/V8TestTypedefs.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
index 6fa60ced749a913b7e99c2e55589eac7e79d7f32..733699669ed8c30bc737f9a25cd6c5d014ca564f 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestTypedefs.cpp
@@ -75,7 +75,7 @@ static void uLongLongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, cons
// Prepare the value to be set.
unsigned long long cppValue = toUInt64(info.GetIsolate(), v8Value, NormalConversion, exceptionState);
if (exceptionState.hadException())
- return;
+ return;
impl->setULongLongAttribute(cppValue);
}
@@ -111,7 +111,7 @@ static void domStringOrDoubleOrNullAttributeAttributeSetter(v8::Local<v8::Value>
StringOrDouble cppValue;
V8StringOrDouble::toImpl(info.GetIsolate(), v8Value, cppValue, UnionTypeConversionMode::Nullable, exceptionState);
if (exceptionState.hadException())
- return;
+ return;
impl->setDomStringOrDoubleOrNullAttribute(cppValue);
}
@@ -140,7 +140,7 @@ static void voidMethodArrayOfLongsArgMethod(const v8::FunctionCallbackInfo<v8::V
}
arrayOfLongsArg = toImplArray<Vector<int>>(info[0], 1, info.GetIsolate(), exceptionState);
if (exceptionState.hadException())
- return;
+ return;
impl->voidMethodArrayOfLongsArg(arrayOfLongsArg);
}
@@ -163,11 +163,11 @@ static void voidMethodFloatArgStringArgMethod(const v8::FunctionCallbackInfo<v8:
V8StringResource<> stringArg;
floatArg = toRestrictedFloat(info.GetIsolate(), info[0], exceptionState);
if (exceptionState.hadException())
- return;
+ return;
stringArg = info[1];
if (!stringArg.prepare())
- return;
+ return;
impl->voidMethodFloatArgStringArg(floatArg, stringArg);
}
@@ -212,7 +212,7 @@ static void uLongLongMethodTestInterfaceEmptyTypeSequenceArgMethod(const v8::Fun
HeapVector<Member<TestInterfaceEmpty>> testInterfaceEmptyTypeSequenceArg;
testInterfaceEmptyTypeSequenceArg = (toMemberNativeArray<TestInterfaceEmpty>(info[0], 1, info.GetIsolate(), exceptionState));
if (exceptionState.hadException())
- return;
+ return;
v8SetReturnValue(info, static_cast<double>(impl->uLongLongMethodTestInterfaceEmptyTypeSequenceArg(testInterfaceEmptyTypeSequenceArg)));
}
@@ -258,7 +258,7 @@ static void arrayOfStringsMethodArrayOfStringsArgMethod(const v8::FunctionCallba
Vector<String> arrayOfStringsArg;
arrayOfStringsArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState);
if (exceptionState.hadException())
- return;
+ return;
v8SetReturnValue(info, toV8(impl->arrayOfStringsMethodArrayOfStringsArg(arrayOfStringsArg), info.Holder(), info.GetIsolate()));
}
@@ -280,7 +280,7 @@ static void stringArrayMethodStringArrayArgMethod(const v8::FunctionCallbackInfo
Vector<String> stringArrayArg;
stringArrayArg = toImplArray<Vector<String>>(info[0], 1, info.GetIsolate(), exceptionState);
if (exceptionState.hadException())
- return;
+ return;
v8SetReturnValue(info, toV8(impl->stringArrayMethodStringArrayArg(stringArrayArg), info.Holder(), info.GetIsolate()));
}
@@ -298,7 +298,7 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) {
V8StringResource<> stringArg;
stringArg = info[0];
if (!stringArg.prepare())
- return;
+ return;
TestTypedefs* impl = TestTypedefs::create(stringArg);
v8::Local<v8::Object> wrapper = info.Holder();

Powered by Google App Engine
This is Rietveld 408576698