Chromium Code Reviews| 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 fileSystemFilesChanged: function(changedPaths, addedPaths, removedPaths) |
|
dgozman
2016/10/04 00:17:02
Let's add JSDoc.
lushnikov
2016/10/04 01:04:18
Done.
| |
| 198 { | 198 { |
| 199 this._dispatchOnInspectorFrontendAPI("fileSystemFilesChanged", [path]); | 199 this._dispatchOnInspectorFrontendAPI("fileSystemFilesChanged", [changedP aths, addedPaths, removedPaths]); |
|
dgozman
2016/10/04 00:17:02
I'd rename the method to fileSystemPathsChanged to
lushnikov
2016/10/04 01:04:18
Nice, thanks!
As per offline discussion, I've ref
| |
| 200 }, | 200 }, |
| 201 | 201 |
| 202 /** | 202 /** |
| 203 * @param {number} requestId | 203 * @param {number} requestId |
| 204 * @param {string} fileSystemPath | 204 * @param {string} fileSystemPath |
| 205 * @param {number} totalWork | 205 * @param {number} totalWork |
| 206 */ | 206 */ |
| 207 indexingTotalWorkCalculated: function(requestId, fileSystemPath, totalWork) | 207 indexingTotalWorkCalculated: function(requestId, fileSystemPath, totalWork) |
| 208 { | 208 { |
| 209 this._dispatchOnInspectorFrontendAPI("indexingTotalWorkCalculated", [req uestId, fileSystemPath, totalWork]); | 209 this._dispatchOnInspectorFrontendAPI("indexingTotalWorkCalculated", [req uestId, fileSystemPath, totalWork]); |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1177 | 1177 |
| 1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { | 1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { |
| 1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; | 1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; |
| 1180 DOMTokenList.prototype.toggle = function(token, force) | 1180 DOMTokenList.prototype.toggle = function(token, force) |
| 1181 { | 1181 { |
| 1182 if (arguments.length === 1) | 1182 if (arguments.length === 1) |
| 1183 force = !this.contains(token); | 1183 force = !this.contains(token); |
| 1184 return this.__originalDOMTokenListToggle(token, !!force); | 1184 return this.__originalDOMTokenListToggle(token, !!force); |
| 1185 } | 1185 } |
| 1186 } | 1186 } |
| OLD | NEW |