Chromium Code Reviews| 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) |