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

Unified Diff: Source/devtools/front_end/console/ConsoleView.js

Issue 780503003: [DevTools] Resizing DevTools window should clear autocomplete text from console prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: introducing _hidePromptSuggestBox Created 6 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/console/ConsoleView.js
diff --git a/Source/devtools/front_end/console/ConsoleView.js b/Source/devtools/front_end/console/ConsoleView.js
index d0c3e0eecc371f53999918b15578e99bcf0dc8bb..f19fc31818d8e5951081df08894f6fcb286d764e 100644
--- a/Source/devtools/front_end/console/ConsoleView.js
+++ b/Source/devtools/front_end/console/ConsoleView.js
@@ -438,8 +438,7 @@ WebInspector.ConsoleView.prototype = {
willHide: function()
{
- this._prompt.hideSuggestBox();
- this._prompt.clearAutoComplete(true);
+ this._hidePromptSuggestBox();
},
wasShown: function()
@@ -468,11 +467,17 @@ WebInspector.ConsoleView.prototype = {
onResize: function()
{
this._scheduleViewportRefresh();
- this._prompt.hideSuggestBox();
+ this._hidePromptSuggestBox();
if (this._viewport.scrolledToBottom())
this._immediatelyScrollToBottom();
},
+ _hidePromptSuggestBox: function()
+ {
+ this._prompt.hideSuggestBox();
+ this._prompt.clearAutoComplete(true);
+ },
+
_scheduleViewportRefresh: function()
{
/**
@@ -618,8 +623,7 @@ WebInspector.ConsoleView.prototype = {
this._clearCurrentSearchResultHighlight();
this._consoleMessages = [];
this._updateMessageList();
- this._prompt.hideSuggestBox();
- this._prompt.clearAutoComplete(true);
+ this._hidePromptSuggestBox();
if (this._searchRegex)
this._searchableView.updateSearchMatchesCount(0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698