Chromium Code Reviews| Index: Source/devtools/front_end/ui/TextPrompt.js |
| diff --git a/Source/devtools/front_end/ui/TextPrompt.js b/Source/devtools/front_end/ui/TextPrompt.js |
| index 0734a53893b67189014a7d98df5db2599609428d..c6456c1a4e3b57bc84598531bd8e82ad33a46676 100644 |
| --- a/Source/devtools/front_end/ui/TextPrompt.js |
| +++ b/Source/devtools/front_end/ui/TextPrompt.js |
| @@ -31,7 +31,7 @@ |
| * @constructor |
| * @extends {WebInspector.Object} |
| * @implements {WebInspector.SuggestBoxDelegate} |
| - * @param {function(!Element, !Range, boolean, function(!Array.<string>, number=))} completions |
| + * @param {function(!Element, string, number, !Range, boolean, function(!Array.<string>, number=))} completions |
|
pfeldman
2015/08/13 21:15:47
This is worth a separate patch.
wes
2015/08/14 00:55:05
Adding extra parameters to the completions delegat
|
| * @param {string=} stopCharacters |
| */ |
| WebInspector.TextPrompt = function(completions, stopCharacters) |
| @@ -400,7 +400,7 @@ WebInspector.TextPrompt.prototype = { |
| var wordPrefixRange = selectionRange.startContainer.rangeOfWord(selectionRange.startOffset, this._completionStopCharacters, this._element, "backward"); |
| this._waitingForCompletions = true; |
| - this._loadCompletions(/** @type {!Element} */ (this._proxyElement), wordPrefixRange, force || false, this._completionsReady.bind(this, selection, wordPrefixRange, !!reverse)); |
| + this._loadCompletions(/** @type {!Element} */ (this._proxyElement), this.text(), selectionRange.startOffset, wordPrefixRange, force || false, this._completionsReady.bind(this, selection, wordPrefixRange, !!reverse)); |
| }, |
| disableDefaultSuggestionForEmptyInput: function() |
| @@ -762,7 +762,7 @@ WebInspector.TextPrompt.prototype = { |
| /** |
| * @constructor |
| * @extends {WebInspector.TextPrompt} |
| - * @param {function(!Element, !Range, boolean, function(!Array.<string>, number=))} completions |
| + * @param {function(!Element, string, number, !Range, boolean, function(!Array.<string>, number=))} completions |
| * @param {string=} stopCharacters |
| */ |
| WebInspector.TextPromptWithHistory = function(completions, stopCharacters) |