| 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 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 504 this._liveLocationPool.disposeAll(); | 504 this._liveLocationPool.disposeAll(); |
| 505 } | 505 } |
| 506 | 506 |
| 507 /** | 507 /** |
| 508 * @param {!SDK.DebuggerModel} debuggerModel | 508 * @param {!SDK.DebuggerModel} debuggerModel |
| 509 */ | 509 */ |
| 510 _switchToPausedTarget(debuggerModel) { | 510 _switchToPausedTarget(debuggerModel) { |
| 511 delete this._switchToPausedTargetTimeout; | 511 delete this._switchToPausedTargetTimeout; |
| 512 if (this._paused) | 512 if (this._paused) |
| 513 return; | 513 return; |
| 514 var target = UI.context.flavor(SDK.Target); | |
| 515 if (debuggerModel.isPaused()) | 514 if (debuggerModel.isPaused()) |
| 516 return; | 515 return; |
| 517 var debuggerModels = SDK.DebuggerModel.instances(); | 516 var debuggerModels = SDK.DebuggerModel.instances(); |
| 518 for (var i = 0; i < debuggerModels.length; ++i) { | 517 for (var i = 0; i < debuggerModels.length; ++i) { |
| 519 if (debuggerModels[i].isPaused()) { | 518 if (debuggerModels[i].isPaused()) { |
| 520 UI.context.setFlavor(SDK.Target, debuggerModels[i].target()); | 519 UI.context.setFlavor(SDK.Target, debuggerModels[i].target()); |
| 521 break; | 520 break; |
| 522 } | 521 } |
| 523 } | 522 } |
| 524 } | 523 } |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 848 | 847 |
| 849 /** | 848 /** |
| 850 * @param {!UI.ContextMenu} contextMenu | 849 * @param {!UI.ContextMenu} contextMenu |
| 851 * @param {!Object} object | 850 * @param {!Object} object |
| 852 */ | 851 */ |
| 853 appendUILocationItems(contextMenu, object) { | 852 appendUILocationItems(contextMenu, object) { |
| 854 if (!(object instanceof Workspace.UILocation)) | 853 if (!(object instanceof Workspace.UILocation)) |
| 855 return; | 854 return; |
| 856 var uiLocation = /** @type {!Workspace.UILocation} */ (object); | 855 var uiLocation = /** @type {!Workspace.UILocation} */ (object); |
| 857 var uiSourceCode = uiLocation.uiSourceCode; | 856 var uiSourceCode = uiLocation.uiSourceCode; |
| 858 var projectType = uiSourceCode.project().type(); | |
| 859 | 857 |
| 860 var contentType = uiSourceCode.contentType(); | 858 var contentType = uiSourceCode.contentType(); |
| 861 if (contentType.hasScripts()) { | 859 if (contentType.hasScripts()) { |
| 862 var target = UI.context.flavor(SDK.Target); | 860 var target = UI.context.flavor(SDK.Target); |
| 863 var debuggerModel = SDK.DebuggerModel.fromTarget(target); | 861 var debuggerModel = SDK.DebuggerModel.fromTarget(target); |
| 864 if (debuggerModel && debuggerModel.isPaused()) { | 862 if (debuggerModel && debuggerModel.isPaused()) { |
| 865 contextMenu.appendItem( | 863 contextMenu.appendItem( |
| 866 Common.UIString.capitalize('Continue to ^here'), this._continueToLoc
ation.bind(this, uiLocation)); | 864 Common.UIString.capitalize('Continue to ^here'), this._continueToLoc
ation.bind(this, uiLocation)); |
| 867 } | 865 } |
| 868 this._callstackPane.appendBlackboxURLContextMenuItems(contextMenu, uiSourc
eCode); | 866 this._callstackPane.appendBlackboxURLContextMenuItems(contextMenu, uiSourc
eCode); |
| (...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1309 */ | 1307 */ |
| 1310 willHide() { | 1308 willHide() { |
| 1311 UI.inspectorView.setDrawerMinimized(false); | 1309 UI.inspectorView.setDrawerMinimized(false); |
| 1312 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1310 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1313 } | 1311 } |
| 1314 | 1312 |
| 1315 _showViewInWrapper() { | 1313 _showViewInWrapper() { |
| 1316 this._view.show(this.element); | 1314 this._view.show(this.element); |
| 1317 } | 1315 } |
| 1318 }; | 1316 }; |
| OLD | NEW |