| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 * @param {?Protocol.Error} error | 744 * @param {?Protocol.Error} error |
| 745 */ | 745 */ |
| 746 function patternsUpdated(error) | 746 function patternsUpdated(error) |
| 747 { | 747 { |
| 748 if (error) | 748 if (error) |
| 749 console.error(error); | 749 console.error(error); |
| 750 callback(!error); | 750 callback(!error); |
| 751 } | 751 } |
| 752 }, | 752 }, |
| 753 | 753 |
| 754 /** |
| 755 * @override |
| 756 */ |
| 754 dispose: function() | 757 dispose: function() |
| 755 { | 758 { |
| 756 WebInspector.moduleSetting("pauseOnExceptionEnabled").removeChangeListen
er(this._pauseOnExceptionStateChanged, this); | 759 WebInspector.moduleSetting("pauseOnExceptionEnabled").removeChangeListen
er(this._pauseOnExceptionStateChanged, this); |
| 757 WebInspector.moduleSetting("pauseOnCaughtException").removeChangeListene
r(this._pauseOnExceptionStateChanged, this); | 760 WebInspector.moduleSetting("pauseOnCaughtException").removeChangeListene
r(this._pauseOnExceptionStateChanged, this); |
| 758 WebInspector.moduleSetting("enableAsyncStackTraces").removeChangeListene
r(this.asyncStackTracesStateChanged, this); | 761 WebInspector.moduleSetting("enableAsyncStackTraces").removeChangeListene
r(this.asyncStackTracesStateChanged, this); |
| 759 }, | 762 }, |
| 760 | 763 |
| 761 /** | 764 /** |
| 762 * @override | 765 * @override |
| 763 * @return {!Promise} | 766 * @return {!Promise} |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1297 /** | 1300 /** |
| 1298 * @param {?WebInspector.Target} target | 1301 * @param {?WebInspector.Target} target |
| 1299 * @return {?WebInspector.DebuggerModel} | 1302 * @return {?WebInspector.DebuggerModel} |
| 1300 */ | 1303 */ |
| 1301 WebInspector.DebuggerModel.fromTarget = function(target) | 1304 WebInspector.DebuggerModel.fromTarget = function(target) |
| 1302 { | 1305 { |
| 1303 if (!target || !target.hasJSCapability()) | 1306 if (!target || !target.hasJSCapability()) |
| 1304 return null; | 1307 return null; |
| 1305 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector
.DebuggerModel)); | 1308 return /** @type {?WebInspector.DebuggerModel} */ (target.model(WebInspector
.DebuggerModel)); |
| 1306 }; | 1309 }; |
| OLD | NEW |