Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(737)

Side by Side Diff: Source/devtools/front_end/sdk/ConsoleModel.js

Issue 388793002: DevTools: Calculate number of warnings and errors and listen for pause in all targets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/main/Main.js ('k') | Source/devtools/front_end/sdk/PresentationConsoleMessageHelper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698