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

Side by Side Diff: webkit/glue/devtools/js/devtools.js

Issue 155074: DevTools: Provisional support for global properties' and scope roots completi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/devtools/js/debugger_agent.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview Tools is a main class that wires all components of the 6 * @fileoverview Tools is a main class that wires all components of the
7 * DevTools frontend together. It is also responsible for overriding existing 7 * DevTools frontend together. It is also responsible for overriding existing
8 * WebInspector functionality while it is getting upstreamed into WebCore. 8 * WebInspector functionality while it is getting upstreamed into WebCore.
9 */ 9 */
10 goog.provide('devtools.Tools'); 10 goog.provide('devtools.Tools');
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
876 /** 876 /**
877 * @override 877 * @override
878 */ 878 */
879 WebInspector.ScriptsPanel.prototype.__defineGetter__( 879 WebInspector.ScriptsPanel.prototype.__defineGetter__(
880 'searchableViews', 880 'searchableViews',
881 WebInspector.searchableViews_); 881 WebInspector.searchableViews_);
882 882
883 883
884 WebInspector.Console.prototype.doEvalInWindow = 884 WebInspector.Console.prototype.doEvalInWindow =
885 function(expression, callback) { 885 function(expression, callback) {
886 if (!expression ) {
887 // Empty expression should evaluate to the global object for completions to
888 // work.
889 expression = "this";
890 }
886 devtools.tools.evaluateJavaScript(expression, callback); 891 devtools.tools.evaluateJavaScript(expression, callback);
887 }; 892 };
888 893
889 894
890 WebInspector.ScriptsPanel.prototype.doEvalInCallFrame = 895 WebInspector.ScriptsPanel.prototype.doEvalInCallFrame =
891 function(callFrame, expression, callback) { 896 function(callFrame, expression, callback) {
897 if (!expression) {
898 // Empty expression should eval to scope roots for completions to work.
899 devtools.CallFrame.getVariablesInScopeAsync(callFrame, callback);
900 return;
901 }
892 devtools.CallFrame.doEvalInCallFrame(callFrame, expression, callback); 902 devtools.CallFrame.doEvalInCallFrame(callFrame, expression, callback);
893 }; 903 };
894 904
895 905
896 (function() { 906 (function() {
897 var oldShow = WebInspector.ScriptsPanel.prototype.show; 907 var oldShow = WebInspector.ScriptsPanel.prototype.show;
898 WebInspector.ScriptsPanel.prototype.show = function() { 908 WebInspector.ScriptsPanel.prototype.show = function() {
899 devtools.tools.getDebuggerAgent().initializeScriptsCache(); 909 devtools.tools.getDebuggerAgent().initializeScriptsCache();
900 oldShow.call(this); 910 oldShow.call(this);
901 }; 911 };
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
1032 } 1042 }
1033 }; 1043 };
1034 } else { 1044 } else {
1035 var wrapper = {}; 1045 var wrapper = {};
1036 wrapper.id_ = object.___devtools_id; 1046 wrapper.id_ = object.___devtools_id;
1037 wrapper.protoDepth_ = -1; 1047 wrapper.protoDepth_ = -1;
1038 section = new WebInspector.SidebarObjectPropertiesSection(wrapper, null); 1048 section = new WebInspector.SidebarObjectPropertiesSection(wrapper, null);
1039 } 1049 }
1040 elem.appendChild(section.element); 1050 elem.appendChild(section.element);
1041 }; 1051 };
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/debugger_agent.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698