Lines Matching refs:scope
187 InjectedScript::ContextScope scope(m_inspector, m_contextGroupId, in wrapObject() local
189 Response response = scope.initialize(); in wrapObject()
195 response = scope.injectedScript()->wrapObject( in wrapObject()
279 InjectedScript::ContextScope scope(m_inspector, m_session->contextGroupId(), in evaluate() local
281 response = scope.initialize(); in evaluate()
287 if (silent.fromMaybe(false)) scope.ignoreExceptionsAndMuteConsole(); in evaluate()
288 if (userGesture.fromMaybe(false)) scope.pretendUserGesture(); in evaluate()
290 if (includeCommandLineAPI.fromMaybe(false)) scope.installCommandLineAPI(); in evaluate()
292 bool evalIsDisabled = !scope.context()->IsCodeGenerationFromStringsAllowed(); in evaluate()
294 if (evalIsDisabled) scope.context()->AllowCodeGenerationFromStrings(true); in evaluate()
298 if (m_inspector->compileScript(scope.context(), expression, String16()) in evaluate()
300 maybeResultValue = m_inspector->runCompiledScript(scope.context(), script); in evaluate()
303 if (evalIsDisabled) scope.context()->AllowCodeGenerationFromStrings(false); in evaluate()
307 response = scope.initialize(); in evaluate()
313 if (!awaitPromise.fromMaybe(false) || scope.tryCatch().HasCaught()) { in evaluate()
314 wrapEvaluateResultAsync(scope.injectedScript(), maybeResultValue, in evaluate()
315 scope.tryCatch(), objectGroup.fromMaybe(""), in evaluate()
321 m_inspector, scope.context(), maybeResultValue, in evaluate()
323 scope.injectedScript()->context()->contextId(), objectGroup.fromMaybe(""), in evaluate()
332 InjectedScript::ObjectScope scope(m_inspector, m_session->contextGroupId(), in awaitPromise() local
334 Response response = scope.initialize(); in awaitPromise()
340 m_inspector, scope.context(), scope.object(), in awaitPromise()
342 scope.injectedScript()->context()->contextId(), scope.objectGroupName(), in awaitPromise()
353 InjectedScript::ObjectScope scope(m_inspector, m_session->contextGroupId(), in callFunctionOn() local
355 Response response = scope.initialize(); in callFunctionOn()
370 response = scope.injectedScript()->resolveCallArgument(arguments->get(i), in callFunctionOn()
380 if (silent.fromMaybe(false)) scope.ignoreExceptionsAndMuteConsole(); in callFunctionOn()
381 if (userGesture.fromMaybe(false)) scope.pretendUserGesture(); in callFunctionOn()
386 ->compileScript(scope.context(), "(" + expression + ")", String16()) in callFunctionOn()
389 m_inspector->runCompiledScript(scope.context(), functionScript); in callFunctionOn()
393 response = scope.initialize(); in callFunctionOn()
399 if (scope.tryCatch().HasCaught()) { in callFunctionOn()
400 wrapEvaluateResultAsync(scope.injectedScript(), maybeFunctionValue, in callFunctionOn()
401 scope.tryCatch(), scope.objectGroupName(), false, in callFunctionOn()
415 functionValue.As<v8::Function>(), scope.context(), scope.object(), argc, in callFunctionOn()
419 response = scope.initialize(); in callFunctionOn()
425 if (!awaitPromise.fromMaybe(false) || scope.tryCatch().HasCaught()) { in callFunctionOn()
426 wrapEvaluateResultAsync(scope.injectedScript(), maybeResultValue, in callFunctionOn()
427 scope.tryCatch(), scope.objectGroupName(), in callFunctionOn()
434 m_inspector, scope.context(), maybeResultValue, in callFunctionOn()
437 scope.injectedScript()->context()->contextId(), scope.objectGroupName(), in callFunctionOn()
452 InjectedScript::ObjectScope scope(m_inspector, m_session->contextGroupId(), in getProperties() local
454 Response response = scope.initialize(); in getProperties()
457 scope.ignoreExceptionsAndMuteConsole(); in getProperties()
458 if (!scope.object()->IsObject()) in getProperties()
461 v8::Local<v8::Object> object = scope.object().As<v8::Object>(); in getProperties()
462 response = scope.injectedScript()->getProperties( in getProperties()
463 object, scope.objectGroupName(), ownProperties.fromMaybe(false), in getProperties()
471 ->internalProperties(scope.context(), scope.object()) in getProperties()
480 if (!propertiesArray->Get(scope.context(), i).ToLocal(&name) || in getProperties()
485 if (!propertiesArray->Get(scope.context(), i + 1).ToLocal(&value)) in getProperties()
488 protocol::Response response = scope.injectedScript()->wrapObject( in getProperties()
489 value, scope.objectGroupName(), false, false, &wrappedValue); in getProperties()
503 InjectedScript::ObjectScope scope(m_inspector, m_session->contextGroupId(), in releaseObject() local
505 Response response = scope.initialize(); in releaseObject()
507 scope.injectedScript()->releaseObject(objectId); in releaseObject()
545 InjectedScript::ContextScope scope(m_inspector, m_session->contextGroupId(), in compileScript() local
547 response = scope.initialize(); in compileScript()
552 bool isOk = m_inspector->compileScript(scope.context(), expression, sourceURL) in compileScript()
556 if (scope.tryCatch().HasCaught()) { in compileScript()
557 response = scope.injectedScript()->createExceptionDetails( in compileScript()
558 scope.tryCatch(), String16(), false, exceptionDetails); in compileScript()
602 InjectedScript::ContextScope scope(m_inspector, m_session->contextGroupId(), in runScript() local
604 response = scope.initialize(); in runScript()
610 if (silent.fromMaybe(false)) scope.ignoreExceptionsAndMuteConsole(); in runScript()
620 if (includeCommandLineAPI.fromMaybe(false)) scope.installCommandLineAPI(); in runScript()
623 m_inspector->runCompiledScript(scope.context(), script); in runScript()
627 response = scope.initialize(); in runScript()
633 if (!awaitPromise.fromMaybe(false) || scope.tryCatch().HasCaught()) { in runScript()
634 wrapEvaluateResultAsync(scope.injectedScript(), maybeResultValue, in runScript()
635 scope.tryCatch(), objectGroup.fromMaybe(""), in runScript()
641 m_inspector, scope.context(), maybeResultValue.ToLocalChecked(), in runScript()
644 scope.injectedScript()->context()->contextId(), objectGroup.fromMaybe(""), in runScript()