| 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 }, | 141 }, |
| 142 | 142 |
| 143 requestClearMessages: function() | 143 requestClearMessages: function() |
| 144 { | 144 { |
| 145 this._consoleAgent.clearMessages(); | 145 this._consoleAgent.clearMessages(); |
| 146 this.clearMessages(); | 146 this.clearMessages(); |
| 147 }, | 147 }, |
| 148 | 148 |
| 149 clearMessages: function() | 149 clearMessages: function() |
| 150 { | 150 { |
| 151 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.ConsoleCl
eared); | |
| 152 | |
| 153 this.messages = []; | 151 this.messages = []; |
| 154 this.errors = 0; | 152 this.errors = 0; |
| 155 this.warnings = 0; | 153 this.warnings = 0; |
| 154 this.dispatchEventToListeners(WebInspector.ConsoleModel.Events.ConsoleCl
eared); |
| 156 }, | 155 }, |
| 157 | 156 |
| 158 __proto__: WebInspector.SDKObject.prototype | 157 __proto__: WebInspector.SDKObject.prototype |
| 159 } | 158 } |
| 160 | 159 |
| 161 /** | 160 /** |
| 162 * @param {!WebInspector.ExecutionContext} executionContext | 161 * @param {!WebInspector.ExecutionContext} executionContext |
| 163 * @param {string} text | 162 * @param {string} text |
| 164 * @param {boolean=} useCommandLineAPI | 163 * @param {boolean=} useCommandLineAPI |
| 165 */ | 164 */ |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 { | 487 { |
| 489 if (!WebInspector.settings.preserveConsoleLog.get()) | 488 if (!WebInspector.settings.preserveConsoleLog.get()) |
| 490 this._console.clearMessages(); | 489 this._console.clearMessages(); |
| 491 } | 490 } |
| 492 } | 491 } |
| 493 | 492 |
| 494 /** | 493 /** |
| 495 * @type {!WebInspector.ConsoleModel} | 494 * @type {!WebInspector.ConsoleModel} |
| 496 */ | 495 */ |
| 497 WebInspector.consoleModel; | 496 WebInspector.consoleModel; |
| OLD | NEW |