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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.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/modules/V8TestInterface2Partial.cpp
diff --git a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp
index 2a2d4d84c4f63bad0ce5b27e58c05c3f9d2cc8d9..71b7c9c18f340ee39e45c545439f3eaa9b93d899 100644
--- a/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp
@@ -25,48 +25,44 @@ namespace blink {
namespace TestInterface2PartialV8Internal {
-static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
+static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
- if (UNLIKELY(info.Length() < 1)) {
- V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodPartial1", "TestInterface2", ExceptionMessages::notEnoughArguments(1, info.Length())));
- return;
- }
+ if (UNLIKELY(info.Length() < 1)) {
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodPartial1", "TestInterface2", ExceptionMessages::notEnoughArguments(1, info.Length())));
+ return;
+ }
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare())
- return;
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare())
+ return;
- TestInterface2Partial::voidMethodPartial1(*impl, value);
+ TestInterface2Partial::voidMethodPartial1(*impl, value);
}
-void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterface2PartialV8Internal::voidMethodPartial1Method(info);
+void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterface2PartialV8Internal::voidMethodPartial1Method(info);
}
-static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
+static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
- if (UNLIKELY(info.Length() < 1)) {
- V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEnoughArguments(1, info.Length())));
- return;
- }
+ if (UNLIKELY(info.Length() < 1)) {
+ V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEnoughArguments(1, info.Length())));
+ return;
+ }
- V8StringResource<> value;
- value = info[0];
- if (!value.prepare())
- return;
+ V8StringResource<> value;
+ value = info[0];
+ if (!value.prepare())
+ return;
- TestInterface2Partial2::voidMethodPartial2(*impl, value);
+ TestInterface2Partial2::voidMethodPartial2(*impl, value);
}
-void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info)
-{
- TestInterface2PartialV8Internal::voidMethodPartial2Method(info);
+void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
+ TestInterface2PartialV8Internal::voidMethodPartial2Method(info);
}
} // namespace TestInterface2PartialV8Internal

Powered by Google App Engine
This is Rietveld 408576698