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

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface2Partial.cpp

Issue 2452403002: [Bindings] Reformat template files (4/4) (Closed)
Patch Set: Rebase Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 // clang-format off 7 // clang-format off
8 #include "V8TestInterface2Partial.h" 8 #include "V8TestInterface2Partial.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 18 matching lines...) Expand all
29 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 29 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
30 30
31 if (UNLIKELY(info.Length() < 1)) { 31 if (UNLIKELY(info.Length() < 1)) {
32 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile dToExecute("voidMethodPartial1", "TestInterface2", ExceptionMessages::notEnoughA rguments(1, info.Length()))); 32 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile dToExecute("voidMethodPartial1", "TestInterface2", ExceptionMessages::notEnoughA rguments(1, info.Length())));
33 return; 33 return;
34 } 34 }
35 35
36 V8StringResource<> value; 36 V8StringResource<> value;
37 value = info[0]; 37 value = info[0];
38 if (!value.prepare()) 38 if (!value.prepare())
39 return; 39 return;
40 40
41 TestInterface2Partial::voidMethodPartial1(*impl, value); 41 TestInterface2Partial::voidMethodPartial1(*impl, value);
42 } 42 }
43 43
44 void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { 44 void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
45 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); 45 TestInterface2PartialV8Internal::voidMethodPartial1Method(info);
46 } 46 }
47 47
48 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) { 48 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>& info) {
49 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); 49 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder());
50 50
51 if (UNLIKELY(info.Length() < 1)) { 51 if (UNLIKELY(info.Length() < 1)) {
52 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile dToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEnoughA rguments(1, info.Length()))); 52 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::faile dToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEnoughA rguments(1, info.Length())));
53 return; 53 return;
54 } 54 }
55 55
56 V8StringResource<> value; 56 V8StringResource<> value;
57 value = info[0]; 57 value = info[0];
58 if (!value.prepare()) 58 if (!value.prepare())
59 return; 59 return;
60 60
61 TestInterface2Partial2::voidMethodPartial2(*impl, value); 61 TestInterface2Partial2::voidMethodPartial2(*impl, value);
62 } 62 }
63 63
64 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) { 64 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>& info) {
65 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); 65 TestInterface2PartialV8Internal::voidMethodPartial2Method(info);
66 } 66 }
67 67
68 } // namespace TestInterface2PartialV8Internal 68 } // namespace TestInterface2PartialV8Internal
69 69
(...skipping 20 matching lines...) Expand all
90 } 90 }
91 91
92 void V8TestInterface2Partial::initialize() { 92 void V8TestInterface2Partial::initialize() {
93 // Should be invoked from ModulesInitializer. 93 // Should be invoked from ModulesInitializer.
94 V8TestInterface2::updateWrapperTypeInfo( 94 V8TestInterface2::updateWrapperTypeInfo(
95 &V8TestInterface2Partial::installV8TestInterface2Template, 95 &V8TestInterface2Partial::installV8TestInterface2Template,
96 nullptr); 96 nullptr);
97 } 97 }
98 98
99 } // namespace blink 99 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698