Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(798)

Unified Diff: third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js

Issue 1824683002: Fixes 590477: Style pane numeric property change modifier shortcuts are undiscoverable. Shift mouse… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes 590477: Style pane numeric property change modifier shortcuts are undiscoverable. Shift mouse… Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698