Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp

Issue 2731593003: bindings: Use fixed-size integer types in the generated code. (Closed)
Patch Set: Explain why 64-bit integers are sometimes not listed Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 28 matching lines...) Expand all
39 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ; 39 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl)) ;
40 } 40 }
41 41
42 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) { 42 static void partial4LongAttributeAttributeSetter(v8::Local<v8::Value> v8Value, c onst v8::FunctionCallbackInfo<v8::Value>& info) {
43 v8::Local<v8::Object> holder = info.Holder(); 43 v8::Local<v8::Object> holder = info.Holder();
44 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 44 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
45 45
46 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4LongAttribute"); 46 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4LongAttribute");
47 47
48 // Prepare the value to be set. 48 // Prepare the value to be set.
49 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 49 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep tionState);
50 if (exceptionState.hadException()) 50 if (exceptionState.hadException())
51 return; 51 return;
52 52
53 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 53 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
54 } 54 }
55 55
56 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) { 56 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) {
57 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() ); 57 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute() );
58 } 58 }
59 59
60 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) { 60 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) {
61 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4StaticLongAttribute"); 61 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::SetterContext , "TestInterface", "partial4StaticLongAttribute");
62 62
63 // Prepare the value to be set. 63 // Prepare the value to be set.
64 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, exception State); 64 int32_t cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excep tionState);
65 if (exceptionState.hadException()) 65 if (exceptionState.hadException())
66 return; 66 return;
67 67
68 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); 68 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
69 } 69 }
70 70
71 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) { 71 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) {
72 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 72 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
73 73
74 V8StringResource<> value; 74 V8StringResource<> value;
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
453 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 453 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
454 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 454 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(&T estInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
455 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod); 455 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInterf ace(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOverlo adMethod);
456 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od); 456 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterface (&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMeth od);
457 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod); 457 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialInt erface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodPartial OverloadMethod);
458 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 458 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestInte rfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
459 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 459 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&Te stInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
460 } 460 }
461 461
462 } // namespace blink 462 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698