| 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 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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); |
| OLD | NEW |