| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 /* eslint-disable indent */ | 4 /* eslint-disable indent */ |
| 5 (function(window) { | 5 (function(window) { |
| 6 | 6 |
| 7 // DevToolsAPI ---------------------------------------------------------------
- | 7 // DevToolsAPI ---------------------------------------------------------------
- |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @unrestricted | 10 * @unrestricted |
| (...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 | 594 |
| 595 /** | 595 /** |
| 596 * @override | 596 * @override |
| 597 * @param {string} shortcuts | 597 * @param {string} shortcuts |
| 598 */ | 598 */ |
| 599 setWhitelistedShortcuts(shortcuts) { | 599 setWhitelistedShortcuts(shortcuts) { |
| 600 DevToolsAPI.sendMessageToEmbedder('setWhitelistedShortcuts', [shortcuts],
null); | 600 DevToolsAPI.sendMessageToEmbedder('setWhitelistedShortcuts', [shortcuts],
null); |
| 601 } | 601 } |
| 602 | 602 |
| 603 /** | 603 /** |
| 604 * @override |
| 604 * @param {!Array<string>} certChain | 605 * @param {!Array<string>} certChain |
| 605 */ | 606 */ |
| 606 showCertificateViewer(certChain) { | 607 showCertificateViewer(certChain) { |
| 607 DevToolsAPI.sendMessageToEmbedder('showCertificateViewer', [JSON.stringify
(certChain)], null); | 608 DevToolsAPI.sendMessageToEmbedder('showCertificateViewer', [JSON.stringify
(certChain)], null); |
| 608 } | 609 } |
| 609 | 610 |
| 610 /** | 611 /** |
| 611 * @override | 612 * @override |
| 612 * @return {boolean} | 613 * @return {boolean} |
| 613 */ | 614 */ |
| (...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 * @return {boolean} | 1232 * @return {boolean} |
| 1232 */ | 1233 */ |
| 1233 DOMTokenList.prototype.toggle = function(token, force) { | 1234 DOMTokenList.prototype.toggle = function(token, force) { |
| 1234 if (arguments.length === 1) | 1235 if (arguments.length === 1) |
| 1235 force = !this.contains(token); | 1236 force = !this.contains(token); |
| 1236 return this.__originalDOMTokenListToggle(token, !!force); | 1237 return this.__originalDOMTokenListToggle(token, !!force); |
| 1237 }; | 1238 }; |
| 1238 } | 1239 } |
| 1239 | 1240 |
| 1240 })(window); | 1241 })(window); |
| OLD | NEW |