OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * Copyright (C) 2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 var title = null; | 75 var title = null; |
76 var emptyPlaceholder = null; | 76 var emptyPlaceholder = null; |
77 var extraProperties = []; | 77 var extraProperties = []; |
78 | 78 |
79 switch (scope.type()) { | 79 switch (scope.type()) { |
80 case DebuggerAgent.ScopeType.Local: | 80 case DebuggerAgent.ScopeType.Local: |
81 foundLocalScope = true; | 81 foundLocalScope = true; |
82 title = WebInspector.UIString("Local"); | 82 title = WebInspector.UIString("Local"); |
83 emptyPlaceholder = WebInspector.UIString("No Variables"); | 83 emptyPlaceholder = WebInspector.UIString("No Variables"); |
84 var thisObject = callFrame.thisObject(); | 84 var thisObject = callFrame.thisObject(); |
85 if (thisObject) | 85 if (thisObject && callFrame.script.language != 'Dart') |
86 extraProperties.push(new WebInspector.RemoteObjectProperty("
this", thisObject)); | 86 extraProperties.push(new WebInspector.RemoteObjectProperty("
this", thisObject)); |
87 if (i == 0) { | 87 if (i == 0) { |
88 var details = callFrame.debuggerModel.debuggerPausedDetails(
); | 88 var details = callFrame.debuggerModel.debuggerPausedDetails(
); |
89 if (!callFrame.isAsync()) { | 89 if (!callFrame.isAsync()) { |
90 var exception = details.exception(); | 90 var exception = details.exception(); |
91 if (exception) | 91 if (exception) |
92 extraProperties.push(new WebInspector.RemoteObjectPr
operty("<exception>", exception)); | 92 extraProperties.push(new WebInspector.RemoteObjectPr
operty("<exception>", exception)); |
93 } | 93 } |
94 var returnValue = callFrame.returnValue(); | 94 var returnValue = callFrame.returnValue(); |
95 if (returnValue) | 95 if (returnValue) |
(...skipping 12 matching lines...) Expand all Loading... |
108 break; | 108 break; |
109 case DebuggerAgent.ScopeType.Script: | 109 case DebuggerAgent.ScopeType.Script: |
110 title = WebInspector.UIString("Script"); | 110 title = WebInspector.UIString("Script"); |
111 break; | 111 break; |
112 case DebuggerAgent.ScopeType.With: | 112 case DebuggerAgent.ScopeType.With: |
113 title = WebInspector.UIString("With Block"); | 113 title = WebInspector.UIString("With Block"); |
114 break; | 114 break; |
115 case DebuggerAgent.ScopeType.Global: | 115 case DebuggerAgent.ScopeType.Global: |
116 title = WebInspector.UIString("Global"); | 116 title = WebInspector.UIString("Global"); |
117 break; | 117 break; |
| 118 case DebuggerAgent.ScopeType.Instance: |
| 119 title = WebInspector.UIString("Instance"); |
| 120 declarativeScope = false; |
| 121 break; |
| 122 case DebuggerAgent.ScopeType.Class: |
| 123 title = WebInspector.UIString("Class"); |
| 124 declarativeScope = false; |
| 125 break; |
| 126 case DebuggerAgent.ScopeType.Library: |
| 127 title = WebInspector.UIString("Library"); |
| 128 declarativeScope = false; |
| 129 break; |
| 130 case DebuggerAgent.ScopeType.Isolate: |
| 131 title = WebInspector.UIString("Isolate"); |
| 132 declarativeScope = false; |
| 133 break; |
118 } | 134 } |
119 | 135 |
120 var subtitle = scope.description(); | 136 var subtitle = scope.description(); |
121 if (!title || title === subtitle) | 137 if (!title || title === subtitle) |
122 subtitle = undefined; | 138 subtitle = undefined; |
123 | 139 |
124 var titleElement = createElementWithClass("div"); | 140 var titleElement = createElementWithClass("div"); |
125 titleElement.createChild("div", "scope-chain-sidebar-pane-section-su
btitle").textContent = subtitle; | 141 titleElement.createChild("div", "scope-chain-sidebar-pane-section-su
btitle").textContent = subtitle; |
126 titleElement.createChild("div", "scope-chain-sidebar-pane-section-ti
tle").textContent = title; | 142 titleElement.createChild("div", "scope-chain-sidebar-pane-section-ti
tle").textContent = title; |
127 | 143 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 * @param {!WebInspector.ObjectPropertyTreeElement} treeElement | 190 * @param {!WebInspector.ObjectPropertyTreeElement} treeElement |
175 * @return {string} | 191 * @return {string} |
176 */ | 192 */ |
177 _propertyPath: function(treeElement) | 193 _propertyPath: function(treeElement) |
178 { | 194 { |
179 return treeElement.treeOutline[WebInspector.ScopeChainSidebarPane._pathS
ymbol] + WebInspector.ObjectPropertyTreeElement.prototype.propertyPath.call(tree
Element); | 195 return treeElement.treeOutline[WebInspector.ScopeChainSidebarPane._pathS
ymbol] + WebInspector.ObjectPropertyTreeElement.prototype.propertyPath.call(tree
Element); |
180 }, | 196 }, |
181 | 197 |
182 __proto__: WebInspector.SidebarPane.prototype | 198 __proto__: WebInspector.SidebarPane.prototype |
183 } | 199 } |
OLD | NEW |