diff options
author | yurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 09:19:43 +0000 |
---|---|---|
committer | yurys@google.com <yurys@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-09 09:19:43 +0000 |
commit | 47b8c3d381e302d3b7ced7b702520fdfcc1a9119 (patch) | |
tree | ccdd9e863321600a0b477ea21b1aad9c5f452f51 /webkit | |
parent | 55b831bd93973581b14d7623657ada89d2036664 (diff) | |
download | chromium_src-47b8c3d381e302d3b7ced7b702520fdfcc1a9119.zip chromium_src-47b8c3d381e302d3b7ced7b702520fdfcc1a9119.tar.gz chromium_src-47b8c3d381e302d3b7ced7b702520fdfcc1a9119.tar.bz2 |
DevTools: add setting/setSetting methods to InspectorController in front-end.
Nuke some methods that now live in WebKit.
BUG=21277
Review URL: http://codereview.chromium.org/199055
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25715 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r-- | webkit/glue/devtools/js/inspector_controller_impl.js | 38 |
1 files changed, 4 insertions, 34 deletions
diff --git a/webkit/glue/devtools/js/inspector_controller_impl.js b/webkit/glue/devtools/js/inspector_controller_impl.js index 50b6f48..359a02b 100644 --- a/webkit/glue/devtools/js/inspector_controller_impl.js +++ b/webkit/glue/devtools/js/inspector_controller_impl.js @@ -25,25 +25,8 @@ devtools.InspectorControllerImpl = function() { 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'); + this.installInspectorControllerDelegate_('setSetting'); }; goog.inherits(devtools.InspectorControllerImpl, devtools.InspectorController); @@ -287,21 +270,8 @@ devtools.InspectorControllerImpl.prototype.dispatchOnInjectedScript = function( /** - * TODO: nuke with the next WebKit roll. - * Installs delegating handler into the inspector controller. - * @param {string} methodName Method to install delegating handler for. - */ -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. + * This method allows calling a methods on InjectedScript object in the + * inspected page. */ devtools.InspectorControllerImpl.prototype.callInjectedScript_ = function(methodName, var_arg) { |