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

Unified Diff: Source/devtools/front_end/sdk/Workspace.js

Issue 353743008: DevTools: Throttle file system refreshes on focus. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/sdk/Workspace.js
diff --git a/Source/devtools/front_end/sdk/Workspace.js b/Source/devtools/front_end/sdk/Workspace.js
index 4670b5e9e04939fcb6da7d4804b5a9ecb089307f..0cde1a39896d89fb52a594e9418c74c2f1271aa8 100644
--- a/Source/devtools/front_end/sdk/Workspace.js
+++ b/Source/devtools/front_end/sdk/Workspace.js
@@ -99,8 +99,9 @@ WebInspector.ProjectDelegate.prototype = {
/**
* @param {string} path
+ * @param {function()=} callback
*/
- refresh: function(path) { },
+ refresh: function(path, callback) { },
/**
* @param {string} path
@@ -438,10 +439,11 @@ WebInspector.Project.prototype = {
/**
* @param {string} path
+ * @param {function()=} callback
*/
- refresh: function(path)
+ refresh: function(path, callback)
{
- this._projectDelegate.refresh(path);
+ this._projectDelegate.refresh(path, callback);
},
/**
« no previous file with comments | « Source/devtools/front_end/sdk/IsolatedFileSystem.js ('k') | Source/devtools/front_end/sdk/WorkspaceController.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698