| 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 | 4 |
| 5 (function(window) { | 5 (function(window) { |
| 6 | 6 |
| 7 // DevToolsAPI ---------------------------------------------------------------- | 7 // DevToolsAPI ---------------------------------------------------------------- |
| 8 | 8 |
| 9 /** | 9 /** |
| 10 * @constructor | 10 * @constructor |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 /** | 133 /** |
| 134 * @param {!Array.<!Adb.Device>} devices | 134 * @param {!Array.<!Adb.Device>} devices |
| 135 */ | 135 */ |
| 136 devicesUpdated: function(devices) | 136 devicesUpdated: function(devices) |
| 137 { | 137 { |
| 138 this._dispatchOnInspectorFrontendAPI("devicesUpdated", [devices]); | 138 this._dispatchOnInspectorFrontendAPI("devicesUpdated", [devices]); |
| 139 }, | 139 }, |
| 140 | 140 |
| 141 /** | 141 /** |
| 142 * @param {string} message | 142 * @param {!Object|string} message |
| 143 */ | 143 */ |
| 144 dispatchMessage: function(message) | 144 dispatchMessage: function(message) |
| 145 { | 145 { |
| 146 this._dispatchOnInspectorFrontendAPI("dispatchMessage", [message]); | 146 this._dispatchOnInspectorFrontendAPI("dispatchMessage", [message]); |
| 147 }, | 147 }, |
| 148 | 148 |
| 149 /** | 149 /** |
| 150 * @param {string} messageChunk | 150 * @param {string} messageChunk |
| 151 * @param {number} messageSize | 151 * @param {number} messageSize |
| 152 */ | 152 */ |
| (...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 | 1052 |
| 1053 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1053 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1054 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1054 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1055 DOMTokenList.prototype.toggle = function(token, force) | 1055 DOMTokenList.prototype.toggle = function(token, force) |
| 1056 { | 1056 { |
| 1057 if (arguments.length === 1) | 1057 if (arguments.length === 1) |
| 1058 force = !this.contains(token); | 1058 force = !this.contains(token); |
| 1059 return this.__originalDOMTokenListToggle(token, !!force); | 1059 return this.__originalDOMTokenListToggle(token, !!force); |
| 1060 } | 1060 } |
| 1061 } | 1061 } |
| OLD | NEW |