Commit 47b8c3d3 authored by yurys@google.com's avatar yurys@google.com

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
parent 55b831bd
...@@ -25,25 +25,8 @@ devtools.InspectorControllerImpl = function() { ...@@ -25,25 +25,8 @@ devtools.InspectorControllerImpl = function() {
this.installInspectorControllerDelegate_('disableResourceTracking'); this.installInspectorControllerDelegate_('disableResourceTracking');
this.installInspectorControllerDelegate_('enableTimeline'); this.installInspectorControllerDelegate_('enableTimeline');
this.installInspectorControllerDelegate_('disableTimeline'); this.installInspectorControllerDelegate_('disableTimeline');
this.installInspectorControllerDelegate_('setting');
//TODO: nuke with the next WebKit roll. this.installInspectorControllerDelegate_('setSetting');
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');
}; };
goog.inherits(devtools.InspectorControllerImpl, goog.inherits(devtools.InspectorControllerImpl,
devtools.InspectorController); devtools.InspectorController);
...@@ -287,21 +270,8 @@ devtools.InspectorControllerImpl.prototype.dispatchOnInjectedScript = function( ...@@ -287,21 +270,8 @@ devtools.InspectorControllerImpl.prototype.dispatchOnInjectedScript = function(
/** /**
* TODO: nuke with the next WebKit roll. * This method allows calling a methods on InjectedScript object in the
* Installs delegating handler into the inspector controller. * inspected page.
* @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.
*/ */
devtools.InspectorControllerImpl.prototype.callInjectedScript_ = devtools.InspectorControllerImpl.prototype.callInjectedScript_ =
function(methodName, var_arg) { function(methodName, var_arg) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment