| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 WebInspector.ConsoleModel.clearConsole = function() |
| 204 { |
| 205 var targets = WebInspector.targetManager.targets(); |
| 206 for (var i = 0; i < targets.length; ++i) |
| 207 targets[i].consoleModel.requestClearMessages(); |
| 208 } |
| 209 |
| 203 | 210 |
| 204 /** | 211 /** |
| 205 * @constructor | 212 * @constructor |
| 206 * @param {?WebInspector.Target} target | 213 * @param {?WebInspector.Target} target |
| 207 * @param {string} source | 214 * @param {string} source |
| 208 * @param {?string} level | 215 * @param {?string} level |
| 209 * @param {string} messageText | 216 * @param {string} messageText |
| 210 * @param {string=} type | 217 * @param {string=} type |
| 211 * @param {?string=} url | 218 * @param {?string=} url |
| 212 * @param {number=} line | 219 * @param {number=} line |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 590 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv
aluated, event.data); | 597 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.CommandEv
aluated, event.data); |
| 591 }, | 598 }, |
| 592 | 599 |
| 593 __proto__: WebInspector.Object.prototype | 600 __proto__: WebInspector.Object.prototype |
| 594 } | 601 } |
| 595 | 602 |
| 596 /** | 603 /** |
| 597 * @type {!WebInspector.MultitargetConsoleModel} | 604 * @type {!WebInspector.MultitargetConsoleModel} |
| 598 */ | 605 */ |
| 599 WebInspector.multitargetConsoleModel; | 606 WebInspector.multitargetConsoleModel; |
| OLD | NEW |