| OLD | NEW |
| 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 859 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 | 870 |
| 871 | 871 |
| 872 /** | 872 /** |
| 873 * @override | 873 * @override |
| 874 */ | 874 */ |
| 875 WebInspector.ScriptsPanel.prototype.__defineGetter__( | 875 WebInspector.ScriptsPanel.prototype.__defineGetter__( |
| 876 'searchableViews', | 876 'searchableViews', |
| 877 WebInspector.searchableViews_); | 877 WebInspector.searchableViews_); |
| 878 | 878 |
| 879 | 879 |
| 880 WebInspector.Console.prototype.doEvalInWindow = | 880 WebInspector.ConsoleView.prototype.doEvalInWindow = |
| 881 function(expression, callback) { | 881 function(expression, callback) { |
| 882 if (!expression ) { | 882 if (!expression ) { |
| 883 // Empty expression should evaluate to the global object for completions to | 883 // Empty expression should evaluate to the global object for completions to |
| 884 // work. | 884 // work. |
| 885 expression = "this"; | 885 expression = "this"; |
| 886 } | 886 } |
| 887 devtools.tools.evaluateJavaScript(expression, callback); | 887 devtools.tools.evaluateJavaScript(expression, callback); |
| 888 }; | 888 }; |
| 889 | 889 |
| 890 | 890 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1025 var type = debuggerAgent.getScriptContextType(script.sourceID); | 1025 var type = debuggerAgent.getScriptContextType(script.sourceID); |
| 1026 var option = script.filesSelectOption; | 1026 var option = script.filesSelectOption; |
| 1027 if (type == 'injected' && option) { | 1027 if (type == 'injected' && option) { |
| 1028 option.addStyleClass('injected'); | 1028 option.addStyleClass('injected'); |
| 1029 } | 1029 } |
| 1030 return result; | 1030 return result; |
| 1031 }; | 1031 }; |
| 1032 })(); | 1032 })(); |
| 1033 | 1033 |
| 1034 | 1034 |
| 1035 WebInspector.Console.prototype._formatobject = function(object, elem) { | 1035 WebInspector.ConsoleView.prototype._formatobject = function(object, elem) { |
| 1036 var section; | 1036 var section; |
| 1037 if (object.handle && object.className) { | 1037 if (object.handle && object.className) { |
| 1038 object.ref = object.handle; | 1038 object.ref = object.handle; |
| 1039 var className = object.className; | 1039 var className = object.className; |
| 1040 section = new WebInspector.ConsoleObjectPropertiesSection(object, | 1040 section = new WebInspector.ConsoleObjectPropertiesSection(object, |
| 1041 className); | 1041 className); |
| 1042 section.pane = { | 1042 section.pane = { |
| 1043 callFrame: { | 1043 callFrame: { |
| 1044 _expandedProperties : { className : '' } | 1044 _expandedProperties : { className : '' } |
| 1045 } | 1045 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1072 WebInspector.elementDragEnd = function() { | 1072 WebInspector.elementDragEnd = function() { |
| 1073 originalDragEnd.apply(this, arguments); | 1073 originalDragEnd.apply(this, arguments); |
| 1074 | 1074 |
| 1075 var glassPane = document.getElementById('glass-pane-for-drag'); | 1075 var glassPane = document.getElementById('glass-pane-for-drag'); |
| 1076 glassPane.parentElement.removeChild(glassPane); | 1076 glassPane.parentElement.removeChild(glassPane); |
| 1077 }; | 1077 }; |
| 1078 })(); | 1078 })(); |
| 1079 | 1079 |
| 1080 | 1080 |
| 1081 // We do not inspect DOM nodes using $ shortcuts yet. | 1081 // We do not inspect DOM nodes using $ shortcuts yet. |
| 1082 WebInspector.Console.prototype.addInspectedNode = function(node) { | 1082 WebInspector.ConsoleView.prototype.addInspectedNode = function(node) { |
| 1083 }; | 1083 }; |
| OLD | NEW |