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

Side by Side Diff: webkit/glue/devtools/js/devtools_host_stub.js

Issue 100199: DevTools: Implement styles editing. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview These stubs emulate backend functionality and allows 6 * @fileoverview These stubs emulate backend functionality and allows
7 * DevTools frontend to function as a standalone web app. 7 * DevTools frontend to function as a standalone web app.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 attr: [2, null, null, null, ['display', false, false, '', 'none']] 178 attr: [2, null, null, null, ['display', false, false, '', 'none']]
179 }, 179 },
180 'matchedCSSRules' : [ 180 'matchedCSSRules' : [
181 { 'selector' : 'S', 181 { 'selector' : 'S',
182 'style' : [3, null, null, null, ['display', false, false, '', 'none' ]], 182 'style' : [3, null, null, null, ['display', false, false, '', 'none' ]],
183 'parentStyleSheet' : { 'href' : 'http://localhost', 183 'parentStyleSheet' : { 'href' : 'http://localhost',
184 'ownerNodeName' : 'DIV' } 184 'ownerNodeName' : 'DIV' }
185 } 185 }
186 ] 186 ]
187 }; 187 };
188 } else if (functionName == 'toggleNodeStyle') { 188 } else if (functionName == 'toggleNodeStyle' ||
189 alert('toggleNodeStyle ' + args); 189 functionName == 'applyStyleText') {
190 alert(functionName + '(' + args + ')');
190 } else { 191 } else {
191 alert('Unexpected utility function:' + functionName); 192 alert('Unexpected utility function:' + functionName);
192 } 193 }
193 RemoteToolsAgent.DidExecuteUtilityFunction(callId, 194 RemoteToolsAgent.DidExecuteUtilityFunction(callId,
194 goog.json.serialize(result), ''); 195 goog.json.serialize(result), '');
195 }, 0); 196 }, 0);
196 }; 197 };
197 198
198 199
199 RemoteToolsAgentStub.prototype.GetNodePrototypes = function(callId, nodeId) { 200 RemoteToolsAgentStub.prototype.GetNodePrototypes = function(callId, nodeId) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 245
245 if (!window['DevToolsHost']) { 246 if (!window['DevToolsHost']) {
246 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); 247 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub();
247 window['RemoteDebuggerCommandExecutor'] = 248 window['RemoteDebuggerCommandExecutor'] =
248 new RemoteDebuggerCommandExecutorStub(); 249 new RemoteDebuggerCommandExecutorStub();
249 window['RemoteDomAgent'] = new RemoteDomAgentStub(); 250 window['RemoteDomAgent'] = new RemoteDomAgentStub();
250 window['RemoteNetAgent'] = new RemoteNetAgentStub(); 251 window['RemoteNetAgent'] = new RemoteNetAgentStub();
251 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); 252 window['RemoteToolsAgent'] = new RemoteToolsAgentStub();
252 window['DevToolsHost'] = new DevToolsHostStub(); 253 window['DevToolsHost'] = new DevToolsHostStub();
253 } 254 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698