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 // 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 24 matching lines...) Expand all Loading... |
35 } | 35 } |
36 | 36 |
37 V8StringResource<> value; | 37 V8StringResource<> value; |
38 value = info[0]; | 38 value = info[0]; |
39 if (!value.prepare()) | 39 if (!value.prepare()) |
40 return; | 40 return; |
41 | 41 |
42 TestInterface2Partial::voidMethodPartial1(*impl, value); | 42 TestInterface2Partial::voidMethodPartial1(*impl, value); |
43 } | 43 } |
44 | 44 |
45 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 45 void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
46 { | 46 { |
47 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); | 47 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); |
48 } | 48 } |
49 | 49 |
50 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 50 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
51 { | 51 { |
52 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 52 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
53 | 53 |
54 if (UNLIKELY(info.Length() < 1)) { | 54 if (UNLIKELY(info.Length() < 1)) { |
55 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEno
ughArguments(1, info.Length()))); | 55 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("voidMethodPartial2", "TestInterface2", ExceptionMessages::notEno
ughArguments(1, info.Length()))); |
56 return; | 56 return; |
57 } | 57 } |
58 | 58 |
59 V8StringResource<> value; | 59 V8StringResource<> value; |
60 value = info[0]; | 60 value = info[0]; |
61 if (!value.prepare()) | 61 if (!value.prepare()) |
62 return; | 62 return; |
63 | 63 |
64 TestInterface2Partial2::voidMethodPartial2(*impl, value); | 64 TestInterface2Partial2::voidMethodPartial2(*impl, value); |
65 } | 65 } |
66 | 66 |
67 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 67 void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::Value>&
info) |
68 { | 68 { |
69 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); | 69 TestInterface2PartialV8Internal::voidMethodPartial2Method(info); |
70 } | 70 } |
71 | 71 |
72 } // namespace TestInterface2PartialV8Internal | 72 } // namespace TestInterface2PartialV8Internal |
73 | 73 |
74 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { | 74 const V8DOMConfiguration::MethodConfiguration V8TestInterface2Methods[] = { |
75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me
thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype}, | 75 {"voidMethodPartial2", TestInterface2PartialV8Internal::voidMethodPartial2Me
thodCallback, 0, 1, v8::None, V8DOMConfiguration::ExposedToAllScripts, V8DOMConf
iguration::OnPrototype}, |
76 }; | 76 }; |
77 | 77 |
(...skipping 18 matching lines...) Expand all Loading... |
96 | 96 |
97 void V8TestInterface2Partial::initialize() | 97 void V8TestInterface2Partial::initialize() |
98 { | 98 { |
99 // Should be invoked from ModulesInitializer. | 99 // Should be invoked from ModulesInitializer. |
100 V8TestInterface2::updateWrapperTypeInfo( | 100 V8TestInterface2::updateWrapperTypeInfo( |
101 &V8TestInterface2Partial::installV8TestInterface2Template, | 101 &V8TestInterface2Partial::installV8TestInterface2Template, |
102 nullptr); | 102 nullptr); |
103 } | 103 } |
104 | 104 |
105 } // namespace blink | 105 } // namespace blink |
OLD | NEW |