| 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. | 5 // This file has been auto-generated by code_generator_v8.py. |
| 6 // DO NOT MODIFY! | 6 // DO NOT MODIFY! |
| 7 | 7 |
| 8 // This file has been generated from the Jinja2 template in | 8 // This file has been generated from the Jinja2 template in |
| 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl | 9 // third_party/WebKit/Source/bindings/templates/partial_interface.cpp.tmpl |
| 10 | 10 |
| 11 // clang-format off | 11 // clang-format off |
| 12 #include "V8TestInterfacePartial.h" | 12 #include "V8TestInterfacePartial.h" |
| 13 | 13 |
| 14 #include "bindings/core/v8/ExceptionState.h" | 14 #include "bindings/core/v8/ExceptionState.h" |
| 15 #include "bindings/core/v8/IDLTypes.h" |
| 15 #include "bindings/core/v8/ScriptPromise.h" | 16 #include "bindings/core/v8/ScriptPromise.h" |
| 16 #include "bindings/core/v8/ScriptState.h" | 17 #include "bindings/core/v8/ScriptState.h" |
| 18 #include "bindings/core/v8/V8BindingForIDLTypes.h" |
| 17 #include "bindings/core/v8/V8DOMConfiguration.h" | 19 #include "bindings/core/v8/V8DOMConfiguration.h" |
| 18 #include "bindings/core/v8/V8Document.h" | 20 #include "bindings/core/v8/V8Document.h" |
| 19 #include "bindings/core/v8/V8Node.h" | 21 #include "bindings/core/v8/V8Node.h" |
| 20 #include "bindings/core/v8/V8ObjectConstructor.h" | 22 #include "bindings/core/v8/V8ObjectConstructor.h" |
| 21 #include "bindings/core/v8/V8TestInterface.h" | 23 #include "bindings/core/v8/V8TestInterface.h" |
| 22 #include "bindings/tests/idls/modules/TestInterfacePartial3Implementation.h" | 24 #include "bindings/tests/idls/modules/TestInterfacePartial3Implementation.h" |
| 23 #include "bindings/tests/idls/modules/TestInterfacePartial4.h" | 25 #include "bindings/tests/idls/modules/TestInterfacePartial4.h" |
| 24 #include "core/dom/Document.h" | 26 #include "core/dom/Document.h" |
| 25 #include "core/origin_trials/OriginTrials.h" | 27 #include "core/origin_trials/OriginTrials.h" |
| 26 #include "platform/RuntimeEnabledFeatures.h" | 28 #include "platform/RuntimeEnabledFeatures.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 39 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl))
; | 41 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl))
; |
| 40 } | 42 } |
| 41 | 43 |
| 42 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) { | 44 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) { |
| 43 v8::Local<v8::Object> holder = info.Holder(); | 45 v8::Local<v8::Object> holder = info.Holder(); |
| 44 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 46 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 45 | 47 |
| 46 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partial4LongAttribute"); | 48 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partial4LongAttribute"); |
| 47 | 49 |
| 48 // Prepare the value to be set. | 50 // Prepare the value to be set. |
| 49 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep
tionState); | 51 int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(),
v8Value, exceptionState, NormalConversion); |
| 50 if (exceptionState.hadException()) | 52 if (exceptionState.hadException()) |
| 51 return; | 53 return; |
| 52 | 54 |
| 53 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); | 55 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); |
| 54 } | 56 } |
| 55 | 57 |
| 56 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) { | 58 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) { |
| 57 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute()
); | 59 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute()
); |
| 58 } | 60 } |
| 59 | 61 |
| 60 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) { | 62 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 61 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partial4StaticLongAttribute"); | 63 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partial4StaticLongAttribute"); |
| 62 | 64 |
| 63 // Prepare the value to be set. | 65 // Prepare the value to be set. |
| 64 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep
tionState); | 66 int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(),
v8Value, exceptionState, NormalConversion); |
| 65 if (exceptionState.hadException()) | 67 if (exceptionState.hadException()) |
| 66 return; | 68 return; |
| 67 | 69 |
| 68 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); | 70 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); |
| 69 } | 71 } |
| 70 | 72 |
| 71 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
Value>& info) { | 73 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
| 72 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 74 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 73 | 75 |
| 74 V8StringResource<> value; | 76 V8StringResource<> value; |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 453 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 455 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 454 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 456 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 455 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 457 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 456 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 458 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 457 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 459 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 458 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 460 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 459 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 461 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 460 } | 462 } |
| 461 | 463 |
| 462 } // namespace blink | 464 } // namespace blink |
| OLD | NEW |