Index: webkit/glue/devtools/js/inspector_controller.js |
=================================================================== |
--- webkit/glue/devtools/js/inspector_controller.js (revision 25709) |
+++ webkit/glue/devtools/js/inspector_controller.js (working copy) |
@@ -51,6 +51,11 @@ |
* @type {boolean} |
*/ |
this.timelineEnabled_ = false; |
+ |
+ /** |
+ * @type {Object} |
+ */ |
+ this.settings_ = {}; |
}; |
@@ -479,4 +484,23 @@ |
function() { |
}; |
+ |
+/** |
+ * Sets a setting value in backend. |
+ */ |
+devtools.InspectorController.prototype.setSetting = |
+ function(setting, value) { |
+ this.settings_[setting] = value; |
+}; |
+ |
+ |
+/** |
+ * Retrieves a setting value stored in backend. |
+ */ |
+devtools.InspectorController.prototype.setting = |
+ function(setting) { |
+ return this.settings_[setting]; |
+}; |
+ |
+ |
var InspectorController = new devtools.InspectorController(); |