コード例 #1
0
void InspectorFrontend::parsedScriptSource(const JSC::SourceCode& source)
{
    OwnPtr<ScriptFunctionCall> function(newFunctionCall("parsedScriptSource"));
    function->appendArgument(JSC::UString(JSC::UString::from(source.provider()->asID())));
    function->appendArgument(source.provider()->url());
    function->appendArgument(JSC::UString(source.data(), source.length()));
    function->appendArgument(source.firstLine());
    function->call();
}
コード例 #2
0
void InspectorFrontend::failedToParseScriptSource(const JSC::SourceCode& source, int errorLine, const JSC::UString& errorMessage)
{
    OwnPtr<ScriptFunctionCall> function(newFunctionCall("failedToParseScriptSource"));
    function->appendArgument(source.provider()->url());
    function->appendArgument(JSC::UString(source.data(), source.length()));
    function->appendArgument(source.firstLine());
    function->appendArgument(errorLine);
    function->appendArgument(errorMessage);
    function->call();
}
コード例 #3
0
void InspectorFrontend::parsedScriptSource(const JSC::SourceCode& source)
{
    ScriptFunctionCall function(m_scriptState, m_webInspector, "dispatch"); 
    function.appendArgument("parsedScriptSource");
    function.appendArgument(JSC::UString(JSC::UString::from(source.provider()->asID())));
    function.appendArgument(source.provider()->url());
    function.appendArgument(JSC::UString(source.data(), source.length()));
    function.appendArgument(source.firstLine());
    function.call();
}
コード例 #4
0
void InspectorFrontend::failedToParseScriptSource(const JSC::SourceCode& source, int errorLine, const JSC::UString& errorMessage)
{
    ScriptFunctionCall function(m_scriptState, m_webInspector, "dispatch"); 
    function.appendArgument("failedToParseScriptSource");
    function.appendArgument(source.provider()->url());
    function.appendArgument(JSC::UString(source.data(), source.length()));
    function.appendArgument(source.firstLine());
    function.appendArgument(errorLine);
    function.appendArgument(errorMessage);
    function.call();
}