| 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 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 40 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 41 | 41 |
| 42 V8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl))
; | 42 V8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl))
; |
| 43 } | 43 } |
| 44 | 44 |
| 45 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) { | 45 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c
onst v8::FunctionCallbackInfo<v8::Value>& info) { |
| 46 v8::Isolate* isolate = info.GetIsolate(); | 46 v8::Isolate* isolate = info.GetIsolate(); |
| 47 ALLOW_UNUSED_LOCAL(isolate); | 47 ALLOW_UNUSED_LOCAL(isolate); |
| 48 | 48 |
| 49 v8::Local<v8::Object> holder = info.Holder(); | 49 v8::Local<v8::Object> holder = info.Holder(); |
| 50 ALLOW_UNUSED_LOCAL(holder); |
| 51 |
| 50 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 52 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 51 | 53 |
| 52 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terface", "partial4LongAttribute"); | 54 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terface", "partial4LongAttribute"); |
| 53 | 55 |
| 54 // Prepare the value to be set. | 56 // Prepare the value to be set. |
| 55 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); | 57 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); |
| 56 if (exceptionState.HadException()) | 58 if (exceptionState.HadException()) |
| 57 return; | 59 return; |
| 58 | 60 |
| 59 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); | 61 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); |
| 60 } | 62 } |
| 61 | 63 |
| 62 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) { | 64 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) { |
| 63 V8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute()
); | 65 V8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute()
); |
| 64 } | 66 } |
| 65 | 67 |
| 66 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) { | 68 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 67 v8::Isolate* isolate = info.GetIsolate(); | 69 v8::Isolate* isolate = info.GetIsolate(); |
| 68 ALLOW_UNUSED_LOCAL(isolate); | 70 ALLOW_UNUSED_LOCAL(isolate); |
| 69 | 71 |
| 72 v8::Local<v8::Object> holder = info.Holder(); |
| 73 ALLOW_UNUSED_LOCAL(holder); |
| 74 |
| 70 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terface", "partial4StaticLongAttribute"); | 75 ExceptionState exceptionState(isolate, ExceptionState::kSetterContext, "TestIn
terface", "partial4StaticLongAttribute"); |
| 71 | 76 |
| 72 // Prepare the value to be set. | 77 // Prepare the value to be set. |
| 73 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); | 78 int32_t cppValue = NativeValueTraits<IDLLong>::NativeValue(info.GetIsolate(),
v8Value, exceptionState, kNormalConversion); |
| 74 if (exceptionState.HadException()) | 79 if (exceptionState.HadException()) |
| 75 return; | 80 return; |
| 76 | 81 |
| 77 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); | 82 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); |
| 78 } | 83 } |
| 79 | 84 |
| (...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 510 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 515 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 511 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 516 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 512 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 517 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 513 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 518 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 514 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 519 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 515 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 520 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 516 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 521 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 517 } | 522 } |
| 518 | 523 |
| 519 } // namespace blink | 524 } // namespace blink |
| OLD | NEW |