OLD | NEW |
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 #include "V8TestInterface2Partial.h" | 7 #include "V8TestInterface2Partial.h" |
8 | 8 |
9 #include "bindings/core/v8/ExceptionState.h" | 9 #include "bindings/core/v8/ExceptionState.h" |
10 #include "bindings/core/v8/V8DOMConfiguration.h" | 10 #include "bindings/core/v8/V8DOMConfiguration.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 26 static void voidMethodPartial1Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
27 { | 27 { |
28 if (UNLIKELY(info.Length() < 1)) { | 28 if (UNLIKELY(info.Length() < 1)) { |
29 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodPartial1", "TestInterface2", 1, info.Length()), info
.GetIsolate()); | 29 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodPartial1", "TestInterface2", 1, info.Length()), info
.GetIsolate()); |
30 return; | 30 return; |
31 } | 31 } |
32 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 32 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
33 V8StringResource<> value; | 33 V8StringResource<> value; |
34 { | 34 { |
35 value = info[0]; | 35 value = info[0]; |
36 if (!value.prepare()) | 36 if (!value.prepare()) { |
37 return; | 37 return; |
| 38 } |
38 } | 39 } |
39 TestInterface2Partial::voidMethodPartial1(*impl, value); | 40 TestInterface2Partial::voidMethodPartial1(*impl, value); |
40 } | 41 } |
41 | 42 |
42 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 43 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
43 { | 44 { |
44 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); | 45 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); |
45 } | 46 } |
46 | 47 |
47 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 48 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
48 { | 49 { |
49 if (UNLIKELY(info.Length() < 1)) { | 50 if (UNLIKELY(info.Length() < 1)) { |
50 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodPartial2", "TestInterface2", 1, info.Length()), info
.GetIsolate()); | 51 V8ThrowException::throwException(createMinimumArityTypeErrorForMethod(in
fo.GetIsolate(), "voidMethodPartial2", "TestInterface2", 1, info.Length()), info
.GetIsolate()); |
51 return; | 52 return; |
52 } | 53 } |
53 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 54 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
54 V8StringResource<> value; | 55 V8StringResource<> value; |
55 { | 56 { |
56 value = info[0]; | 57 value = info[0]; |
57 if (!value.prepare()) | 58 if (!value.prepare()) { |
58 return; | 59 return; |
| 60 } |
59 } | 61 } |
60 TestInterface2Partial2::voidMethodPartial2(*impl, value); | 62 TestInterface2Partial2::voidMethodPartial2(*impl, value); |
61 } | 63 } |
62 | 64 |
63 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 65 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
64 { | 66 { |
65 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); | 67 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); |
66 } | 68 } |
67 | 69 |
68 } // namespace TestInterface2PartialV8Internal | 70 } // namespace TestInterface2PartialV8Internal |
(...skipping 28 matching lines...) Expand all Loading... |
97 | 99 |
98 void V8TestInterface2Partial::initialize() | 100 void V8TestInterface2Partial::initialize() |
99 { | 101 { |
100 // Should be invoked from ModulesInitializer. | 102 // Should be invoked from ModulesInitializer. |
101 V8TestInterface2::updateWrapperTypeInfo( | 103 V8TestInterface2::updateWrapperTypeInfo( |
102 &V8TestInterface2Partial::installV8TestInterface2Template, | 104 &V8TestInterface2Partial::installV8TestInterface2Template, |
103 &V8TestInterface2Partial::preparePrototypeAndInterfaceObject); | 105 &V8TestInterface2Partial::preparePrototypeAndInterfaceObject); |
104 } | 106 } |
105 | 107 |
106 } // namespace blink | 108 } // namespace blink |
OLD | NEW |