| 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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 991 | 991 |
| 992 var location = response.location; | 992 var location = response.location; |
| 993 if (!location) | 993 if (!location) |
| 994 return; | 994 return; |
| 995 | 995 |
| 996 var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(l
ocation); | 996 var uiLocation = Bindings.debuggerWorkspaceBinding.rawLocationToUILocation(l
ocation); |
| 997 if (uiLocation) | 997 if (uiLocation) |
| 998 this.showUILocation(uiLocation); | 998 this.showUILocation(uiLocation); |
| 999 } | 999 } |
| 1000 | 1000 |
| 1001 showGoToSourceDialog() { | |
| 1002 this._sourcesView.showOpenResourceDialog(); | |
| 1003 } | |
| 1004 | |
| 1005 _revealNavigatorSidebar() { | 1001 _revealNavigatorSidebar() { |
| 1006 this._setAsCurrentPanel(); | 1002 this._setAsCurrentPanel(); |
| 1007 this.editorView.showBoth(true); | 1003 this.editorView.showBoth(true); |
| 1008 } | 1004 } |
| 1009 | 1005 |
| 1010 _revealDebuggerSidebar() { | 1006 _revealDebuggerSidebar() { |
| 1011 this._setAsCurrentPanel(); | 1007 this._setAsCurrentPanel(); |
| 1012 this._splitWidget.showBoth(true); | 1008 this._splitWidget.showBoth(true); |
| 1013 } | 1009 } |
| 1014 | 1010 |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1218 * @return {boolean} | 1214 * @return {boolean} |
| 1219 */ | 1215 */ |
| 1220 handleAction(context, actionId) { | 1216 handleAction(context, actionId) { |
| 1221 var panel = Sources.SourcesPanel.instance(); | 1217 var panel = Sources.SourcesPanel.instance(); |
| 1222 if (!panel._ensureSourcesViewVisible()) | 1218 if (!panel._ensureSourcesViewVisible()) |
| 1223 return false; | 1219 return false; |
| 1224 switch (actionId) { | 1220 switch (actionId) { |
| 1225 case 'debugger.toggle-pause': | 1221 case 'debugger.toggle-pause': |
| 1226 panel._togglePause(); | 1222 panel._togglePause(); |
| 1227 return true; | 1223 return true; |
| 1228 case 'sources.go-to-source': | |
| 1229 panel.showGoToSourceDialog(); | |
| 1230 return true; | |
| 1231 } | 1224 } |
| 1232 return false; | 1225 return false; |
| 1233 } | 1226 } |
| 1234 }; | 1227 }; |
| 1235 | 1228 |
| 1236 /** | 1229 /** |
| 1237 * @implements {UI.ActionDelegate} | 1230 * @implements {UI.ActionDelegate} |
| 1238 * @unrestricted | 1231 * @unrestricted |
| 1239 */ | 1232 */ |
| 1240 Sources.SourcesPanel.DebuggingActionDelegate = class { | 1233 Sources.SourcesPanel.DebuggingActionDelegate = class { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1311 */ | 1304 */ |
| 1312 willHide() { | 1305 willHide() { |
| 1313 UI.inspectorView.setDrawerMinimized(false); | 1306 UI.inspectorView.setDrawerMinimized(false); |
| 1314 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1307 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1315 } | 1308 } |
| 1316 | 1309 |
| 1317 _showViewInWrapper() { | 1310 _showViewInWrapper() { |
| 1318 this._view.show(this.element); | 1311 this._view.show(this.element); |
| 1319 } | 1312 } |
| 1320 }; | 1313 }; |
| OLD | NEW |