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

Unified Diff: chrome/browser/resources/chromeos/login/network_dropdown.js

Issue 2944703004: Run clang-format on .js files in c/b/r/chromeos (Closed)
Patch Set: Created 3 years, 6 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: chrome/browser/resources/chromeos/login/network_dropdown.js
diff --git a/chrome/browser/resources/chromeos/login/network_dropdown.js b/chrome/browser/resources/chromeos/login/network_dropdown.js
index 042def5281a0a8016d8975ae50fb02bad03a0154..469d15970054db02e43682df342edb5f28490623 100644
--- a/chrome/browser/resources/chromeos/login/network_dropdown.js
+++ b/chrome/browser/resources/chromeos/login/network_dropdown.js
@@ -45,8 +45,10 @@ cr.define('cr.ui', function() {
var thisBottom = thisTop + this.offsetHeight;
var itemTop = item.offsetTop;
var itemBottom = itemTop + item.offsetHeight;
- if (itemTop <= thisTop) return -1;
- if (itemBottom >= thisBottom) return 1;
+ if (itemTop <= thisTop)
+ return -1;
+ if (itemBottom >= thisBottom)
+ return 1;
return 0;
},
@@ -170,8 +172,8 @@ cr.define('cr.ui', function() {
}
this.container.selectItem(this.container.firstItem, false);
- var maxHeight = cr.ui.LoginUITools.getMaxHeightBeforeShelfOverlapping(
- this.container);
+ var maxHeight =
+ cr.ui.LoginUITools.getMaxHeightBeforeShelfOverlapping(this.container);
if (maxHeight < this.container.offsetHeight)
this.container.style.maxHeight = maxHeight + 'px';
},
@@ -300,8 +302,9 @@ cr.define('cr.ui', function() {
if (this.inFocus && !this.controller.isShown &&
(e.keyCode == DropDown.KEYCODE_ENTER ||
e.keyCode == DropDown.KEYCODE_SPACE ||
- (!useKeyboardFlow && (e.keyCode == DropDown.KEYCODE_UP ||
- e.keyCode == DropDown.KEYCODE_DOWN)))) {
+ (!useKeyboardFlow &&
+ (e.keyCode == DropDown.KEYCODE_UP ||
+ e.keyCode == DropDown.KEYCODE_DOWN)))) {
this.opening = true;
this.controller.isShown = true;
e.stopPropagation();
@@ -433,7 +436,5 @@ cr.define('cr.ui', function() {
useKeyboardFlow = true;
};
- return {
- DropDown: DropDown
- };
+ return {DropDown: DropDown};
});

Powered by Google App Engine
This is Rietveld 408576698