Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/devtools_compatibility.js

Issue 2817593004: [DevTools] Move eye dropper functionality from protocol to embedder (Closed)
Patch Set: rebased Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698