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. 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 29 matching lines...) Expand all Loading... |
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.throwIfNeeded()) | 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 static void partial4LongAttributeAttributeSetterCallback(const v8::FunctionCallb
ackInfo<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 static void partial4StaticLongAttributeAttributeGetterCallback(const v8::Functio
nCallbackInfo<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.throwIfNeeded()) | 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 static void partial4StaticLongAttributeAttributeSetterCallback(const v8::Functio
nCallbackInfo<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 |
(...skipping 18 matching lines...) Expand all Loading... |
105 case 1: | 105 case 1: |
106 if (true) { | 106 if (true) { |
107 voidMethodPartialOverload3Method(info); | 107 voidMethodPartialOverload3Method(info); |
108 return; | 108 return; |
109 } | 109 } |
110 break; | 110 break; |
111 default: | 111 default: |
112 break; | 112 break; |
113 } | 113 } |
114 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 114 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
115 exceptionState.throwIfNeeded(); | |
116 return; | 115 return; |
117 } | 116 } |
118 | 117 |
119 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) | 118 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) |
120 { | 119 { |
121 V8StringResource<> value; | 120 V8StringResource<> value; |
122 { | 121 { |
123 value = info[0]; | 122 value = info[0]; |
124 if (!value.prepare()) | 123 if (!value.prepare()) |
125 return; | 124 return; |
(...skipping 10 matching lines...) Expand all Loading... |
136 case 1: | 135 case 1: |
137 if (true) { | 136 if (true) { |
138 staticVoidMethodPartialOverload2Method(info); | 137 staticVoidMethodPartialOverload2Method(info); |
139 return; | 138 return; |
140 } | 139 } |
141 break; | 140 break; |
142 default: | 141 default: |
143 break; | 142 break; |
144 } | 143 } |
145 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 144 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
146 exceptionState.throwIfNeeded(); | |
147 return; | 145 return; |
148 } | 146 } |
149 | 147 |
150 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) | 148 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) |
151 { | 149 { |
152 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 150 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
153 Document* document; | 151 Document* document; |
154 { | 152 { |
155 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 153 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
156 if (!document) { | 154 if (!document) { |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 } | 257 } |
260 if (true) { | 258 if (true) { |
261 partial2VoidMethod2Method(info); | 259 partial2VoidMethod2Method(info); |
262 return; | 260 return; |
263 } | 261 } |
264 break; | 262 break; |
265 default: | 263 default: |
266 break; | 264 break; |
267 } | 265 } |
268 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 266 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
269 exceptionState.throwIfNeeded(); | |
270 return; | 267 return; |
271 } | 268 } |
272 | 269 |
273 static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 270 static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
274 { | 271 { |
275 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
TestEnumModulesArgMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 272 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
TestEnumModulesArgMethod", "TestInterface", info.Holder(), info.GetIsolate()); |
276 if (UNLIKELY(info.Length() < 1)) { | 273 if (UNLIKELY(info.Length() < 1)) { |
277 setMinimumArityTypeError(exceptionState, 1, info.Length()); | 274 setMinimumArityTypeError(exceptionState, 1, info.Length()); |
278 exceptionState.throwIfNeeded(); | |
279 return; | 275 return; |
280 } | 276 } |
281 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 277 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
282 V8StringResource<> arg; | 278 V8StringResource<> arg; |
283 { | 279 { |
284 arg = info[0]; | 280 arg = info[0]; |
285 if (!arg.prepare()) | 281 if (!arg.prepare()) |
286 return; | 282 return; |
287 const char* validValues[] = { | 283 const char* validValues[] = { |
288 "EnumModulesValue1", | 284 "EnumModulesValue1", |
289 "EnumModulesValue2", | 285 "EnumModulesValue2", |
290 }; | 286 }; |
291 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestE
numModules", exceptionState)) { | 287 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestE
numModules", exceptionState)) { |
292 exceptionState.throwIfNeeded(); | |
293 return; | 288 return; |
294 } | 289 } |
295 } | 290 } |
296 TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*im
pl, arg); | 291 TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*im
pl, arg); |
297 } | 292 } |
298 | 293 |
299 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 294 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
300 { | 295 { |
301 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); | 296 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); |
302 } | 297 } |
(...skipping 18 matching lines...) Expand all Loading... |
321 case 1: | 316 case 1: |
322 if (true) { | 317 if (true) { |
323 partial2StaticVoidMethod2Method(info); | 318 partial2StaticVoidMethod2Method(info); |
324 return; | 319 return; |
325 } | 320 } |
326 break; | 321 break; |
327 default: | 322 default: |
328 break; | 323 break; |
329 } | 324 } |
330 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 325 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
331 exceptionState.throwIfNeeded(); | |
332 return; | 326 return; |
333 } | 327 } |
334 | 328 |
335 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 329 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
336 { | 330 { |
337 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 331 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
338 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); | 332 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); |
339 } | 333 } |
340 | 334 |
341 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 335 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
440 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 434 &V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
441 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 435 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
442 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 436 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
443 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 437 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
444 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 438 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
445 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 439 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
446 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 440 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
447 } | 441 } |
448 | 442 |
449 } // namespace blink | 443 } // namespace blink |
OLD | NEW |