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

Unified Diff: webkit/glue/devtools/js/devtools.js

Issue 202021: DevTools: repair scope view (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « no previous file | webkit/glue/devtools/js/inspector_controller_impl.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/devtools/js/devtools.js
===================================================================
--- webkit/glue/devtools/js/devtools.js (revision 25714)
+++ webkit/glue/devtools/js/devtools.js (working copy)
@@ -291,11 +291,11 @@
/*
- * @override
- * TODO(mnaganov): Restore l10n when it will be agreed that it is needed.
- */
-WebInspector.UIString = function(string) {
- return String.vsprintf(string, Array.prototype.slice.call(arguments, 1));
+ * @override
+ * TODO(mnaganov): Restore l10n when it will be agreed that it is needed.
+ */
+WebInspector.UIString = function(string) {
+ return String.vsprintf(string, Array.prototype.slice.call(arguments, 1));
};
@@ -362,14 +362,31 @@
})();
+(function () {
+var orig = InjectedScriptAccess.getProperties;
+InjectedScriptAccess.getProperties = function(
+ objectProxy, ignoreHasOwnProperty, callback) {
+ if (objectProxy.isScope) {
+ devtools.tools.getDebuggerAgent().resolveScope(objectProxy.objectId,
+ callback);
+ } else if (objectProxy.isV8Ref) {
+ devtools.tools.getDebuggerAgent().resolveChildren(objectProxy.objectId,
+ callback, true);
+ } else {
+ orig.apply(this, arguments);
+ }
+};
+})()
+
+
WebInspector.resourceTrackingWasEnabled = function()
{
InspectorController.resourceTrackingEnabled_ = true;
this.panels.resources.resourceTrackingWasEnabled();
-}
+};
WebInspector.resourceTrackingWasDisabled = function()
{
InspectorController.resourceTrackingEnabled_ = false;
this.panels.resources.resourceTrackingWasDisabled();
-}
+};
« no previous file with comments | « no previous file | webkit/glue/devtools/js/inspector_controller_impl.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698