Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(140)

Unified Diff: Source/WebCore/inspector/front-end/ScriptsPanel.js

Issue 7034027: Merge 86768 - 2011-05-18 Pavel Feldman <pfeldman@google.com> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/WebCore/inspector/front-end/RemoteObject.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/WebCore/inspector/front-end/ScriptsPanel.js
===================================================================
--- Source/WebCore/inspector/front-end/ScriptsPanel.js (revision 86772)
+++ Source/WebCore/inspector/front-end/ScriptsPanel.js (working copy)
@@ -358,6 +358,32 @@
selectedCallFrame.evaluate(code, objectGroup, includeCommandLineAPI, callback);
},
+ getSelectedCallFrameVariables: function(callback)
+ {
+ var result = { this: true };
+
+ var selectedCallFrame = this._presentationModel.selectedCallFrame;
+ if (!selectedCallFrame)
+ callback(result);
+
+ var pendingRequests = 0;
+
+ function propertiesCollected(properties)
+ {
+ for (var i = 0; properties && i < properties.length; ++i)
+ result[properties[i].name] = true;
+ if (--pendingRequests == 0)
+ callback(result);
+ }
+
+ for (var i = 0; i < selectedCallFrame.scopeChain.length; ++i) {
+ var scope = selectedCallFrame.scopeChain[i];
+ var object = WebInspector.RemoteObject.fromPayload(scope.object);
+ pendingRequests++;
+ object.getAllProperties(propertiesCollected);
+ }
+ },
+
_debuggerPaused: function(event)
{
var callFrames = event.data.callFrames;
« no previous file with comments | « Source/WebCore/inspector/front-end/RemoteObject.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698