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

Unified Diff: ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js

Issue 2603443002: Clang format JS: Disallow single line functions, conditionals, loops, and switch statements (Closed)
Patch Set: update c/b/r/ as well 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/cr_elements/cr_toolbar/cr_toolbar_search_field.js
diff --git a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
index 916d7d50f971bafe98f308bed22e1f2b60651ce1..3de204caa0e8a73008efac0bb36d4b15b9a4fbfb 100644
--- a/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
+++ b/ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar_search_field.js
@@ -50,7 +50,9 @@ Polymer({
},
/** @return {!HTMLInputElement} */
- getSearchInput: function() { return this.$.searchInput; },
+ getSearchInput: function() {
+ return this.$.searchInput;
+ },
/**
* Sets the value of the search field. Overridden from CrSearchFieldBehavior.
@@ -64,7 +66,9 @@ Polymer({
},
/** @return {boolean} */
- isSearchFocused: function() { return this.searchFocused_; },
+ isSearchFocused: function() {
+ return this.searchFocused_;
+ },
showAndFocus: function() {
this.showingSearch = true;
@@ -72,14 +76,18 @@ Polymer({
},
/** @private */
- focus_: function() { this.getSearchInput().focus(); },
+ focus_: function() {
+ this.getSearchInput().focus();
+ },
/**
* @param {boolean} narrow
* @return {number}
* @private
*/
- computeIconTabIndex_: function(narrow) { return narrow ? 0 : -1; },
+ computeIconTabIndex_: function(narrow) {
+ return narrow ? 0 : -1;
+ },
/**
* @return {boolean}
@@ -90,7 +98,9 @@ Polymer({
},
/** @private */
- onInputFocus_: function() { this.searchFocused_ = true; },
+ onInputFocus_: function() {
+ this.searchFocused_ = true;
+ },
/** @private */
onInputBlur_: function() {
« no previous file with comments | « ui/webui/resources/cr_elements/cr_toolbar/cr_toolbar.js ('k') | ui/webui/resources/cr_elements/network/cr_network_list.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698