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" |
11 #include "bindings/core/v8/V8GCController.h" | 11 #include "bindings/core/v8/V8GCController.h" |
12 #include "bindings/core/v8/V8ObjectConstructor.h" | 12 #include "bindings/core/v8/V8ObjectConstructor.h" |
13 #include "bindings/core/v8/V8TestInterface2.h" | 13 #include "bindings/core/v8/V8TestInterface2.h" |
14 #include "bindings/tests/idls/modules/TestInterface2Partial.h" | 14 #include "bindings/tests/idls/modules/TestInterface2Partial.h" |
15 #include "bindings/tests/idls/modules/TestInterface2Partial2.h" | 15 #include "bindings/tests/idls/modules/TestInterface2Partial2.h" |
16 #include "core/dom/Document.h" | 16 #include "core/dom/Document.h" |
17 #include "core/dom/Element.h" | 17 #include "core/dom/Element.h" |
18 #include "platform/RuntimeEnabledFeatures.h" | 18 #include "platform/RuntimeEnabledFeatures.h" |
19 #include "wtf/GetPtr.h" | 19 #include "wtf/GetPtr.h" |
20 #include "wtf/RefPtr.h" | 20 #include "wtf/RefPtr.h" |
21 | 21 |
22 namespace blink { | 22 namespace blink { |
23 | 23 |
24 namespace TestInterface2PartialV8Internal { | 24 namespace TestInterface2PartialV8Internal { |
25 | 25 |
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(info.GetIsolate(), createMinimumArityTy
peErrorForMethod(info.GetIsolate(), "voidMethodPartial1", "TestInterface2", 1, i
nfo.Length())); | 29 throwMinimumArityErrorForMethod(info.GetIsolate(), "TestInterface2", "vo
idMethodPartial1", 1, info.Length()); |
30 return; | 30 return; |
31 } | 31 } |
| 32 |
32 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 33 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
| 34 |
33 V8StringResource<> value; | 35 V8StringResource<> value; |
34 { | 36 { |
35 value = info[0]; | 37 value = info[0]; |
36 if (!value.prepare()) | 38 if (!value.prepare()) |
37 return; | 39 return; |
38 } | 40 } |
39 TestInterface2Partial::voidMethodPartial1(*impl, value); | 41 TestInterface2Partial::voidMethodPartial1(*impl, value); |
40 } | 42 } |
41 | 43 |
42 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 44 static void voidMethodPartial1MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
43 { | 45 { |
44 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); | 46 TestInterface2PartialV8Internal::voidMethodPartial1Method(info); |
45 } | 47 } |
46 | 48 |
47 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 49 static void voidMethodPartial2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
48 { | 50 { |
49 if (UNLIKELY(info.Length() < 1)) { | 51 if (UNLIKELY(info.Length() < 1)) { |
50 V8ThrowException::throwException(info.GetIsolate(), createMinimumArityTy
peErrorForMethod(info.GetIsolate(), "voidMethodPartial2", "TestInterface2", 1, i
nfo.Length())); | 52 throwMinimumArityErrorForMethod(info.GetIsolate(), "TestInterface2", "vo
idMethodPartial2", 1, info.Length()); |
51 return; | 53 return; |
52 } | 54 } |
| 55 |
53 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); | 56 TestInterface2* impl = V8TestInterface2::toImpl(info.Holder()); |
| 57 |
54 V8StringResource<> value; | 58 V8StringResource<> value; |
55 { | 59 { |
56 value = info[0]; | 60 value = info[0]; |
57 if (!value.prepare()) | 61 if (!value.prepare()) |
58 return; | 62 return; |
59 } | 63 } |
60 TestInterface2Partial2::voidMethodPartial2(*impl, value); | 64 TestInterface2Partial2::voidMethodPartial2(*impl, value); |
61 } | 65 } |
62 | 66 |
63 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 67 static void voidMethodPartial2MethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
(...skipping 28 matching lines...) Expand all Loading... |
92 | 96 |
93 void V8TestInterface2Partial::initialize() | 97 void V8TestInterface2Partial::initialize() |
94 { | 98 { |
95 // Should be invoked from ModulesInitializer. | 99 // Should be invoked from ModulesInitializer. |
96 V8TestInterface2::updateWrapperTypeInfo( | 100 V8TestInterface2::updateWrapperTypeInfo( |
97 &V8TestInterface2Partial::installV8TestInterface2Template, | 101 &V8TestInterface2Partial::installV8TestInterface2Template, |
98 nullptr); | 102 nullptr); |
99 } | 103 } |
100 | 104 |
101 } // namespace blink | 105 } // namespace blink |
OLD | NEW |