Chromium Code Reviews| Index: Source/devtools/front_end/components/ExecutionContextSelector.js |
| diff --git a/Source/devtools/front_end/components/ExecutionContextSelector.js b/Source/devtools/front_end/components/ExecutionContextSelector.js |
| index d4ffff7af2acf8d15ee212f8d58a4a75180a63b2..08a44e38e9617ef8daf7ecfd2000d5d943eb1355 100644 |
| --- a/Source/devtools/front_end/components/ExecutionContextSelector.js |
| +++ b/Source/devtools/front_end/components/ExecutionContextSelector.js |
| @@ -148,11 +148,13 @@ WebInspector.ExecutionContextSelector.prototype = { |
| /** |
| * @param {!Element} proxyElement |
| + * @param {string} text |
| + * @param {number} cursorOffset |
| * @param {!Range} wordRange |
| * @param {boolean} force |
| * @param {function(!Array.<string>, number=)} completionsReadyCallback |
| */ |
| -WebInspector.ExecutionContextSelector.completionsForTextPromptInCurrentContext = function(proxyElement, wordRange, force, completionsReadyCallback) |
| +WebInspector.ExecutionContextSelector.completionsForTextPromptInCurrentContext = function(proxyElement, text, cursorOffset, wordRange, force, completionsReadyCallback) |
|
pfeldman
2015/08/13 21:15:46
What is |text|?
wes
2015/08/14 00:55:05
The actual, whole text of the prompt within which
|
| { |
| var executionContext = WebInspector.context.flavor(WebInspector.ExecutionContext); |
| if (!executionContext) { |
| @@ -170,5 +172,5 @@ WebInspector.ExecutionContextSelector.completionsForTextPromptInCurrentContext = |
| expressionString = expressionString.substr(pos + 1); |
| var prefix = wordRange.toString(); |
| - executionContext.completionsForExpression(expressionString, prefix, force, completionsReadyCallback); |
| + executionContext.completionsForExpression(expressionString, text, cursorOffset, prefix, force, completionsReadyCallback); |
| } |