| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 this._warnings = 0; | 46 this._warnings = 0; |
| 47 this._errors = 0; | 47 this._errors = 0; |
| 48 this._revokedErrors = 0; | 48 this._revokedErrors = 0; |
| 49 this._logAgent = logAgent; | 49 this._logAgent = logAgent; |
| 50 if (this._logAgent) { | 50 if (this._logAgent) { |
| 51 target.registerLogDispatcher(new SDK.LogDispatcher(this)); | 51 target.registerLogDispatcher(new SDK.LogDispatcher(this)); |
| 52 this._logAgent.enable(); | 52 this._logAgent.enable(); |
| 53 if (!InspectorFrontendHost.isUnderTest()) { | 53 if (!InspectorFrontendHost.isUnderTest()) { |
| 54 this._logAgent.startViolationsReport([ | 54 this._logAgent.startViolationsReport([ |
| 55 {name: 'longTask', threshold: 50}, {name: 'longLayout', threshold: 30}
, | 55 {name: 'longTask', threshold: 50}, {name: 'longLayout', threshold: 30}
, |
| 56 {name: 'blockedEvent', threshold: 100} | 56 {name: 'blockedEvent', threshold: 100}, {name: 'blockedParser', thresh
old: -1} |
| 57 ]); | 57 ]); |
| 58 } | 58 } |
| 59 } | 59 } |
| 60 } | 60 } |
| 61 | 61 |
| 62 /** | 62 /** |
| 63 * @param {!SDK.ExecutionContext} executionContext | 63 * @param {!SDK.ExecutionContext} executionContext |
| 64 * @param {string} text | 64 * @param {string} text |
| 65 * @param {boolean=} useCommandLineAPI | 65 * @param {boolean=} useCommandLineAPI |
| 66 */ | 66 */ |
| (...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 635 */ | 635 */ |
| 636 _commandEvaluated(event) { | 636 _commandEvaluated(event) { |
| 637 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even
t.data); | 637 this.dispatchEventToListeners(SDK.ConsoleModel.Events.CommandEvaluated, even
t.data); |
| 638 } | 638 } |
| 639 }; | 639 }; |
| 640 | 640 |
| 641 /** | 641 /** |
| 642 * @type {!SDK.MultitargetConsoleModel} | 642 * @type {!SDK.MultitargetConsoleModel} |
| 643 */ | 643 */ |
| 644 SDK.multitargetConsoleModel; | 644 SDK.multitargetConsoleModel; |
| OLD | NEW |