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