Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/devtools.js

Issue 2384343002: DevTools: improve DevTools file watcher to send added and removed paths (Closed)
Patch Set: honing skills. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 */
200 fileSystemFilesChanged: function(changedPaths)
198 { 201 {
199 this._dispatchOnInspectorFrontendAPI("fileSystemFilesChanged", [path]); 202 this._dispatchOnInspectorFrontendAPI("fileSystemFilesChanged", [changedP aths]);
200 }, 203 },
201 204
202 /** 205 /**
203 * @param {number} requestId 206 * @param {number} requestId
204 * @param {string} fileSystemPath 207 * @param {string} fileSystemPath
205 * @param {number} totalWork 208 * @param {number} totalWork
206 */ 209 */
207 indexingTotalWorkCalculated: function(requestId, fileSystemPath, totalWork) 210 indexingTotalWorkCalculated: function(requestId, fileSystemPath, totalWork)
208 { 211 {
209 this._dispatchOnInspectorFrontendAPI("indexingTotalWorkCalculated", [req uestId, fileSystemPath, totalWork]); 212 this._dispatchOnInspectorFrontendAPI("indexingTotalWorkCalculated", [req uestId, fileSystemPath, totalWork]);
(...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after
1177 1180
1178 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) { 1181 if (!DOMTokenList.prototype.__originalDOMTokenListToggle) {
1179 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle; 1182 DOMTokenList.prototype.__originalDOMTokenListToggle = DOMTokenList.prototype .toggle;
1180 DOMTokenList.prototype.toggle = function(token, force) 1183 DOMTokenList.prototype.toggle = function(token, force)
1181 { 1184 {
1182 if (arguments.length === 1) 1185 if (arguments.length === 1)
1183 force = !this.contains(token); 1186 force = !this.contains(token);
1184 return this.__originalDOMTokenListToggle(token, !!force); 1187 return this.__originalDOMTokenListToggle(token, !!force);
1185 } 1188 }
1186 } 1189 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698