| 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/GeneratedCodeHelper.h" | 10 #include "bindings/core/v8/GeneratedCodeHelper.h" |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) | 82 void partial4StaticLongAttributeAttributeSetterCallback(const v8::FunctionCallba
ckInfo<v8::Value>& info) |
| 83 { | 83 { |
| 84 v8::Local<v8::Value> v8Value = info[0]; | 84 v8::Local<v8::Value> v8Value = info[0]; |
| 85 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt
ributeSetter(v8Value, info); | 85 TestInterfaceImplementationPartialV8Internal::partial4StaticLongAttributeAtt
ributeSetter(v8Value, info); |
| 86 } | 86 } |
| 87 | 87 |
| 88 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
Value>& info) | 88 static void voidMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 89 { | 89 { |
| 90 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 90 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 91 |
| 91 V8StringResource<> value; | 92 V8StringResource<> value; |
| 92 { | 93 value = info[0]; |
| 93 value = info[0]; | 94 if (!value.prepare()) |
| 94 if (!value.prepare()) | 95 return; |
| 95 return; | 96 |
| 96 } | |
| 97 TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value)
; | 97 TestInterfacePartial3Implementation::voidMethodPartialOverload(*impl, value)
; |
| 98 } | 98 } |
| 99 | 99 |
| 100 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 100 static void voidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 101 { | 101 { |
| 102 ExceptionState exceptionState(ExceptionState::ExecutionContext, "voidMethodP
artialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 102 bool isArityError = false; |
| 103 switch (std::min(1, info.Length())) { | 103 switch (std::min(1, info.Length())) { |
| 104 case 0: | 104 case 0: |
| 105 break; | 105 break; |
| 106 case 1: | 106 case 1: |
| 107 if (true) { | 107 if (true) { |
| 108 voidMethodPartialOverload3Method(info); | 108 voidMethodPartialOverload3Method(info); |
| 109 return; | 109 return; |
| 110 } | 110 } |
| 111 break; | 111 break; |
| 112 default: | 112 default: |
| 113 break; | 113 isArityError = true; |
| 114 } |
| 115 |
| 116 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "voidMethodPartialOverload"); |
| 117 |
| 118 if (isArityError) { |
| 114 } | 119 } |
| 115 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 120 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 116 return; | |
| 117 } | 121 } |
| 118 | 122 |
| 119 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) | 123 static void staticVoidMethodPartialOverload2Method(const v8::FunctionCallbackInf
o<v8::Value>& info) |
| 120 { | 124 { |
| 121 V8StringResource<> value; | 125 V8StringResource<> value; |
| 122 { | 126 value = info[0]; |
| 123 value = info[0]; | 127 if (!value.prepare()) |
| 124 if (!value.prepare()) | 128 return; |
| 125 return; | 129 |
| 126 } | |
| 127 TestInterfacePartial3Implementation::staticVoidMethodPartialOverload(value); | 130 TestInterfacePartial3Implementation::staticVoidMethodPartialOverload(value); |
| 128 } | 131 } |
| 129 | 132 |
| 130 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) | 133 static void staticVoidMethodPartialOverloadMethod(const v8::FunctionCallbackInfo
<v8::Value>& info) |
| 131 { | 134 { |
| 132 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticVoidM
ethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 135 bool isArityError = false; |
| 133 switch (std::min(1, info.Length())) { | 136 switch (std::min(1, info.Length())) { |
| 134 case 0: | 137 case 0: |
| 135 break; | 138 break; |
| 136 case 1: | 139 case 1: |
| 137 if (true) { | 140 if (true) { |
| 138 staticVoidMethodPartialOverload2Method(info); | 141 staticVoidMethodPartialOverload2Method(info); |
| 139 return; | 142 return; |
| 140 } | 143 } |
| 141 break; | 144 break; |
| 142 default: | 145 default: |
| 143 break; | 146 isArityError = true; |
| 147 } |
| 148 |
| 149 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "staticVoidMethodPartialOverload"); |
| 150 |
| 151 if (isArityError) { |
| 144 } | 152 } |
| 145 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 153 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 146 return; | |
| 147 } | 154 } |
| 148 | 155 |
| 149 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) | 156 static void promiseMethodPartialOverload3Method(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 150 { | 157 { |
| 158 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "promiseMethodPartialOverload"); |
| 159 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 160 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio
nState); |
| 161 |
| 151 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 162 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 163 |
| 152 Document* document; | 164 Document* document; |
| 153 { | 165 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
| 154 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 166 if (!document) { |
| 155 if (!document) { | 167 exceptionState.throwTypeError("parameter 1 is not of type 'Document'."); |
| 156 v8SetReturnValue(info, ScriptPromise::rejectRaw(ScriptState::current
(info.GetIsolate()), V8ThrowException::createTypeError(info.GetIsolate(), Except
ionMessages::failedToExecute("promiseMethodPartialOverload", "TestInterface", "p
arameter 1 is not of type 'Document'.")))); | 168 |
| 157 return; | 169 return; |
| 158 } | |
| 159 } | 170 } |
| 171 |
| 160 v8SetReturnValue(info, TestInterfacePartial3Implementation::promiseMethodPar
tialOverload(*impl, document).v8Value()); | 172 v8SetReturnValue(info, TestInterfacePartial3Implementation::promiseMethodPar
tialOverload(*impl, document).v8Value()); |
| 161 } | 173 } |
| 162 | 174 |
| 163 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) | 175 static void promiseMethodPartialOverloadMethod(const v8::FunctionCallbackInfo<v8
::Value>& info) |
| 164 { | 176 { |
| 165 ExceptionState exceptionState(ExceptionState::ExecutionContext, "promiseMeth
odPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 177 bool isArityError = false; |
| 166 switch (std::min(1, info.Length())) { | 178 switch (std::min(1, info.Length())) { |
| 167 case 0: | 179 case 0: |
| 168 break; | 180 break; |
| 169 case 1: | 181 case 1: |
| 170 if (V8Document::hasInstance(info[0], info.GetIsolate())) { | 182 if (V8Document::hasInstance(info[0], info.GetIsolate())) { |
| 171 promiseMethodPartialOverload3Method(info); | 183 promiseMethodPartialOverload3Method(info); |
| 172 return; | 184 return; |
| 173 } | 185 } |
| 174 break; | 186 break; |
| 175 default: | 187 default: |
| 176 break; | 188 isArityError = true; |
| 189 } |
| 190 |
| 191 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "promiseMethodPartialOverload"); |
| 192 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 193 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio
nState); |
| 194 |
| 195 if (isArityError) { |
| 177 } | 196 } |
| 178 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 197 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 179 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | |
| 180 return; | |
| 181 } | |
| 182 | |
| 183 static void staticPromiseMethodPartialOverload2MethodPromise(const v8::FunctionC
allbackInfo<v8::Value>& info, ExceptionState& exceptionState) | |
| 184 { | |
| 185 V8StringResource<> value; | |
| 186 { | |
| 187 value = info[0]; | |
| 188 if (!value.prepare(exceptionState)) | |
| 189 return; | |
| 190 } | |
| 191 v8SetReturnValue(info, TestInterfacePartial3Implementation::staticPromiseMet
hodPartialOverload(value).v8Value()); | |
| 192 } | 198 } |
| 193 | 199 |
| 194 static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallback
Info<v8::Value>& info) | 200 static void staticPromiseMethodPartialOverload2Method(const v8::FunctionCallback
Info<v8::Value>& info) |
| 195 { | 201 { |
| 196 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 202 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "staticPromiseMethodPartialOverload"); |
| 197 staticPromiseMethodPartialOverload2MethodPromise(info, exceptionState); | 203 ScriptState* scriptState = ScriptState::forFunctionObject(info); |
| 198 if (exceptionState.hadException()) | 204 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio
nState); |
| 199 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.G
etIsolate())).v8Value()); | 205 |
| 206 V8StringResource<> value; |
| 207 value = info[0]; |
| 208 if (!value.prepare(exceptionState)) |
| 209 return; |
| 210 |
| 211 v8SetReturnValue(info, TestInterfacePartial3Implementation::staticPromiseMet
hodPartialOverload(value).v8Value()); |
| 200 } | 212 } |
| 201 | 213 |
| 202 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) | 214 static void staticPromiseMethodPartialOverloadMethod(const v8::FunctionCallbackI
nfo<v8::Value>& info) |
| 203 { | 215 { |
| 204 ExceptionState exceptionState(ExceptionState::ExecutionContext, "staticPromi
seMethodPartialOverload", "TestInterface", info.Holder(), info.GetIsolate()); | 216 bool isArityError = false; |
| 205 switch (std::min(1, info.Length())) { | 217 switch (std::min(1, info.Length())) { |
| 206 case 0: | 218 case 0: |
| 207 break; | 219 break; |
| 208 case 1: | 220 case 1: |
| 209 if (true) { | 221 if (true) { |
| 210 staticPromiseMethodPartialOverload2Method(info); | 222 staticPromiseMethodPartialOverload2Method(info); |
| 211 return; | 223 return; |
| 212 } | 224 } |
| 213 break; | 225 break; |
| 214 default: | 226 default: |
| 215 break; | 227 isArityError = true; |
| 228 } |
| 229 |
| 230 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "staticPromiseMethodPartialOverload"); |
| 231 ScriptState* scriptState = ScriptState::forReceiverObject(info); |
| 232 ExceptionToRejectPromiseScope rejectPromiseScope(info, scriptState, exceptio
nState); |
| 233 |
| 234 if (isArityError) { |
| 216 } | 235 } |
| 217 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 236 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 218 v8SetReturnValue(info, exceptionState.reject(ScriptState::current(info.GetIs
olate())).v8Value()); | |
| 219 return; | |
| 220 } | 237 } |
| 221 | 238 |
| 222 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 239 static void partial2VoidMethod2Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 223 { | 240 { |
| 224 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 241 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 242 |
| 225 V8StringResource<> value; | 243 V8StringResource<> value; |
| 226 { | 244 value = info[0]; |
| 227 value = info[0]; | 245 if (!value.prepare()) |
| 228 if (!value.prepare()) | 246 return; |
| 229 return; | 247 |
| 230 } | |
| 231 TestInterfacePartial3Implementation::partial2VoidMethod(*impl, value); | 248 TestInterfacePartial3Implementation::partial2VoidMethod(*impl, value); |
| 232 } | 249 } |
| 233 | 250 |
| 234 static void partial2VoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>&
info) | 251 static void partial2VoidMethod3Method(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 235 { | 252 { |
| 236 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 253 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 254 |
| 237 Node* node; | 255 Node* node; |
| 238 { | 256 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]); |
| 239 node = V8Node::toImplWithTypeCheck(info.GetIsolate(), info[0]); | 257 if (!node) { |
| 240 if (!node) { | 258 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f
ailedToExecute("partial2VoidMethod", "TestInterface", "parameter 1 is not of typ
e 'Node'.")); |
| 241 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage
s::failedToExecute("partial2VoidMethod", "TestInterface", "parameter 1 is not of
type 'Node'.")); | 259 |
| 242 return; | 260 return; |
| 243 } | |
| 244 } | 261 } |
| 262 |
| 245 TestInterfacePartial3Implementation::partial2VoidMethod(*impl, node); | 263 TestInterfacePartial3Implementation::partial2VoidMethod(*impl, node); |
| 246 } | 264 } |
| 247 | 265 |
| 248 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 266 static void partial2VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 249 { | 267 { |
| 250 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Voi
dMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 268 bool isArityError = false; |
| 251 switch (std::min(1, info.Length())) { | 269 switch (std::min(1, info.Length())) { |
| 252 case 0: | 270 case 0: |
| 253 break; | 271 break; |
| 254 case 1: | 272 case 1: |
| 255 if (V8Node::hasInstance(info[0], info.GetIsolate())) { | 273 if (V8Node::hasInstance(info[0], info.GetIsolate())) { |
| 256 partial2VoidMethod3Method(info); | 274 partial2VoidMethod3Method(info); |
| 257 return; | 275 return; |
| 258 } | 276 } |
| 259 if (true) { | 277 if (true) { |
| 260 partial2VoidMethod2Method(info); | 278 partial2VoidMethod2Method(info); |
| 261 return; | 279 return; |
| 262 } | 280 } |
| 263 break; | 281 break; |
| 264 default: | 282 default: |
| 265 break; | 283 isArityError = true; |
| 284 } |
| 285 |
| 286 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "partial2VoidMethod"); |
| 287 |
| 288 if (isArityError) { |
| 266 } | 289 } |
| 267 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 290 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 268 return; | |
| 269 } | 291 } |
| 270 | 292 |
| 271 static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) | 293 static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
Info<v8::Value>& info) |
| 272 { | 294 { |
| 273 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partialVoid
TestEnumModulesArgMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 295 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "partialVoidTestEnumModulesArgMethod"); |
| 296 |
| 297 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 298 |
| 274 if (UNLIKELY(info.Length() < 1)) { | 299 if (UNLIKELY(info.Length() < 1)) { |
| 275 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); | 300 exceptionState.throwTypeError(ExceptionMessages::notEnoughArguments(1, i
nfo.Length())); |
| 276 return; | 301 return; |
| 277 } | 302 } |
| 278 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 303 |
| 279 V8StringResource<> arg; | 304 V8StringResource<> arg; |
| 280 { | 305 arg = info[0]; |
| 281 arg = info[0]; | 306 if (!arg.prepare()) |
| 282 if (!arg.prepare()) | 307 return; |
| 283 return; | 308 const char* validValues[] = { |
| 284 const char* validValues[] = { | 309 "EnumModulesValue1", |
| 285 "EnumModulesValue1", | 310 "EnumModulesValue2", |
| 286 "EnumModulesValue2", | 311 }; |
| 287 }; | 312 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestEnumM
odules", exceptionState)) { |
| 288 if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues), "TestE
numModules", exceptionState)) { | 313 return; |
| 289 return; | |
| 290 } | |
| 291 } | 314 } |
| 315 |
| 292 TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*im
pl, arg); | 316 TestInterfacePartial3Implementation::partialVoidTestEnumModulesArgMethod(*im
pl, arg); |
| 293 } | 317 } |
| 294 | 318 |
| 295 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) | 319 static void partialVoidTestEnumModulesArgMethodMethodCallback(const v8::Function
CallbackInfo<v8::Value>& info) |
| 296 { | 320 { |
| 297 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); | 321 TestInterfaceImplementationPartialV8Internal::partialVoidTestEnumModulesArgM
ethodMethod(info); |
| 298 } | 322 } |
| 299 | 323 |
| 300 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) | 324 static void partial2StaticVoidMethod2Method(const v8::FunctionCallbackInfo<v8::V
alue>& info) |
| 301 { | 325 { |
| 302 V8StringResource<> value; | 326 V8StringResource<> value; |
| 303 { | 327 value = info[0]; |
| 304 value = info[0]; | 328 if (!value.prepare()) |
| 305 if (!value.prepare()) | 329 return; |
| 306 return; | 330 |
| 307 } | |
| 308 TestInterfacePartial3Implementation::partial2StaticVoidMethod(value); | 331 TestInterfacePartial3Implementation::partial2StaticVoidMethod(value); |
| 309 } | 332 } |
| 310 | 333 |
| 311 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 334 static void partial2StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 312 { | 335 { |
| 313 ExceptionState exceptionState(ExceptionState::ExecutionContext, "partial2Sta
ticVoidMethod", "TestInterface", info.Holder(), info.GetIsolate()); | 336 bool isArityError = false; |
| 314 switch (std::min(1, info.Length())) { | 337 switch (std::min(1, info.Length())) { |
| 315 case 0: | 338 case 0: |
| 316 break; | 339 break; |
| 317 case 1: | 340 case 1: |
| 318 if (true) { | 341 if (true) { |
| 319 partial2StaticVoidMethod2Method(info); | 342 partial2StaticVoidMethod2Method(info); |
| 320 return; | 343 return; |
| 321 } | 344 } |
| 322 break; | 345 break; |
| 323 default: | 346 default: |
| 324 break; | 347 isArityError = true; |
| 348 } |
| 349 |
| 350 ExceptionState exceptionState(info.GetIsolate(), ExceptionState::ExecutionCo
ntext, "TestInterface", "partial2StaticVoidMethod"); |
| 351 |
| 352 if (isArityError) { |
| 325 } | 353 } |
| 326 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); | 354 exceptionState.throwTypeError("No function was found that matched the signat
ure provided."); |
| 327 return; | |
| 328 } | 355 } |
| 329 | 356 |
| 330 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) | 357 static void unscopeableVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value
>& info) |
| 331 { | 358 { |
| 332 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 359 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 360 |
| 333 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); | 361 TestInterfacePartial3Implementation::unscopeableVoidMethod(*impl); |
| 334 } | 362 } |
| 335 | 363 |
| 336 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) | 364 static void unscopeableVoidMethodMethodCallback(const v8::FunctionCallbackInfo<v
8::Value>& info) |
| 337 { | 365 { |
| 338 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); | 366 TestInterfaceImplementationPartialV8Internal::unscopeableVoidMethodMethod(in
fo); |
| 339 } | 367 } |
| 340 | 368 |
| 341 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) | 369 static void partial4VoidMethodMethod(const v8::FunctionCallbackInfo<v8::Value>&
info) |
| 342 { | 370 { |
| 343 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); | 371 TestInterfaceImplementation* impl = V8TestInterface::toImpl(info.Holder()); |
| 372 |
| 344 TestInterfacePartial4::partial4VoidMethod(*impl); | 373 TestInterfacePartial4::partial4VoidMethod(*impl); |
| 345 } | 374 } |
| 346 | 375 |
| 347 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) | 376 static void partial4VoidMethodMethodCallback(const v8::FunctionCallbackInfo<v8::
Value>& info) |
| 348 { | 377 { |
| 349 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info)
; | 378 TestInterfaceImplementationPartialV8Internal::partial4VoidMethodMethod(info)
; |
| 350 } | 379 } |
| 351 | 380 |
| 352 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) | 381 static void partial4StaticVoidMethodMethod(const v8::FunctionCallbackInfo<v8::Va
lue>& info) |
| 353 { | 382 { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 436 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); | 465 V8TestInterfacePartial::preparePrototypeAndInterfaceObject); |
| 437 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 466 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 438 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 467 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 439 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 468 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 440 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 469 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 441 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 470 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 442 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 471 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 443 } | 472 } |
| 444 | 473 |
| 445 } // namespace blink | 474 } // namespace blink |
| OLD | NEW |