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

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

Issue 199055: DevTools: add setting/setSetting methods to InspectorController in front-end (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 | « no previous file | 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_impl.js
===================================================================
--- webkit/glue/devtools/js/inspector_controller_impl.js (revision 25714)
+++ webkit/glue/devtools/js/inspector_controller_impl.js (working copy)
@@ -25,25 +25,8 @@
this.installInspectorControllerDelegate_('disableResourceTracking');
this.installInspectorControllerDelegate_('enableTimeline');
this.installInspectorControllerDelegate_('disableTimeline');
-
- //TODO: nuke with the next WebKit roll.
- this.installInjectedScriptDelegate_('getStyles');
- this.installInjectedScriptDelegate_('getComputedStyle');
- this.installInjectedScriptDelegate_('getInlineStyle');
- this.installInjectedScriptDelegate_('applyStyleText');
- this.installInjectedScriptDelegate_('setStyleText');
- this.installInjectedScriptDelegate_('toggleStyleEnabled');
- this.installInjectedScriptDelegate_('applyStyleRuleText');
- this.installInjectedScriptDelegate_('addStyleSelector');
- this.installInjectedScriptDelegate_('setStyleProperty');
- this.installInjectedScriptDelegate_('getPrototypes');
- this.installInjectedScriptDelegate_('setPropertyValue');
- this.installInjectedScriptDelegate_('evaluate');
- this.installInjectedScriptDelegate_('addInspectedNode');
- this.installInjectedScriptDelegate_('pushNodeToFrontend');
- this.installInjectedScriptDelegate_('performSearch');
- this.installInjectedScriptDelegate_('searchCanceled');
- this.installInjectedScriptDelegate_('openInInspectedWindow');
+ this.installInspectorControllerDelegate_('setting');
pfeldman 2009/11/18 16:58:19 Hm... How is setting supposed to return the value
+ this.installInspectorControllerDelegate_('setSetting');
};
goog.inherits(devtools.InspectorControllerImpl,
devtools.InspectorController);
@@ -287,22 +270,9 @@
/**
- * TODO: nuke with the next WebKit roll.
- * Installs delegating handler into the inspector controller.
- * @param {string} methodName Method to install delegating handler for.
+ * This method allows calling a methods on InjectedScript object in the
+ * inspected page.
*/
-devtools.InspectorControllerImpl.prototype.installInjectedScriptDelegate_ =
- function(methodName) {
- this[methodName] = goog.bind(this.callInjectedScript_, this,
- methodName);
-};
-
-
-/**
- * TODO: nuke with the next WebKit roll.
- * Bound function with the installInjectedScriptDelegate_ actual
- * implementation.
- */
devtools.InspectorControllerImpl.prototype.callInjectedScript_ =
function(methodName, var_arg) {
var allArgs = Array.prototype.slice.call(arguments);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698