| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 { | 187 { |
| 188 if (!result) | 188 if (!result) |
| 189 return; | 189 return; |
| 190 | 190 |
| 191 WebInspector.console.showPromise().then(reportUponEvaluation); | 191 WebInspector.console.showPromise().then(reportUponEvaluation); |
| 192 function reportUponEvaluation() | 192 function reportUponEvaluation() |
| 193 { | 193 { |
| 194 target.consoleModel.dispatchEventToListeners(WebInspector.ConsoleMod
el.Events.CommandEvaluated, {result: result, wasThrown: wasThrown, text: text, c
ommandMessage: commandMessage, exceptionDetails: exceptionDetails}); | 194 target.consoleModel.dispatchEventToListeners(WebInspector.ConsoleMod
el.Events.CommandEvaluated, {result: result, wasThrown: wasThrown, text: text, c
ommandMessage: commandMessage, exceptionDetails: exceptionDetails}); |
| 195 } | 195 } |
| 196 } | 196 } |
| 197 | 197 |
| 198 executionContext.evaluate(text, "console", useCommandLineAPI, false, false,
true, printResult); | 198 executionContext.evaluate(text, "console", useCommandLineAPI, false, false,
true, printResult); |
| 199 | 199 |
| 200 WebInspector.userMetrics.ConsoleEvaluated.record(); | 200 WebInspector.userMetrics.ConsoleEvaluated.record(); |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 /** | 204 /** |
| 205 * @constructor | 205 * @constructor |
| 206 * @param {?WebInspector.Target} target | 206 * @param {?WebInspector.Target} target |
| 207 * @param {string} source | 207 * @param {string} source |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv
aluated, event.data); | 590 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv
aluated, event.data); |
| 591 }, | 591 }, |
| 592 | 592 |
| 593 __proto__: WebInspector.Object.prototype | 593 __proto__: WebInspector.Object.prototype |
| 594 } | 594 } |
| 595 | 595 |
| 596 /** | 596 /** |
| 597 * @type {!WebInspector.MultitargetConsoleModel} | 597 * @type {!WebInspector.MultitargetConsoleModel} |
| 598 */ | 598 */ |
| 599 WebInspector.multitargetConsoleModel; | 599 WebInspector.multitargetConsoleModel; |
| OLD | NEW |