InspectorBackendStub.js [plain text]
if (!window.InspectorBackend) {
WebInspector.InspectorBackendStub = function()
{
this._searchingForNode = false;
this._attachedWindowHeight = 0;
this._debuggerEnabled = true;
this._profilerEnabled = true;
this._resourceTrackingEnabled = false;
this._timelineEnabled = false;
}
WebInspector.InspectorBackendStub.prototype = {
wrapCallback: function(func)
{
return func;
},
platform: function()
{
return "mac-leopard";
},
port: function()
{
return "unknown";
},
closeWindow: function()
{
this._windowVisible = false;
},
attach: function()
{
},
detach: function()
{
},
storeLastActivePanel: function(panel)
{
},
clearMessages: function()
{
},
searchingForNode: function()
{
return this._searchingForNode;
},
search: function(sourceRow, query)
{
},
toggleNodeSearch: function()
{
this._searchingForNode = !this._searchingForNode;
},
setAttachedWindowHeight: function(height)
{
},
moveByUnrestricted: function(x, y)
{
},
getResourceContent: function(callId, identifier)
{
WebInspector.didGetResourceContent(callId, "");
},
highlightDOMNode: function(node)
{
},
hideDOMNodeHighlight: function()
{
},
inspectedWindow: function()
{
return window;
},
loaded: function()
{
},
localizedStringsURL: function()
{
return undefined;
},
windowUnloading: function()
{
return false;
},
hiddenPanels: function()
{
return "";
},
debuggerEnabled: function()
{
return this._debuggerEnabled;
},
enableResourceTracking: function()
{
this._resourceTrackingEnabled = true;
WebInspector.resourceTrackingWasEnabled();
},
disableResourceTracking: function()
{
this._resourceTrackingEnabled = false;
WebInspector.resourceTrackingWasDisabled();
},
resourceTrackingEnabled: function()
{
return this._resourceTrackingEnabled;
},
enableDebugger: function()
{
this._debuggerEnabled = true;
},
disableDebugger: function()
{
this._debuggerEnabled = false;
},
addBreakpoint: function(sourceID, line, condition)
{
},
removeBreakpoint: function(sourceID, line)
{
},
updateBreakpoint: function(sourceID, line, condition)
{
},
pauseInDebugger: function()
{
},
pauseOnExceptionsState: function()
{
return 0;
},
setPauseOnExceptionsState: function(value)
{
},
resumeDebugger: function()
{
},
profilerEnabled: function()
{
return true;
},
enableProfiler: function()
{
this._profilerEnabled = true;
},
disableProfiler: function()
{
this._profilerEnabled = false;
},
startProfiling: function()
{
},
stopProfiling: function()
{
},
getProfileHeaders: function(callId)
{
WebInspector.didGetProfileHeaders(callId, []);
},
getProfile: function(callId, uid)
{
if (WebInspector.__fullProfiles && (uid in WebInspector.__fullProfiles))
{
WebInspector.didGetProfile(callId, WebInspector.__fullProfiles[uid]);
}
},
takeHeapSnapshot: function()
{
},
databaseTableNames: function(database)
{
return [];
},
stepIntoStatementInDebugger: function()
{
},
stepOutOfFunctionInDebugger: function()
{
},
stepOverStatementInDebugger: function()
{
},
saveFrontendSettings: function()
{
},
dispatchOnInjectedScript: function()
{
},
releaseWrapperObjectGroup: function()
{
},
setInjectedScriptSource: function()
{
}
}
InspectorBackend = new WebInspector.InspectorBackendStub();
}