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

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

Issue 2421913003: DevTools: allow reattaching main target live. (Closed)
Patch Set: link fixed Created 4 years, 2 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 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 673 matching lines...) Expand 10 before | Expand all | Expand 10 after
684 * @override 684 * @override
685 * @return {boolean} 685 * @return {boolean}
686 */ 686 */
687 isUnderTest: function() 687 isUnderTest: function()
688 { 688 {
689 return DevToolsHost.isUnderTest(); 689 return DevToolsHost.isUnderTest();
690 }, 690 },
691 691
692 /** 692 /**
693 * @override 693 * @override
694 * @param {function()} callback
695 */
696 reattach: function(callback)
697 {
698 DevToolsAPI.sendMessageToEmbedder("reattach", [], callback);
699 },
700
701 /**
702 * @override
694 */ 703 */
695 readyForTest: function() 704 readyForTest: function()
696 { 705 {
697 DevToolsAPI.sendMessageToEmbedder("readyForTest", [], null); 706 DevToolsAPI.sendMessageToEmbedder("readyForTest", [], null);
698 }, 707 },
699 708
700 /** 709 /**
701 * @override 710 * @override
702 * @param {boolean} discoverUsbDevices 711 * @param {boolean} discoverUsbDevices
703 * @param {boolean} portForwardingEnabled 712 * @param {boolean} portForwardingEnabled
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1180 1189
1181 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { 1190 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) {
1182 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; 1191 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle;
1183 DOMTokenList.prototype.toggle = function(token, force) 1192 DOMTokenList.prototype.toggle = function(token, force)
1184 { 1193 {
1185 if (arguments.length === 1) 1194 if (arguments.length === 1)
1186 force = !this.contains(token); 1195 force = !this.contains(token);
1187 return this.__originalDOMTokenListToggle(token, !!force); 1196 return this.__originalDOMTokenListToggle(token, !!force);
1188 } 1197 }
1189 } 1198 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698