| OLD | NEW |
| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 setTimeout(function() { | 120 setTimeout(function() { |
| 121 RemoteDomAgent.DidPerformSearch(callId, [1]); | 121 RemoteDomAgent.DidPerformSearch(callId, [1]); |
| 122 }, 0); | 122 }, 0); |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 | 125 |
| 126 RemoteDomAgentStub.prototype.DiscardBindings = function() { | 126 RemoteDomAgentStub.prototype.DiscardBindings = function() { |
| 127 }; | 127 }; |
| 128 | 128 |
| 129 | 129 |
| 130 RemoteDomAgentStub.prototype.GetNodeStyles = function(callId, id, authorOnly) { |
| 131 var styles = { |
| 132 computedStyle: "display: none", |
| 133 inlineStyle: "display: none", |
| 134 styleAttributes: {attr: "display: none"}, |
| 135 matchedCSSRules: [{selector: "S", cssText: "display: none", |
| 136 parentStyleSheetHref: "http://localhost", |
| 137 parentStyleSheetOwnerNodeName: "DIV"}] |
| 138 }; |
| 139 setTimeout(function() { |
| 140 RemoteDomAgent.DidGetNodeStyles(callId, styles); |
| 141 }, 0); |
| 142 }; |
| 143 |
| 144 |
| 130 /** | 145 /** |
| 131 * @constructor | 146 * @constructor |
| 132 */ | 147 */ |
| 133 RemoteToolsAgentStub = function() { | 148 RemoteToolsAgentStub = function() { |
| 134 }; | 149 }; |
| 135 | 150 |
| 136 | 151 |
| 137 RemoteToolsAgentStub.prototype.HideDOMNodeHighlight = function() { | 152 RemoteToolsAgentStub.prototype.HideDOMNodeHighlight = function() { |
| 138 }; | 153 }; |
| 139 | 154 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 237 |
| 223 if (!window['DevToolsHost']) { | 238 if (!window['DevToolsHost']) { |
| 224 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); | 239 window['RemoteDebuggerAgent'] = new RemoteDebuggerAgentStub(); |
| 225 window['RemoteDebuggerCommandExecutor'] = | 240 window['RemoteDebuggerCommandExecutor'] = |
| 226 new RemoteDebuggerCommandExecutorStub(); | 241 new RemoteDebuggerCommandExecutorStub(); |
| 227 window['RemoteDomAgent'] = new RemoteDomAgentStub(); | 242 window['RemoteDomAgent'] = new RemoteDomAgentStub(); |
| 228 window['RemoteNetAgent'] = new RemoteNetAgentStub(); | 243 window['RemoteNetAgent'] = new RemoteNetAgentStub(); |
| 229 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); | 244 window['RemoteToolsAgent'] = new RemoteToolsAgentStub(); |
| 230 window['DevToolsHost'] = new DevToolsHostStub(); | 245 window['DevToolsHost'] = new DevToolsHostStub(); |
| 231 } | 246 } |
| OLD | NEW |