| 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 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) { | 37 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo<
v8::Value>& info) { |
| 38 v8::Local<v8::Object> holder = info.Holder(); | 38 v8::Local<v8::Object> holder = info.Holder(); |
| 39 | 39 |
| 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(); |
| 47 ALLOW_UNUSED_LOCAL(isolate); |
| 48 |
| 46 v8::Local<v8::Object> holder = info.Holder(); | 49 v8::Local<v8::Object> holder = info.Holder(); |
| 47 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); | 50 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); |
| 48 | 51 |
| 49 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partial4LongAttribute"); | 52 ExceptionState exceptionState(isolate, ExceptionState::SetterContext, "TestInt
erface", "partial4LongAttribute"); |
| 50 | 53 |
| 51 // Prepare the value to be set. | 54 // Prepare the value to be set. |
| 52 int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(),
v8Value, exceptionState, NormalConversion); | 55 int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(),
v8Value, exceptionState, NormalConversion); |
| 53 if (exceptionState.hadException()) | 56 if (exceptionState.hadException()) |
| 54 return; | 57 return; |
| 55 | 58 |
| 56 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); | 59 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); |
| 57 } | 60 } |
| 58 | 61 |
| 59 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) { | 62 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac
kInfo<v8::Value>& info) { |
| 60 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute()
); | 63 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute()
); |
| 61 } | 64 } |
| 62 | 65 |
| 63 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) { | 66 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va
lue, const v8::FunctionCallbackInfo<v8::Value>& info) { |
| 64 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext
, "TestInterface", "partial4StaticLongAttribute"); | 67 v8::Isolate* isolate = info.GetIsolate(); |
| 68 ALLOW_UNUSED_LOCAL(isolate); |
| 69 |
| 70 ExceptionState exceptionState(isolate, ExceptionState::SetterContext, "TestInt
erface", "partial4StaticLongAttribute"); |
| 65 | 71 |
| 66 // Prepare the value to be set. | 72 // Prepare the value to be set. |
| 67 int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(),
v8Value, exceptionState, NormalConversion); | 73 int32_t cppValue = NativeValueTraits<IDLLong>::nativeValue(info.GetIsolate(),
v8Value, exceptionState, NormalConversion); |
| 68 if (exceptionState.hadException()) | 74 if (exceptionState.hadException()) |
| 69 return; | 75 return; |
| 70 | 76 |
| 71 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); | 77 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); |
| 72 } | 78 } |
| 73 | 79 |
| 74 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
Value>& info) { | 80 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
Value>& info) { |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 481 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 487 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 482 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 488 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T
estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 483 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); | 489 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf
ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo
adMethod); |
| 484 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); | 490 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface
(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth
od); |
| 485 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); | 491 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt
erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial
OverloadMethod); |
| 486 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 492 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte
rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 487 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 493 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te
stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 488 } | 494 } |
| 489 | 495 |
| 490 } // namespace blink | 496 } // namespace blink |
| OLD | NEW |