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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
index 01d16818e927f107392de725487e740a539e92d1..457dfe7b743785b1bcf59b26175506a0cdd5eacf 100644
--- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
@@ -96,303 +96,282 @@ void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba
TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAttributeSetter(v8Value, info);
}
-static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare())
- return;
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare())
+ return;
- TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value);
+ TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value);
}
-static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- bool isArityError = false;
- switch (std::min(1, info.Length())) {
+static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ bool isArityError = false;
+ switch (std::min(1, info.Length())) {
case 0:
- break;
+ break;
case 1:
- if (true) {
- voidMethodPartialOverload3Method(info);
- return;
- }
- break;
+ if (true) {
+ voidMethodPartialOverload3Method(info);
+ return;
+ }
+ break;
default:
- isArityError = true;
- }
+ isArityError = true;
+ }
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "voidMethodPartialOverload");
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "voidMethodPartialOverload");
- if (isArityError) {
- }
- exceptionState.throwTypeError("No function was found that matched the signature provided.");
+ if (isArityError) {
+ }
+ exceptionState.throwTypeError("No function was found that matched the signature provided.");
}
-static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare())
- return;
+static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare())
+ return;
- TestInterfacePartial3Implementation::staticVoidMethodPartialOverload(value);
+ TestInterfacePartial3Implementation::staticVoidMethodPartialOverload(value);
}
-static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- bool isArityError = false;
- switch (std::min(1, info.Length())) {
+static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ bool isArityError = false;
+ switch (std::min(1, info.Length())) {
case 0:
- break;
+ break;
case 1:
- if (true) {
- staticVoidMethodPartialOverload2Method(info);
- return;
- }
- break;
+ if (true) {
+ staticVoidMethodPartialOverload2Method(info);
+ return;
+ }
+ break;
default:
- isArityError = true;
- }
+ isArityError = true;
+ }
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "staticVoidMethodPartialOverload");
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "staticVoidMethodPartialOverload");
- if (isArityError) {
- }
- exceptionState.throwTypeError("No function was found that matched the signature provided.");
+ if (isArityError) {
+ }
+ exceptionState.throwTypeError("No function was found that matched the signature provided.");
}
-static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "promiseMethodPartialOverload");
- ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
+static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "promiseMethodPartialOverload");
+ ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- Document* document;
- document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
- if (!document) {
- exceptionState.throwTypeError("parameter 1 is not of type 'Document'.");
+ Document* document;
+ document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
+ if (!document) {
+ exceptionState.throwTypeError("parameter 1 is not of type 'Document'.");
- return;
- }
+ return;
+ }
- v8SetReturnValue(info, TestInterfacePartial3Implementation::promiseMethodPartialOverload(*impl, document).v8Value());
+ v8SetReturnValue(info, TestInterfacePartial3Implementation::promiseMethodPartialOverload(*impl, document).v8Value());
}
-static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- bool isArityError = false;
- switch (std::min(1, info.Length())) {
+static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ bool isArityError = false;
+ switch (std::min(1, info.Length())) {
case 0:
- break;
+ break;
case 1:
- if (V8Document::hasInstance(info[0], info.GetIsolate())) {
- promiseMethodPartialOverload3Method(info);
- return;
- }
- break;
+ if (V8Document::hasInstance(info[0], info.GetIsolate())) {
+ promiseMethodPartialOverload3Method(info);
+ return;
+ }
+ break;
default:
- isArityError = true;
- }
+ isArityError = true;
+ }
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "promiseMethodPartialOverload");
- ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "promiseMethodPartialOverload");
+ ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
- if (isArityError) {
- }
- exceptionState.throwTypeError("No function was found that matched the signature provided.");
+ if (isArityError) {
+ }
+ exceptionState.throwTypeError("No function was found that matched the signature provided.");
}
-static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "staticPromiseMethodPartialOverload");
- ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
+static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "staticPromiseMethodPartialOverload");
+ ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare(exceptionState))
- return;
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare(exceptionState))
+ return;
- v8SetReturnValue(info, TestInterfacePartial3Implementation::staticPromiseMethodPartialOverload(value).v8Value());
+ v8SetReturnValue(info, TestInterfacePartial3Implementation::staticPromiseMethodPartialOverload(value).v8Value());
}
-static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- bool isArityError = false;
- switch (std::min(1, info.Length())) {
+static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ bool isArityError = false;
+ switch (std::min(1, info.Length())) {
case 0:
- break;
+ break;
case 1:
- if (true) {
- staticPromiseMethodPartialOverload2Method(info);
- return;
- }
- break;
+ if (true) {
+ staticPromiseMethodPartialOverload2Method(info);
+ return;
+ }
+ break;
default:
- isArityError = true;
- }
+ isArityError = true;
+ }
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "staticPromiseMethodPartialOverload");
- ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "staticPromiseMethodPartialOverload");
+ ExceptionToRejectPromiseScope rejectPromiseScope(info, exceptionState);
- if (isArityError) {
- }
- exceptionState.throwTypeError("No function was found that matched the signature provided.");
+ if (isArityError) {
+ }
+ exceptionState.throwTypeError("No function was found that matched the signature provided.");
}
-static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare())
- return;
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare())
+ return;
- TestInterfacePartial3Implementation::partial2VoidMethod(*impl, value);
+ TestInterfacePartial3Implementation::partial2VoidMethod(*impl, value);
}
-static void partial2VoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+static void partial2VoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- Node* node;
- node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
- if (!node) {
- V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("partial2VoidMethod", "TestInterface", "parameter 1 is not of type 'Node'."));
+ Node* node;
+ node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]);
+ if (!node) {
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("partial2VoidMethod", "TestInterface", "parameter 1 is not of type 'Node'."));
- return;
- }
+ return;
+ }
- TestInterfacePartial3Implementation::partial2VoidMethod(*impl, node);
+ TestInterfacePartial3Implementation::partial2VoidMethod(*impl, node);
}
-static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- bool isArityError = false;
- switch (std::min(1, info.Length())) {
+static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ bool isArityError = false;
+ switch (std::min(1, info.Length())) {
case 0:
- break;
+ break;
case 1:
- if (V8Node::hasInstance(info[0], info.GetIsolate())) {
- partial2VoidMethod3Method(info);
- return;
- }
- if (true) {
- partial2VoidMethod2Method(info);
- return;
- }
- break;
+ if (V8Node::hasInstance(info[0], info.GetIsolate())) {
+ partial2VoidMethod3Method(info);
+ return;
+ }
+ if (true) {
+ partial2VoidMethod2Method(info);
+ return;
+ }
+ break;
default:
- isArityError = true;
- }
+ isArityError = true;
+ }
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "partial2VoidMethod");
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "partial2VoidMethod");
- if (isArityError) {
- }
- exceptionState.throwTypeError("No function was found that matched the signature provided.");
+ if (isArityError) {
+ }
+ exceptionState.throwTypeError("No function was found that matched the signature provided.");
}
-static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "partialVoidTestEnumModulesArgMethod");
+static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "partialVoidTestEnumModulesArgMethod");
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- if (UNLIKELY(info.Length() < 1)) {
- exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
- return;
- }
+ if (UNLIKELY(info.Length() < 1)) {
+ exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, info.Length()));
+ return;
+ }
- V8StringResource<> arg;
- arg = info[0];
- if (!arg.prepare())
- return;
- const char* validArgValues[] = {
- "EnumModulesValue1",
- "EnumModulesValue2",
- };
- if (!isValidEnum(arg, validArgValues, WTF_ARRAY_LENGTH(validArgValues), "TestEnumModules", exceptionState)) {
- return;
- }
+ V8StringResource<> arg;
+ arg = info[0];
+ if (!arg.prepare())
+ return;
+ const char* validArgValues[] = {
+ "EnumModulesValue1",
+ "EnumModulesValue2",
+ };
+ if (!isValidEnum(arg, validArgValues, WTF_ARRAY_LENGTH(validArgValues), "TestEnumModules", exceptionState)) {
+ return;
+ }
- TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*impl, arg);
+ TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*impl, arg);
}
-void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMethodMethod(info);
+void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgMethodMethod(info);
}
-static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare())
- return;
+static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare())
+ return;
- TestInterfacePartial3Implementation::partial2StaticVoidMethod(value);
+ TestInterfacePartial3Implementation::partial2StaticVoidMethod(value);
}
-static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- bool isArityError = false;
- switch (std::min(1, info.Length())) {
+static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ bool isArityError = false;
+ switch (std::min(1, info.Length())) {
case 0:
- break;
+ break;
case 1:
- if (true) {
- partial2StaticVoidMethod2Method(info);
- return;
- }
- break;
+ if (true) {
+ partial2StaticVoidMethod2Method(info);
+ return;
+ }
+ break;
default:
- isArityError = true;
- }
+ isArityError = true;
+ }
- ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "partial2StaticVoidMethod");
+ ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionContext, "TestInterface", "partial2StaticVoidMethod");
- if (isArityError) {
- }
- exceptionState.throwTypeError("No function was found that matched the signature provided.");
+ if (isArityError) {
+ }
+ exceptionState.throwTypeError("No function was found that matched the signature provided.");
}
-static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+static void unscopableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- TestInterfacePartial3Implementation::unscopableVoidMethod(*impl);
+ TestInterfacePartial3Implementation::unscopableVoidMethod(*impl);
}
-void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info);
+void unscopableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementationPartialV8Internal::unscopableVoidMethodMethod(info);
}
-static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
+static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
- TestInterfacePartial4::partial4VoidMethod(*impl);
+ TestInterfacePartial4::partial4VoidMethod(*impl);
}
-void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
+void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info);
}
-static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfacePartial4::partial4StaticVoidMethod();
+static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfacePartial4::partial4StaticVoidMethod();
}
-void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(info);
+void partial4StaticVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterfaceImplementationPartialV8Internal::partial4StaticVoidMethodMethod(info);
}
} // namespace TestInterfaceImplementationPartialV8Internal
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698