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

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

Issue 2304453004: [Bindings] Expose V8 callback functions in generated code (Closed)
Patch Set: Expose call Callback functions in binding scripts Created 4 years, 3 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
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "V8TestInterfacePartial.h" 7 #include "V8TestInterfacePartial.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/PrivateScriptRunner.h" 10 #include "bindings/core/v8/PrivateScriptRunner.h"
(...skipping 18 matching lines...) Expand all
29 29
30 namespace TestInterfaceImplementationPartialV8Internal { 30 namespace TestInterfaceImplementationPartialV8Internal {
31 31
32 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info) 32 static void partial4LongAttributeAttributeGetter(const v8::FunctionCallbackInfo< v8::Value>& info)
33 { 33 {
34 v8::Local<v8::Object> holder = info.Holder(); 34 v8::Local<v8::Object> holder = info.Holder();
35 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 35 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
36 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl )); 36 v8SetReturnValueInt(info, TestInterfacePartial4::partial4LongAttribute(*impl ));
37 } 37 }
38 38
39 static void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 39 void partial4LongAttributeAttributeGetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
40 { 40 {
41 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Getter(info); 41 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Getter(info);
42 } 42 }
43 43
44 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)
45 { 45 {
46 v8::Local<v8::Object> holder = info.Holder(); 46 v8::Local<v8::Object> holder = info.Holder();
47 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4LongAt tribute", "TestInterface", holder, info.GetIsolate()); 47 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4LongAt tribute", "TestInterface", holder, info.GetIsolate());
48 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder); 48 TestInterfaceImplementation* impl = V8TestInterface::toImpl(holder);
49 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 49 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
50 if (exceptionState.hadException()) 50 if (exceptionState.hadException())
51 return; 51 return;
52 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue); 52 TestInterfacePartial4::setPartial4LongAttribute(*impl, cppValue);
53 } 53 }
54 54
55 static void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallb ackInfo<v8::Value>& info) 55 void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallbackInfo <v8::Value>& info)
56 { 56 {
57 v8::Local<v8::Value> v8Value = info[0]; 57 v8::Local<v8::Value> v8Value = info[0];
58 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info); 58 TestInterfaceImplementationPartialV8Internal::partial4LongAttributeAttribute Setter(v8Value, info);
59 } 59 }
60 60
61 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info) 61 static void partial4StaticLongAttributeAttributeGetter(const v8::FunctionCallbac kInfo<v8::Value>& info)
62 { 62 {
63 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute ()); 63 v8SetReturnValueInt(info, TestInterfacePartial4::partial4StaticLongAttribute ());
64 } 64 }
65 65
66 static void partial4StaticLongAttributeAttributeGetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 66 void partial4StaticLongAttributeAttributeGetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
67 { 67 {
68 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeGetter(info); 68 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeGetter(info);
69 } 69 }
70 70
71 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info) 71 static void partial4StaticLongAttributeAttributeSetter(v8::Local<v8::Value> v8Va lue, const v8::FunctionCallbackInfo<v8::Value>& info)
72 { 72 {
73 v8::Local<v8::Object> holder = info.Holder(); 73 v8::Local<v8::Object> holder = info.Holder();
74 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4Static LongAttribute", "TestInterface", holder, info.GetIsolate()); 74 ExceptionState exceptionState(ExceptionState::SetterContext, "partial4Static LongAttribute", "TestInterface", holder, info.GetIsolate());
75 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState); 75 int cppValue = toInt32(info.GetIsolate(), v8Value, NormalConversion, excepti onState);
76 if (exceptionState.hadException()) 76 if (exceptionState.hadException())
77 return; 77 return;
78 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue); 78 TestInterfacePartial4::setPartial4StaticLongAttribute(cppValue);
79 } 79 }
80 80
81 static void partial4StaticLongAttributeAttributeSetterCallback(const v8::Functio nCallbackInfo<v8::Value>& info) 81 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba ckInfo<v8::Value>& info)
82 { 82 {
83 v8::Local<v8::Value> v8Value = info[0]; 83 v8::Local<v8::Value> v8Value = info[0];
84 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeSetter(v8Value, info); 84 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt ributeSetter(v8Value, info);
85 } 85 }
86 86
87 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info) 87 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8:: Value>& info)
88 { 88 {
89 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); 89 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder());
90 V8StringResource<> value; 90 V8StringResource<> value;
91 { 91 {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
435 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); 435 V8TestInterfacePartial::preparePrototypeAndInterfaceObject);
436 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); 436 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface( &TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod);
437 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod); 437 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver loadMethod);
438 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod); 438 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe thod);
439 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod); 439 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti alOverloadMethod);
440 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); 440 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn terfaceImplementationPartialV8Internal::partial2VoidMethodMethod);
441 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); 441 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(& TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod);
442 } 442 }
443 443
444 } // namespace blink 444 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/bindings/tests/results/modules/V8TestInterface5.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698