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

Unified Diff: webkit/glue/devtools/js/inspector_controller.js

Issue 196060: DevTools: A quick fix to enable interactive_ui_tests.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/debugger/devtools_sanity_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698