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

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

Issue 2566573002: DevTools: Open Elements panel sooner on Inspect Element (Closed)
Patch Set: Missed one showConsolePanel Created 4 years 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
330 */ 330 */
331 platform() { 331 platform() {
332 return DevToolsHost.platform(); 332 return DevToolsHost.platform();
333 } 333 }
334 334
335 /** 335 /**
336 * @override 336 * @override
337 */ 337 */
338 loadCompleted() { 338 loadCompleted() {
339 DevToolsAPI.sendMessageToEmbedder('loadCompleted', [], null); 339 DevToolsAPI.sendMessageToEmbedder('loadCompleted', [], null);
340 // Support for legacy (<57) frontends.
341 if (window.Runtime && window.Runtime.queryParam) {
342 var panelToOpen = window.Runtime.queryParam('panel');
343 if (panelToOpen)
344 window.DevToolsAPI.showPanel(panelToOpen);
345 }
340 } 346 }
341 347
342 /** 348 /**
343 * @override 349 * @override
344 */ 350 */
345 bringToFront() { 351 bringToFront() {
346 DevToolsAPI.sendMessageToEmbedder('bringToFront', [], null); 352 DevToolsAPI.sendMessageToEmbedder('bringToFront', [], null);
347 } 353 }
348 354
349 /** 355 /**
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 * @return {boolean} 1238 * @return {boolean}
1233 */ 1239 */
1234 DOMTokenList.prototype.toggle = function(token, force) { 1240 DOMTokenList.prototype.toggle = function(token, force) {
1235 if (arguments.length === 1) 1241 if (arguments.length === 1)
1236 force = !this.contains(token); 1242 force = !this.contains(token);
1237 return this.__originalDOMTokenListToggle(token, !!force); 1243 return this.__originalDOMTokenListToggle(token, !!force);
1238 }; 1244 };
1239 } 1245 }
1240 1246
1241 })(window); 1247 })(window);
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/devtools_ui.cc ('k') | third_party/WebKit/Source/devtools/front_end/ui/InspectorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698