OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 if (error) { | 153 if (error) { |
154 callback(null, false); | 154 callback(null, false); |
155 return; | 155 return; |
156 } | 156 } |
157 | 157 |
158 if (returnByValue) | 158 if (returnByValue) |
159 callback(null, !!wasThrown, wasThrown ? null : result); | 159 callback(null, !!wasThrown, wasThrown ? null : result); |
160 else | 160 else |
161 callback(WebInspector.RemoteObject.fromPayload(result), !!wasThr
own); | 161 callback(WebInspector.RemoteObject.fromPayload(result), !!wasThr
own); |
162 } | 162 } |
163 RuntimeAgent.evaluate(expression, objectGroup, includeCommandLineAPI, do
NotPauseOnExceptionsAndMuteConsole, this._currentExecutionContext ? this._curren
tExecutionContext.id : undefined, returnByValue, generatePreview, evalCallback); | 163 RuntimeAgent.evaluate(expression, objectGroup, includeCommandLineAPI, do
NotPauseOnExceptionsAndMuteConsole, this._currentExecutionContext ? this._curren
tExecutionContext.id : undefined, returnByValue, false, generatePreview, evalCal
lback); |
164 }, | 164 }, |
165 | 165 |
166 /** | 166 /** |
167 * @param {Element} proxyElement | 167 * @param {Element} proxyElement |
168 * @param {Range} wordRange | 168 * @param {Range} wordRange |
169 * @param {boolean} force | 169 * @param {boolean} force |
170 * @param {function(!Array.<string>, number=)} completionsReadyCallback | 170 * @param {function(!Array.<string>, number=)} completionsReadyCallback |
171 */ | 171 */ |
172 completionsForTextPrompt: function(proxyElement, wordRange, force, completio
nsReadyCallback) | 172 completionsForTextPrompt: function(proxyElement, wordRange, force, completio
nsReadyCallback) |
173 { | 173 { |
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 if (subtitle) { | 447 if (subtitle) { |
448 if (!name) | 448 if (!name) |
449 return subtitle; | 449 return subtitle; |
450 return name + "( " + subtitle + " )"; | 450 return name + "( " + subtitle + " )"; |
451 } | 451 } |
452 return "<iframe>"; | 452 return "<iframe>"; |
453 }, | 453 }, |
454 | 454 |
455 __proto__: WebInspector.Object.prototype | 455 __proto__: WebInspector.Object.prototype |
456 } | 456 } |
OLD | NEW |