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

Unified Diff: ui/webui/resources/js/cr/ui/autocomplete_list.js

Issue 2597013002: Run clang-format on ui/webui/resources (Closed)
Patch Set: remove cr_shared_menu.js Created 4 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
Index: ui/webui/resources/js/cr/ui/autocomplete_list.js
diff --git a/ui/webui/resources/js/cr/ui/autocomplete_list.js b/ui/webui/resources/js/cr/ui/autocomplete_list.js
index 71e3e2fbce395b56d9a4df16f681dd859b0f21ec..0c140cb611deeb216c1fe097f67f49b9b1f8b3b2 100644
--- a/ui/webui/resources/js/cr/ui/autocomplete_list.js
+++ b/ui/webui/resources/js/cr/ui/autocomplete_list.js
@@ -126,17 +126,14 @@ cr.define('cr.ui', function() {
* Requests new suggestions. Called when new suggestions are needed.
* @param {string} query the text to autocomplete from.
*/
- requestSuggestions: function(query) {
- },
+ requestSuggestions: function(query) {},
/**
* Handles the Enter keydown event.
* By default, clears and hides the autocomplete popup. Note that the
* keydown event bubbles up, so the input field can handle the event.
*/
- handleEnterKeydown: function() {
- this.suggestions = [];
- },
+ handleEnterKeydown: function() { this.suggestions = []; },
/**
* Handles the selected suggestion. Called when a suggestion is selected.
@@ -225,9 +222,7 @@ cr.define('cr.ui', function() {
* @return {HTMLElement} The text field the autocomplete popup is currently
* attached to, if any.
*/
- get targetInput() {
- return this.targetInput_;
- },
+ get targetInput() { return this.targetInput_; },
/**
* Handles input field key events that should be interpreted as autocomplete
@@ -265,7 +260,5 @@ cr.define('cr.ui', function() {
},
};
- return {
- AutocompleteList: AutocompleteList
- };
+ return {AutocompleteList: AutocompleteList};
});

Powered by Google App Engine
This is Rietveld 408576698