void InspectorFrontend::updateFocusedNode(Node* node)
{
    ScriptObject quarantinedNode;
    if (!getQuarantinedScriptObject(node, quarantinedNode))
        return;

    OwnPtr<ScriptFunctionCall> function(newFunctionCall("updateFocusedNode"));
    function->appendArgument(quarantinedNode);
    function->call();
}
void InspectorFrontend::inspectedWindowScriptObjectCleared(Frame* frame)
{
    ScriptObject domWindow;
    if (!getQuarantinedScriptObject(frame->domWindow(), domWindow))
        return;

    OwnPtr<ScriptFunctionCall> function(newFunctionCall("inspectedWindowCleared"));
    function->appendArgument(domWindow);
    function->call();
}
void InspectorDatabaseResource::bind(InspectorFrontend* frontend)
{
    if (m_scriptObjectCreated)
        return;

    ScriptObject jsonObject = frontend->newScriptObject();
    ScriptObject database;
    if (!getQuarantinedScriptObject(m_database.get(), database))
        return;
    jsonObject.set("id", m_id);
    jsonObject.set("domain", m_domain);
    jsonObject.set("name", m_name);
    jsonObject.set("version", m_version);
    if (frontend->addDatabase(jsonObject))
        m_scriptObjectCreated = true;
}