| 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 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 * @param {!WebInspector.Target} target | 1059 * @param {!WebInspector.Target} target |
| 1060 * @param {?WebInspector.RemoteObject} result | 1060 * @param {?WebInspector.RemoteObject} result |
| 1061 */ | 1061 */ |
| 1062 function failedToSave(target, result) | 1062 function failedToSave(target, result) |
| 1063 { | 1063 { |
| 1064 var message = WebInspector.UIString("Failed to save to temp variable
."); | 1064 var message = WebInspector.UIString("Failed to save to temp variable
."); |
| 1065 if (result) { | 1065 if (result) { |
| 1066 message += " " + result.description; | 1066 message += " " + result.description; |
| 1067 result.release(); | 1067 result.release(); |
| 1068 } | 1068 } |
| 1069 target.consoleModel.showErrorMessage(message); | 1069 WebInspector.console.error(message); |
| 1070 } | 1070 } |
| 1071 }, | 1071 }, |
| 1072 | 1072 |
| 1073 /** | 1073 /** |
| 1074 * @param {!WebInspector.RemoteObject} remoteObject | 1074 * @param {!WebInspector.RemoteObject} remoteObject |
| 1075 */ | 1075 */ |
| 1076 _showFunctionDefinition: function(remoteObject) | 1076 _showFunctionDefinition: function(remoteObject) |
| 1077 { | 1077 { |
| 1078 var target = remoteObject.target(); | 1078 var target = remoteObject.target(); |
| 1079 | 1079 |
| (...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1475 */ | 1475 */ |
| 1476 handleAction: function() | 1476 handleAction: function() |
| 1477 { | 1477 { |
| 1478 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); | 1478 var panel = /** @type {?WebInspector.SourcesPanel} */ (WebInspector.insp
ectorView.showPanel("sources")); |
| 1479 if (!panel) | 1479 if (!panel) |
| 1480 return false; | 1480 return false; |
| 1481 panel.togglePause(); | 1481 panel.togglePause(); |
| 1482 return true; | 1482 return true; |
| 1483 } | 1483 } |
| 1484 } | 1484 } |
| OLD | NEW |