| Index: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| diff --git a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| index ce58e04b879885d37f0d35f446785dac353412c6..0f7d09e6b52d67cd1eaf6038d994a2b16b4f023b 100644
|
| --- a/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| +++ b/third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
|
| @@ -44,6 +44,7 @@ WebInspector.TextPrompt = function(completions, stopCharacters)
|
| this._loadCompletions = completions;
|
| this._completionStopCharacters = stopCharacters || " =:[({;,!+-*/&|^<>.";
|
| this._autocompletionTimeout = WebInspector.TextPrompt.DefaultAutocompletionTimeout;
|
| + this._title = "";
|
| }
|
|
|
| WebInspector.TextPrompt.DefaultAutocompletionTimeout = 250;
|
| @@ -137,6 +138,9 @@ WebInspector.TextPrompt.prototype = {
|
| if (this._suggestBoxEnabled)
|
| this._suggestBox = new WebInspector.SuggestBox(this);
|
|
|
| + if (this._title)
|
| + this._proxyElement.title = this._title;
|
| +
|
| return this._proxyElement;
|
| },
|
|
|
| @@ -189,6 +193,24 @@ WebInspector.TextPrompt.prototype = {
|
| this._element.scrollIntoView();
|
| },
|
|
|
| + /**
|
| + * @return {string}
|
| + */
|
| + title: function()
|
| + {
|
| + return this._title;
|
| + },
|
| +
|
| + /**
|
| + * @param {string} title
|
| + */
|
| + setTitle: function(title)
|
| + {
|
| + this._title = title;
|
| + if (this._proxyElement)
|
| + this.proxyElement.title = title;
|
| + },
|
| +
|
| _removeFromElement: function()
|
| {
|
| this.clearAutoComplete(true);
|
|
|