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

Side by Side Diff: Source/devtools/front_end/ResourceTreeModel.js

Issue 185713007: DevTools: Add timestamp support in the console (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Up for review Created 6 years, 9 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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 }, 390 },
391 391
392 /** 392 /**
393 * @param {!WebInspector.ConsoleMessage} msg 393 * @param {!WebInspector.ConsoleMessage} msg
394 * @param {!WebInspector.Resource} resource 394 * @param {!WebInspector.Resource} resource
395 */ 395 */
396 _addConsoleMessageToResource: function(msg, resource) 396 _addConsoleMessageToResource: function(msg, resource)
397 { 397 {
398 switch (msg.level) { 398 switch (msg.level) {
399 case WebInspector.ConsoleMessage.MessageLevel.Warning: 399 case WebInspector.ConsoleMessage.MessageLevel.Warning:
400 resource.warnings += msg.repeatDelta; 400 resource.warnings++;
apavlov 2014/03/21 09:30:46 += 1?
401 break; 401 break;
402 case WebInspector.ConsoleMessage.MessageLevel.Error: 402 case WebInspector.ConsoleMessage.MessageLevel.Error:
403 resource.errors += msg.repeatDelta; 403 resource.errors++;
apavlov 2014/03/21 09:30:46 ditto
404 break; 404 break;
405 } 405 }
406 resource.addMessage(msg); 406 resource.addMessage(msg);
407 }, 407 },
408 408
409 _consoleCleared: function() 409 _consoleCleared: function()
410 { 410 {
411 function callback(resource) 411 function callback(resource)
412 { 412 {
413 resource.clearErrorsAndWarnings(); 413 resource.clearErrorsAndWarnings();
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
807 screencastVisibilityChanged: function(visible) 807 screencastVisibilityChanged: function(visible)
808 { 808 {
809 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible}); 809 this._resourceTreeModel.dispatchEventToListeners(WebInspector.ResourceTr eeModel.EventTypes.ScreencastVisibilityChanged, {visible:visible});
810 } 810 }
811 } 811 }
812 812
813 /** 813 /**
814 * @type {!WebInspector.ResourceTreeModel} 814 * @type {!WebInspector.ResourceTreeModel}
815 */ 815 */
816 WebInspector.resourceTreeModel; 816 WebInspector.resourceTreeModel;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698