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 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 += 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 += 1; |
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 Loading... |
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; |
OLD | NEW |