| 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 } | 100 } |
| 101 | 101 |
| 102 /** | 102 /** |
| 103 * @param {number} count | 103 * @param {number} count |
| 104 */ | 104 */ |
| 105 deviceCountUpdated(count) { | 105 deviceCountUpdated(count) { |
| 106 this._dispatchOnInspectorFrontendAPI('deviceCountUpdated', [count]); | 106 this._dispatchOnInspectorFrontendAPI('deviceCountUpdated', [count]); |
| 107 } | 107 } |
| 108 | 108 |
| 109 /** | 109 /** |
| 110 * @param {boolean} discoverUsbDevices | 110 * @param {!Adb.Config} config |
| 111 * @param {boolean} portForwardingEnabled | |
| 112 * @param {!Adb.PortForwardingConfig} portForwardingConfig | |
| 113 */ | 111 */ |
| 114 devicesDiscoveryConfigChanged(discoverUsbDevices, portForwardingEnabled, por
tForwardingConfig) { | 112 devicesDiscoveryConfigChanged(config) { |
| 115 this._dispatchOnInspectorFrontendAPI( | 113 this._dispatchOnInspectorFrontendAPI('devicesDiscoveryConfigChanged', [con
fig]); |
| 116 'devicesDiscoveryConfigChanged', [discoverUsbDevices, portForwardingEn
abled, portForwardingConfig]); | |
| 117 } | 114 } |
| 118 | 115 |
| 119 /** | 116 /** |
| 120 * @param {!Adb.PortForwardingStatus} status | 117 * @param {!Adb.PortForwardingStatus} status |
| 121 */ | 118 */ |
| 122 devicesPortForwardingStatusChanged(status) { | 119 devicesPortForwardingStatusChanged(status) { |
| 123 this._dispatchOnInspectorFrontendAPI('devicesPortForwardingStatusChanged',
[status]); | 120 this._dispatchOnInspectorFrontendAPI('devicesPortForwardingStatusChanged',
[status]); |
| 124 } | 121 } |
| 125 | 122 |
| 126 /** | 123 /** |
| (...skipping 533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 | 657 |
| 661 /** | 658 /** |
| 662 * @override | 659 * @override |
| 663 */ | 660 */ |
| 664 readyForTest() { | 661 readyForTest() { |
| 665 DevToolsAPI.sendMessageToEmbedder('readyForTest', [], null); | 662 DevToolsAPI.sendMessageToEmbedder('readyForTest', [], null); |
| 666 } | 663 } |
| 667 | 664 |
| 668 /** | 665 /** |
| 669 * @override | 666 * @override |
| 670 * @param {boolean} discoverUsbDevices | 667 * @param {!Adb.Config} config |
| 671 * @param {boolean} portForwardingEnabled | |
| 672 * @param {!Adb.PortForwardingConfig} portForwardingConfig | |
| 673 */ | 668 */ |
| 674 setDevicesDiscoveryConfig(discoverUsbDevices, portForwardingEnabled, portFor
wardingConfig) { | 669 setDevicesDiscoveryConfig(config) { |
| 675 DevToolsAPI.sendMessageToEmbedder( | 670 DevToolsAPI.sendMessageToEmbedder( |
| 676 'setDevicesDiscoveryConfig', | 671 'setDevicesDiscoveryConfig', |
| 677 [discoverUsbDevices, portForwardingEnabled, JSON.stringify(portForward
ingConfig)], null); | 672 [ |
| 673 config.discoverUsbDevices, config.portForwardingEnabled, JSON.string
ify(config.portForwardingConfig), |
| 674 config.networkDiscoveryEnabled, JSON.stringify(config.networkDiscove
ryConfig) |
| 675 ], |
| 676 null); |
| 678 } | 677 } |
| 679 | 678 |
| 680 /** | 679 /** |
| 681 * @override | 680 * @override |
| 682 * @param {boolean} enabled | 681 * @param {boolean} enabled |
| 683 */ | 682 */ |
| 684 setDevicesUpdatesEnabled(enabled) { | 683 setDevicesUpdatesEnabled(enabled) { |
| 685 DevToolsAPI.sendMessageToEmbedder('setDevicesUpdatesEnabled', [enabled], n
ull); | 684 DevToolsAPI.sendMessageToEmbedder('setDevicesUpdatesEnabled', [enabled], n
ull); |
| 686 } | 685 } |
| 687 | 686 |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 * @return {boolean} | 1272 * @return {boolean} |
| 1274 */ | 1273 */ |
| 1275 DOMTokenList.prototype.toggle = function(token, force) { | 1274 DOMTokenList.prototype.toggle = function(token, force) { |
| 1276 if (arguments.length === 1) | 1275 if (arguments.length === 1) |
| 1277 force = !this.contains(token); | 1276 force = !this.contains(token); |
| 1278 return this.__originalDOMTokenListToggle(token, !!force); | 1277 return this.__originalDOMTokenListToggle(token, !!force); |
| 1279 }; | 1278 }; |
| 1280 } | 1279 } |
| 1281 | 1280 |
| 1282 })(window); | 1281 })(window); |
| OLD | NEW |