summaryrefslogtreecommitdiffstats
path: root/src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp')
-rw-r--r--src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp47
1 files changed, 40 insertions, 7 deletions
diff --git a/src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp b/src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp
index c8a2f5c..3bdfa97 100644
--- a/src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp
+++ b/src/3rdparty/webkit/WebCore/inspector/InspectorFrontend.cpp
@@ -83,8 +83,13 @@ void InspectorFrontend::addMessageToConsole(const ScriptObject& messageObj, cons
} else if (!wrappedArguments.isEmpty()) {
for (unsigned i = 0; i < wrappedArguments.size(); ++i)
function->appendArgument(m_inspectorController->wrapObject(wrappedArguments[i]));
- } else
- function->appendArgument(message);
+ } else {
+ // FIXME: avoid manual wrapping here.
+ ScriptObject textWrapper = ScriptObject::createNew(m_scriptState);
+ textWrapper.set("type", "string");
+ textWrapper.set("description", message);
+ function->appendArgument(textWrapper);
+ }
function->call();
}
@@ -399,13 +404,41 @@ void InspectorFrontend::selectDatabase(Database* database)
#endif
#if ENABLE(DOM_STORAGE)
-void InspectorFrontend::selectDOMStorage(Storage* storage)
+void InspectorFrontend::selectDOMStorage(int storageId)
{
OwnPtr<ScriptFunctionCall> function(newFunctionCall("selectDOMStorage"));
- ScriptObject quarantinedObject;
- if (!getQuarantinedScriptObject(storage, quarantinedObject))
- return;
- function->appendArgument(quarantinedObject);
+ function->appendArgument(storageId);
+ function->call();
+}
+
+void InspectorFrontend::didGetDOMStorageEntries(int callId, const ScriptArray& entries)
+{
+ OwnPtr<ScriptFunctionCall> function(newFunctionCall("didGetDOMStorageEntries"));
+ function->appendArgument(callId);
+ function->appendArgument(entries);
+ function->call();
+}
+
+void InspectorFrontend::didSetDOMStorageItem(int callId, bool success)
+{
+ OwnPtr<ScriptFunctionCall> function(newFunctionCall("didSetDOMStorageItem"));
+ function->appendArgument(callId);
+ function->appendArgument(success);
+ function->call();
+}
+
+void InspectorFrontend::didRemoveDOMStorageItem(int callId, bool success)
+{
+ OwnPtr<ScriptFunctionCall> function(newFunctionCall("didRemoveDOMStorageItem"));
+ function->appendArgument(callId);
+ function->appendArgument(success);
+ function->call();
+}
+
+void InspectorFrontend::updateDOMStorage(int storageId)
+{
+ OwnPtr<ScriptFunctionCall> function(newFunctionCall("updateDOMStorage"));
+ function->appendArgument(storageId);
function->call();
}
#endif