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

Side by Side Diff: Source/devtools/front_end/sdk/ContentProviderBasedProjectDelegate.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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 function innerCallback(success, newName) 135 function innerCallback(success, newName)
136 { 136 {
137 if (success) 137 if (success)
138 this._updateName(path, /** @type {string} */ (newName)); 138 this._updateName(path, /** @type {string} */ (newName));
139 callback(success, newName); 139 callback(success, newName);
140 } 140 }
141 }, 141 },
142 142
143 /** 143 /**
144 * @param {string} path 144 * @param {string} path
145 * @param {function()=} callback
145 */ 146 */
146 refresh: function(path) 147 refresh: function(path, callback)
147 { 148 {
149 if (callback)
150 callback();
148 }, 151 },
149 152
150 /** 153 /**
151 * @param {string} path 154 * @param {string} path
152 */ 155 */
153 excludeFolder: function(path) 156 excludeFolder: function(path)
154 { 157 {
155 }, 158 },
156 159
157 /** 160 /**
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 return this._contentProviders; 336 return this._contentProviders;
334 }, 337 },
335 338
336 reset: function() 339 reset: function()
337 { 340 {
338 this._contentProviders = {}; 341 this._contentProviders = {};
339 this._workspace.removeProject(this._id); 342 this._workspace.removeProject(this._id);
340 this._projectStore = this._workspace.addProject(this._id, this); 343 this._projectStore = this._workspace.addProject(this._id, this);
341 } 344 }
342 } 345 }
OLDNEW
« no previous file with comments | « no previous file | Source/devtools/front_end/sdk/FileSystemWorkspaceBinding.js » ('j') | Source/devtools/front_end/sdk/Workspace.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698