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

Unified Diff: Source/devtools/front_end/host/InspectorFrontendHost.js

Issue 1066813003: 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/host/InspectorFrontendHost.js
diff --git a/Source/devtools/front_end/host/InspectorFrontendHost.js b/Source/devtools/front_end/host/InspectorFrontendHost.js
index f1f88a8e806a4901a66bb37daa6407bc53312baa..d0aa45db09b7d6d1da9a00230ef0cbc7472b5fd0 100644
--- a/Source/devtools/front_end/host/InspectorFrontendHost.js
+++ b/Source/devtools/front_end/host/InspectorFrontendHost.js
@@ -207,6 +207,24 @@ InspectorFrontendHostAPI.prototype = {
loadNetworkResource: function(url, headers, streamId, callback) { },
/**
+ * @param {function(!Object<string, string>)} callback
+ */
+ getPreferences: function(callback) { },
+
+ /**
+ * @param {string} name
+ * @param {string} value
+ */
+ setPreference: function(name, value) { },
+
+ /**
+ * @param {string} name
+ */
+ removePreference: function(name) { },
+
+ clearPreferences: function() { },
+
+ /**
* @param {!FileSystem} fileSystem
*/
upgradeDraggedFileSystemPermissions: function(fileSystem) { },
@@ -502,6 +520,39 @@ WebInspector.InspectorFrontendHostStub.prototype = {
/**
* @override
+ * @param {function(!Object<string, string>)} callback
+ */
+ getPreferences: function(callback)
+ {
+ callback({});
+ },
+
+ /**
+ * @override
+ * @param {string} name
+ * @param {string} value
+ */
+ setPreference: function(name, value)
dgozman 2015/04/13 14:25:38 Implement stub based on localStorage.
pfeldman 2015/04/13 16:03:38 Done.
+ {
+ },
+
+ /**
+ * @override
+ * @param {string} name
+ */
+ removePreference: function(name)
+ {
+ },
+
+ /**
+ * @override
+ */
+ clearPreferences: function()
+ {
+ },
+
+ /**
+ * @override
* @param {!FileSystem} fileSystem
*/
upgradeDraggedFileSystemPermissions: function(fileSystem)

Powered by Google App Engine
This is Rietveld 408576698