Skip to content

Commit

Permalink
DevTools: Normalize clearAutocomplete capitalization
Browse files Browse the repository at this point in the history
clearAutoComplete -> clearAutocomplete

BUG=none

Review-Url: https://codereview.chromium.org/2330283002
Cr-Commit-Position: refs/heads/master@{#418145}
  • Loading branch information
JoelEinbinder authored and Commit bot committed Sep 13, 2016
1 parent c2e0a2b commit 6d9ffa0
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ WebInspector.ConsoleView.prototype = {

_executionContextChanged: function()
{
this._prompt.clearAutoComplete();
this._prompt.clearAutocomplete();
if (!this._showAllMessagesCheckbox.checked())
this._updateMessageList();
},
Expand Down Expand Up @@ -370,7 +370,7 @@ WebInspector.ConsoleView.prototype = {

_hidePromptSuggestBox: function()
{
this._prompt.clearAutoComplete();
this._prompt.clearAutocomplete();
},

_scheduleViewportRefresh: function()
Expand Down Expand Up @@ -795,7 +795,7 @@ WebInspector.ConsoleView.prototype = {

event.consume(true);

this._prompt.clearAutoComplete();
this._prompt.clearAutocomplete();

var str = this._prompt.text();
if (!str.length)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ WebInspector.DatabaseQueryView.prototype = {
if (this._selectionTimeout)
clearTimeout(this._selectionTimeout);

this._prompt.clearAutoComplete();
this._prompt.clearAutocomplete();

/**
* @this {WebInspector.DatabaseQueryView}
Expand Down Expand Up @@ -128,7 +128,7 @@ WebInspector.DatabaseQueryView.prototype = {
{
event.consume(true);

this._prompt.clearAutoComplete();
this._prompt.clearAutocomplete();

var query = this._prompt.text();
if (!query.length)
Expand Down
28 changes: 14 additions & 14 deletions third_party/WebKit/Source/devtools/front_end/ui/TextPrompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ WebInspector.TextPrompt.prototype = {
this._boundOnInput = this.onInput.bind(this);
this._boundOnMouseWheel = this.onMouseWheel.bind(this);
this._boundSelectStart = this._selectStart.bind(this);
this._boundClearAutocomplete = this.clearAutoComplete.bind(this);
this._boundClearAutocomplete = this.clearAutocomplete.bind(this);
this._proxyElement = element.ownerDocument.createElement("span");
var shadowRoot = WebInspector.createShadowRootWithCoreStyles(this._proxyElement, "ui/textPrompt.css");
this._contentElement = shadowRoot.createChild("div");
Expand Down Expand Up @@ -182,7 +182,7 @@ WebInspector.TextPrompt.prototype = {
*/
setText: function(x)
{
this.clearAutoComplete();
this.clearAutocomplete();
if (!x) {
// Append a break element instead of setting textContent to make sure the selection is inside the prompt.
this._element.removeChildren();
Expand Down Expand Up @@ -215,7 +215,7 @@ WebInspector.TextPrompt.prototype = {

_removeFromElement: function()
{
this.clearAutoComplete();
this.clearAutocomplete();
this._element.removeEventListener("keydown", this._boundOnKeyDown, false);
this._element.removeEventListener("input", this._boundOnInput, false);
this._element.removeEventListener("selectstart", this._boundSelectStart, false);
Expand Down Expand Up @@ -260,7 +260,7 @@ WebInspector.TextPrompt.prototype = {
if (this._selectionTimeout)
clearTimeout(this._selectionTimeout);

this.clearAutoComplete();
this.clearAutocomplete();

/**
* @this {WebInspector.TextPrompt}
Expand All @@ -282,7 +282,7 @@ WebInspector.TextPrompt.prototype = {
*/
_updateAutoComplete: function(force)
{
this.clearAutoComplete();
this.clearAutocomplete();
this.autoCompleteSoon(force);
},

Expand Down Expand Up @@ -311,18 +311,18 @@ WebInspector.TextPrompt.prototype = {
break;
case "ArrowLeft":
case "Home":
this.clearAutoComplete();
this.clearAutocomplete();
break;
case "ArrowRight":
case "End":
if (this.isCaretAtEndOfPrompt())
handled = this.acceptAutoComplete();
else
this.clearAutoComplete();
this.clearAutocomplete();
break;
case "Escape":
if (this.isSuggestBoxVisible()) {
this.clearAutoComplete();
this.clearAutocomplete();
handled = true;
}
break;
Expand Down Expand Up @@ -372,7 +372,7 @@ WebInspector.TextPrompt.prototype = {
return result;
},

clearAutoComplete: function()
clearAutocomplete: function()
{
if (this.isSuggestBoxVisible())
this._suggestBox.hide();
Expand Down Expand Up @@ -407,7 +407,7 @@ WebInspector.TextPrompt.prototype = {
*/
complete: function(force, reverse)
{
this.clearAutoComplete();
this.clearAutocomplete();
var selection = this._element.getComponentSelection();
var selectionRange = selection && selection.rangeCount ? selection.getRangeAt(0) : null;
if (!selectionRange)
Expand All @@ -426,7 +426,7 @@ WebInspector.TextPrompt.prototype = {
shouldExit = true;
}
if (shouldExit) {
this.clearAutoComplete();
this.clearAutocomplete();
return;
}

Expand Down Expand Up @@ -523,7 +523,7 @@ WebInspector.TextPrompt.prototype = {
}

if (!annotatedCompletions.length) {
this.clearAutoComplete();
this.clearAutocomplete();
return;
}

Expand Down Expand Up @@ -666,7 +666,7 @@ WebInspector.TextPrompt.prototype = {
selection.addRange(finalSelectionRange);

if (!prefixAccepted) {
this.clearAutoComplete();
this.clearAutocomplete();
this.dispatchEventToListeners(WebInspector.TextPrompt.Events.ItemAccepted);
} else
this.autoCompleteSoon(true);
Expand Down Expand Up @@ -886,7 +886,7 @@ WebInspector.TextPromptWithHistory.prototype = {
if (newText !== undefined) {
event.consume(true);
this.setText(newText);
this.clearAutoComplete();
this.clearAutocomplete();

if (isPrevious) {
var firstNewlineIndex = this.text().indexOf("\n");
Expand Down

0 comments on commit 6d9ffa0

Please sign in to comment.