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

Side by Side Diff: Source/devtools/front_end/workspace/FileManager.js

Issue 1085253003: Revert of Revert of DevTools: allow storing devtools preferences on the browser side. [blink] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 16 matching lines...) Expand all
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 /** 31 /**
32 * @constructor 32 * @constructor
33 * @extends {WebInspector.Object} 33 * @extends {WebInspector.Object}
34 */ 34 */
35 WebInspector.FileManager = function() 35 WebInspector.FileManager = function()
36 { 36 {
37 this._savedURLsSetting = WebInspector.settings.createSetting("savedURLs", {} ); 37 this._savedURLsSetting = WebInspector.settings.createLocalSetting("savedURLs ", {});
38 38
39 /** @type {!Object.<string, ?function(boolean)>} */ 39 /** @type {!Object.<string, ?function(boolean)>} */
40 this._saveCallbacks = {}; 40 this._saveCallbacks = {};
41 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.SavedURL, this._savedURL, this); 41 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.SavedURL, this._savedURL, this);
42 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.CanceledSaveURL, this._canceledSaveURL, this); 42 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.CanceledSaveURL, this._canceledSaveURL, this);
43 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.AppendedToURL, this._appendedToURL, this); 43 InspectorFrontendHost.events.addEventListener(InspectorFrontendHostAPI.Event s.AppendedToURL, this._appendedToURL, this);
44 } 44 }
45 45
46 WebInspector.FileManager.EventTypes = { 46 WebInspector.FileManager.EventTypes = {
47 SavedURL: "SavedURL", 47 SavedURL: "SavedURL",
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 this.dispatchEventToListeners(WebInspector.FileManager.EventTypes.Append edToURL, url); 135 this.dispatchEventToListeners(WebInspector.FileManager.EventTypes.Append edToURL, url);
136 }, 136 },
137 137
138 __proto__: WebInspector.Object.prototype 138 __proto__: WebInspector.Object.prototype
139 } 139 }
140 140
141 /** 141 /**
142 * @type {?WebInspector.FileManager} 142 * @type {?WebInspector.FileManager}
143 */ 143 */
144 WebInspector.fileManager = null; 144 WebInspector.fileManager = null;
OLDNEW
« no previous file with comments | « Source/devtools/front_end/workspace/ExcludedFolderManager.js ('k') | Source/devtools/front_end/workspace/FileSystemMapping.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698