| 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 825 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 836 Common.UIString.capitalize('Local ^modifications\u2026'), this._showLo
calHistory.bind(this, uiSourceCode)); | 836 Common.UIString.capitalize('Local ^modifications\u2026'), this._showLo
calHistory.bind(this, uiSourceCode)); |
| 837 } | 837 } |
| 838 } | 838 } |
| 839 | 839 |
| 840 /** | 840 /** |
| 841 * @param {!Event} event | 841 * @param {!Event} event |
| 842 * @param {!UI.ContextMenu} contextMenu | 842 * @param {!UI.ContextMenu} contextMenu |
| 843 * @param {!Object} target | 843 * @param {!Object} target |
| 844 */ | 844 */ |
| 845 _appendUISourceCodeFrameItems(event, contextMenu, target) { | 845 _appendUISourceCodeFrameItems(event, contextMenu, target) { |
| 846 if (!(target instanceof Sources.UISourceCodeFrame)) | 846 if (!(target instanceof SourceFrame.UISourceCodeFrame)) |
| 847 return; | 847 return; |
| 848 contextMenu.appendAction('debugger.evaluate-selection'); | 848 contextMenu.appendAction('debugger.evaluate-selection'); |
| 849 } | 849 } |
| 850 | 850 |
| 851 /** | 851 /** |
| 852 * @param {!UI.ContextMenu} contextMenu | 852 * @param {!UI.ContextMenu} contextMenu |
| 853 * @param {!Object} object | 853 * @param {!Object} object |
| 854 */ | 854 */ |
| 855 appendUILocationItems(contextMenu, object) { | 855 appendUILocationItems(contextMenu, object) { |
| 856 if (!(object instanceof Workspace.UILocation)) | 856 if (!(object instanceof Workspace.UILocation)) |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 case 'debugger.step-out': | 1255 case 'debugger.step-out': |
| 1256 panel._stepOut(); | 1256 panel._stepOut(); |
| 1257 return true; | 1257 return true; |
| 1258 case 'debugger.run-snippet': | 1258 case 'debugger.run-snippet': |
| 1259 panel._runSnippet(); | 1259 panel._runSnippet(); |
| 1260 return true; | 1260 return true; |
| 1261 case 'debugger.toggle-breakpoints-active': | 1261 case 'debugger.toggle-breakpoints-active': |
| 1262 panel._toggleBreakpointsActive(); | 1262 panel._toggleBreakpointsActive(); |
| 1263 return true; | 1263 return true; |
| 1264 case 'debugger.evaluate-selection': | 1264 case 'debugger.evaluate-selection': |
| 1265 var frame = UI.context.flavor(Sources.UISourceCodeFrame); | 1265 var frame = UI.context.flavor(SourceFrame.UISourceCodeFrame); |
| 1266 if (frame) { | 1266 if (frame) { |
| 1267 var text = frame.textEditor.text(frame.textEditor.selection()); | 1267 var text = frame.textEditor.text(frame.textEditor.selection()); |
| 1268 var executionContext = UI.context.flavor(SDK.ExecutionContext); | 1268 var executionContext = UI.context.flavor(SDK.ExecutionContext); |
| 1269 if (executionContext) | 1269 if (executionContext) |
| 1270 SDK.ConsoleModel.evaluateCommandInConsole(executionContext, text); | 1270 SDK.ConsoleModel.evaluateCommandInConsole(executionContext, text); |
| 1271 } | 1271 } |
| 1272 return true; | 1272 return true; |
| 1273 } | 1273 } |
| 1274 return false; | 1274 return false; |
| 1275 } | 1275 } |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1310 */ | 1310 */ |
| 1311 willHide() { | 1311 willHide() { |
| 1312 UI.inspectorView.setDrawerMinimized(false); | 1312 UI.inspectorView.setDrawerMinimized(false); |
| 1313 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); | 1313 setImmediate(() => Sources.SourcesPanel.updateResizerAndSidebarButtons(Sourc
es.SourcesPanel.instance())); |
| 1314 } | 1314 } |
| 1315 | 1315 |
| 1316 _showViewInWrapper() { | 1316 _showViewInWrapper() { |
| 1317 this._view.show(this.element); | 1317 this._view.show(this.element); |
| 1318 } | 1318 } |
| 1319 }; | 1319 }; |
| OLD | NEW |