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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 | 151 |
152 /** | 152 /** |
153 * @param {number} callId | 153 * @param {number} callId |
154 * @param {string} script | 154 * @param {string} script |
155 */ | 155 */ |
156 evaluateForTestInFrontend(callId, script) { | 156 evaluateForTestInFrontend(callId, script) { |
157 this._dispatchOnInspectorFrontendAPI('evaluateForTestInFrontend', [callId,
script]); | 157 this._dispatchOnInspectorFrontendAPI('evaluateForTestInFrontend', [callId,
script]); |
158 } | 158 } |
159 | 159 |
160 /** | 160 /** |
| 161 * @param {!{r: number, g: number, b: number, a: number}} color |
| 162 */ |
| 163 eyeDropperPickedColor(color) { |
| 164 this._dispatchOnInspectorFrontendAPI('eyeDropperPickedColor', [color]); |
| 165 } |
| 166 |
| 167 /** |
161 * @param {!Array.<!{fileSystemName: string, rootURL: string, fileSystemPath
: string}>} fileSystems | 168 * @param {!Array.<!{fileSystemName: string, rootURL: string, fileSystemPath
: string}>} fileSystems |
162 */ | 169 */ |
163 fileSystemsLoaded(fileSystems) { | 170 fileSystemsLoaded(fileSystems) { |
164 this._dispatchOnInspectorFrontendAPI('fileSystemsLoaded', [fileSystems]); | 171 this._dispatchOnInspectorFrontendAPI('fileSystemsLoaded', [fileSystems]); |
165 } | 172 } |
166 | 173 |
167 /** | 174 /** |
168 * @param {string} fileSystemPath | 175 * @param {string} fileSystemPath |
169 */ | 176 */ |
170 fileSystemRemoved(fileSystemPath) { | 177 fileSystemRemoved(fileSystemPath) { |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
614 /** | 621 /** |
615 * @override | 622 * @override |
616 * @param {string} shortcuts | 623 * @param {string} shortcuts |
617 */ | 624 */ |
618 setWhitelistedShortcuts(shortcuts) { | 625 setWhitelistedShortcuts(shortcuts) { |
619 DevToolsAPI.sendMessageToEmbedder('setWhitelistedShortcuts', [shortcuts],
null); | 626 DevToolsAPI.sendMessageToEmbedder('setWhitelistedShortcuts', [shortcuts],
null); |
620 } | 627 } |
621 | 628 |
622 /** | 629 /** |
623 * @override | 630 * @override |
| 631 * @param {boolean} active |
| 632 */ |
| 633 setEyeDropperActive(active) { |
| 634 DevToolsAPI.sendMessageToEmbedder('setEyeDropperActive', [active], null); |
| 635 } |
| 636 |
| 637 /** |
| 638 * @override |
624 * @param {!Array<string>} certChain | 639 * @param {!Array<string>} certChain |
625 */ | 640 */ |
626 showCertificateViewer(certChain) { | 641 showCertificateViewer(certChain) { |
627 DevToolsAPI.sendMessageToEmbedder('showCertificateViewer', [JSON.stringify
(certChain)], null); | 642 DevToolsAPI.sendMessageToEmbedder('showCertificateViewer', [JSON.stringify
(certChain)], null); |
628 } | 643 } |
629 | 644 |
630 /** | 645 /** |
631 * @override | 646 * @override |
632 * @return {boolean} | 647 * @return {boolean} |
633 */ | 648 */ |
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1258 * @return {boolean} | 1273 * @return {boolean} |
1259 */ | 1274 */ |
1260 DOMTokenList.prototype.toggle = function(token, force) { | 1275 DOMTokenList.prototype.toggle = function(token, force) { |
1261 if (arguments.length === 1) | 1276 if (arguments.length === 1) |
1262 force = !this.contains(token); | 1277 force = !this.contains(token); |
1263 return this.__originalDOMTokenListToggle(token, !!force); | 1278 return this.__originalDOMTokenListToggle(token, !!force); |
1264 }; | 1279 }; |
1265 } | 1280 } |
1266 | 1281 |
1267 })(window); | 1282 })(window); |
OLD | NEW |