| 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 /* eslint-disable indent */ | 5 /* eslint-disable indent */ |
| 6 (function(window) { | 6 (function(window) { |
| 7 | 7 |
| 8 // DevToolsAPI ---------------------------------------------------------------- | 8 // DevToolsAPI ---------------------------------------------------------------- |
| 9 | 9 |
| 10 /** | 10 /** |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 }, | 187 }, |
| 188 | 188 |
| 189 /** | 189 /** |
| 190 * @param {!{fileSystemName: string, rootURL: string, fileSystemPath: string
}} fileSystem | 190 * @param {!{fileSystemName: string, rootURL: string, fileSystemPath: string
}} fileSystem |
| 191 */ | 191 */ |
| 192 fileSystemAdded: function(fileSystem) | 192 fileSystemAdded: function(fileSystem) |
| 193 { | 193 { |
| 194 this._dispatchOnInspectorFrontendAPI("fileSystemAdded", ["", fileSystem]
); | 194 this._dispatchOnInspectorFrontendAPI("fileSystemAdded", ["", fileSystem]
); |
| 195 }, | 195 }, |
| 196 | 196 |
| 197 fileSystemFilesChanged: function(path) | 197 /** |
| 198 * @param {!Array<string>} changedPaths |
| 199 * @param {!Array<string>} addedPaths |
| 200 * @param {!Array<string>} removedPaths |
| 201 */ |
| 202 fileSystemFilesChanged: function(changedPaths, addedPaths, removedPaths) |
| 198 { | 203 { |
| 199 this._dispatchOnInspectorFrontendAPI("fileSystemFilesChanged", [path]); | 204 this._dispatchOnInspectorFrontendAPI("fileSystemFilesChanged", [changedP
aths.concat(addedPaths, removedPaths)]); |
| 200 }, | 205 }, |
| 201 | 206 |
| 202 /** | 207 /** |
| 203 * @param {number} requestId | 208 * @param {number} requestId |
| 204 * @param {string} fileSystemPath | 209 * @param {string} fileSystemPath |
| 205 * @param {number} totalWork | 210 * @param {number} totalWork |
| 206 */ | 211 */ |
| 207 indexingTotalWorkCalculated: function(requestId, fileSystemPath, totalWork) | 212 indexingTotalWorkCalculated: function(requestId, fileSystemPath, totalWork) |
| 208 { | 213 { |
| 209 this._dispatchOnInspectorFrontendAPI("indexingTotalWorkCalculated", [req
uestId, fileSystemPath, totalWork]); | 214 this._dispatchOnInspectorFrontendAPI("indexingTotalWorkCalculated", [req
uestId, fileSystemPath, totalWork]); |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1177 | 1182 |
| 1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1183 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; | 1184 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype
.toggle; |
| 1180 DOMTokenList.prototype.toggle = function(token, force) | 1185 DOMTokenList.prototype.toggle = function(token, force) |
| 1181 { | 1186 { |
| 1182 if (arguments.length === 1) | 1187 if (arguments.length === 1) |
| 1183 force = !this.contains(token); | 1188 force = !this.contains(token); |
| 1184 return this.__originalDOMTokenListToggle(token, !!force); | 1189 return this.__originalDOMTokenListToggle(token, !!force); |
| 1185 } | 1190 } |
| 1186 } | 1191 } |
| OLD | NEW |