| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * @unrestricted | 6 * @unrestricted |
| 7 */ | 7 */ |
| 8 Audits2.Audits2Panel = class extends UI.PanelWithSidebar { | 8 Audits2.Audits2Panel = class extends UI.PanelWithSidebar { |
| 9 constructor() { | 9 constructor() { |
| 10 super('audits2'); | 10 super('audits2'); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 /** @type {?function(string)} */ | 397 /** @type {?function(string)} */ |
| 398 this._status = null; | 398 this._status = null; |
| 399 } | 399 } |
| 400 | 400 |
| 401 /** | 401 /** |
| 402 * @return {!Promise<undefined>} | 402 * @return {!Promise<undefined>} |
| 403 */ | 403 */ |
| 404 attach() { | 404 attach() { |
| 405 return SDK.targetManager.interceptMainConnection(this._dispatchProtocolMessa
ge.bind(this)).then(rawConnection => { | 405 return SDK.targetManager.interceptMainConnection(this._dispatchProtocolMessa
ge.bind(this)).then(rawConnection => { |
| 406 this._rawConnection = rawConnection; | 406 this._rawConnection = rawConnection; |
| 407 this._rawConnection.sendMessage( |
| 408 JSON.stringify({id: 0, method: 'Input.setIgnoreInputEvents', params: {
ignore: true}})); |
| 407 }); | 409 }); |
| 408 } | 410 } |
| 409 | 411 |
| 410 /** | 412 /** |
| 411 * @param {string} inspectedURL | 413 * @param {string} inspectedURL |
| 412 * @param {!Array<string>} categoryIDs | 414 * @param {!Array<string>} categoryIDs |
| 413 * @return {!Promise<!ReportRenderer.ReportJSON>} | 415 * @return {!Promise<!ReportRenderer.ReportJSON>} |
| 414 */ | 416 */ |
| 415 startLighthouse(inspectedURL, categoryIDs) { | 417 startLighthouse(inspectedURL, categoryIDs) { |
| 416 return this._send('start', {url: inspectedURL, categoryIDs}); | 418 return this._send('start', {url: inspectedURL, categoryIDs}); |
| (...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 719 return; | 721 return; |
| 720 | 722 |
| 721 var element = Components.DOMPresentationUtils.linkifyNodeReference(node,
undefined, detailsItem.snippet); | 723 var element = Components.DOMPresentationUtils.linkifyNodeReference(node,
undefined, detailsItem.snippet); |
| 722 origElement.title = ''; | 724 origElement.title = ''; |
| 723 origElement.textContent = ''; | 725 origElement.textContent = ''; |
| 724 origElement.appendChild(element); | 726 origElement.appendChild(element); |
| 725 }); | 727 }); |
| 726 }); | 728 }); |
| 727 } | 729 } |
| 728 }; | 730 }; |
| OLD | NEW |