| 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 "config.h" | 7 #include "config.h" |
| 8 #if ENABLE(CONDITION) | 8 #if ENABLE(CONDITION) |
| 9 #include "V8TestInterfacePartial.h" | 9 #include "V8TestInterfacePartial.h" |
| 10 | 10 |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); | 347 v8::Local<v8::Context> contextInPrivateScript = toV8Context(frame, DOMWrappe
rWorld::privateScriptIsolatedWorld()); |
| 348 if (contextInPrivateScript.IsEmpty()) | 348 if (contextInPrivateScript.IsEmpty()) |
| 349 return false; | 349 return false; |
| 350 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); | 350 ScriptState* scriptState = ScriptState::from(contextInPrivateScript); |
| 351 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); | 351 ScriptState* scriptStateInUserScript = ScriptState::forMainWorld(frame); |
| 352 if (!scriptState->executionContext()) | 352 if (!scriptState->executionContext()) |
| 353 return false; | 353 return false; |
| 354 | 354 |
| 355 ScriptState::Scope scope(scriptState); | 355 ScriptState::Scope scope(scriptState); |
| 356 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); | 356 v8::Local<v8::Value> holder = toV8(holderImpl, scriptState->context()->Globa
l(), scriptState->isolate()); |
| 357 if (holder.IsEmpty()) |
| 358 return false; |
| 357 | 359 |
| 358 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); | 360 v8::Local<v8::Value> valueHandle = v8::Integer::New(scriptState->isolate(),
value); |
| 359 v8::Local<v8::Value> argv[] = { valueHandle }; | 361 v8::Local<v8::Value> argv[] = { valueHandle }; |
| 360 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr
iptState->context()->Global(), scriptState->isolate()); | 362 ExceptionState exceptionState(ExceptionState::ExecutionContext, "shortMethod
WithShortArgumentImplementedInPrivateScript", "TestInterfaceImplementation", scr
iptState->context()->Global(), scriptState->isolate()); |
| 361 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortA
rgumentImplementedInPrivateScript", holder, 1, argv); | 363 v8::Local<v8::Value> v8Value = PrivateScriptRunner::runDOMMethod(scriptState
, scriptStateInUserScript, "TestInterfaceImplementation", "shortMethodWithShortA
rgumentImplementedInPrivateScript", holder, 1, argv); |
| 362 if (v8Value.IsEmpty()) | 364 if (v8Value.IsEmpty()) |
| 363 return false; | 365 return false; |
| 364 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex
ceptionState); | 366 int cppValue = toInt16(scriptState->isolate(), v8Value, NormalConversion, ex
ceptionState); |
| 365 if (exceptionState.throwIfNeeded()) | 367 if (exceptionState.throwIfNeeded()) |
| 366 return false; | 368 return false; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 378 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); | 380 V8TestInterface::registerVoidMethodPartialOverloadMethodForPartialInterface(
&TestInterfaceImplementationPartialV8Internal::voidMethodPartialOverloadMethod); |
| 379 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); | 381 V8TestInterface::registerStaticVoidMethodPartialOverloadMethodForPartialInte
rface(&TestInterfaceImplementationPartialV8Internal::staticVoidMethodPartialOver
loadMethod); |
| 380 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); | 382 V8TestInterface::registerPromiseMethodPartialOverloadMethodForPartialInterfa
ce(&TestInterfaceImplementationPartialV8Internal::promiseMethodPartialOverloadMe
thod); |
| 381 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); | 383 V8TestInterface::registerStaticPromiseMethodPartialOverloadMethodForPartialI
nterface(&TestInterfaceImplementationPartialV8Internal::staticPromiseMethodParti
alOverloadMethod); |
| 382 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); | 384 V8TestInterface::registerPartial2VoidMethodMethodForPartialInterface(&TestIn
terfaceImplementationPartialV8Internal::partial2VoidMethodMethod); |
| 383 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); | 385 V8TestInterface::registerPartial2StaticVoidMethodMethodForPartialInterface(&
TestInterfaceImplementationPartialV8Internal::partial2StaticVoidMethodMethod); |
| 384 } | 386 } |
| 385 | 387 |
| 386 } // namespace blink | 388 } // namespace blink |
| 387 #endif // ENABLE(CONDITION) | 389 #endif // ENABLE(CONDITION) |
| OLD | NEW |