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 | 4 |
5 /* eslint-disable indent */ | 5 /* eslint-disable indent */ |
6 (function(window) { | 6 (function(window) { |
7 | 7 |
8 // DevToolsAPI ---------------------------------------------------------------- | 8 // DevToolsAPI ---------------------------------------------------------------- |
9 | 9 |
10 /** | 10 /** |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 /** | 663 /** |
664 * @override | 664 * @override |
665 * @param {string} shortcuts | 665 * @param {string} shortcuts |
666 */ | 666 */ |
667 setWhitelistedShortcuts: function(shortcuts) | 667 setWhitelistedShortcuts: function(shortcuts) |
668 { | 668 { |
669 DevToolsAPI.sendMessageToEmbedder("setWhitelistedShortcuts", [shortcuts]
, null); | 669 DevToolsAPI.sendMessageToEmbedder("setWhitelistedShortcuts", [shortcuts]
, null); |
670 }, | 670 }, |
671 | 671 |
672 /** | 672 /** |
| 673 * @param {!Array<string>} certChain |
| 674 */ |
| 675 showCertificateViewer: function(certChain) |
| 676 { |
| 677 DevToolsAPI.sendMessageToEmbedder("showCertificateViewer", [JSON.stringi
fy(certChain)], null); |
| 678 }, |
| 679 |
| 680 /** |
673 * @override | 681 * @override |
674 * @return {boolean} | 682 * @return {boolean} |
675 */ | 683 */ |
676 isUnderTest: function() | 684 isUnderTest: function() |
677 { | 685 { |
678 return DevToolsHost.isUnderTest(); | 686 return DevToolsHost.isUnderTest(); |
679 }, | 687 }, |
680 | 688 |
681 /** | 689 /** |
682 * @override | 690 * @override |
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1169 | 1177 |
1170 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
1171 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
1172 DOMTokenList.prototype.toggle = function(token, force) | 1180 DOMTokenList.prototype.toggle = function(token, force) |
1173 { | 1181 { |
1174 if (arguments.length === 1) | 1182 if (arguments.length === 1) |
1175 force = !this.contains(token); | 1183 force = !this.contains(token); |
1176 return this.__originalDOMTokenListToggle(token, !!force); | 1184 return this.__originalDOMTokenListToggle(token, !!force); |
1177 } | 1185 } |
1178 } | 1186 } |
OLD | NEW |