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

Unified Diff: ui/webui/resources/js/cr/ui/focus_row.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/focus_row.js
diff --git a/ui/webui/resources/js/cr/ui/focus_row.js b/ui/webui/resources/js/cr/ui/focus_row.js
index 415c1ea9956f73fdf6a4feabf9e651fe48bde305..36b5865440638f81496d980145acb7e65bc95ead 100644
--- a/ui/webui/resources/js/cr/ui/focus_row.js
+++ b/ui/webui/resources/js/cr/ui/focus_row.js
@@ -121,15 +121,12 @@ cr.define('cr.ui', function() {
this.eventTracker.add(element, 'blur', this.onBlur_.bind(this));
this.eventTracker.add(element, 'focus', this.onFocus_.bind(this));
this.eventTracker.add(element, 'keydown', this.onKeydown_.bind(this));
- this.eventTracker.add(element, 'mousedown',
- this.onMousedown_.bind(this));
+ this.eventTracker.add(element, 'mousedown', this.onMousedown_.bind(this));
return true;
},
/** Dereferences nodes and removes event handlers. */
- destroy: function() {
- this.eventTracker.removeAll();
- },
+ destroy: function() { this.eventTracker.removeAll(); },
/**
* @param {!Element} sampleElement An element for to find an equivalent for.
@@ -222,10 +219,10 @@ cr.define('cr.ui', function() {
* @private
*/
onBlur_: function(e) {
- if (!this.boundary_.contains(/** @type {Element} */(e.relatedTarget)))
+ if (!this.boundary_.contains(/** @type {Element} */ (e.relatedTarget)))
return;
- var currentTarget = /** @type {!Element} */(e.currentTarget);
+ var currentTarget = /** @type {!Element} */ (e.currentTarget);
if (this.getFocusableElements().indexOf(currentTarget) >= 0)
this.makeActive(false);
},
@@ -259,7 +256,7 @@ cr.define('cr.ui', function() {
*/
onKeydown_: function(e) {
var elements = this.getFocusableElements();
- var currentElement = /** @type {!Element} */(e.currentTarget);
+ var currentElement = /** @type {!Element} */ (e.currentTarget);
var elementIndex = elements.indexOf(currentElement);
assert(elementIndex >= 0);

Powered by Google App Engine
This is Rietveld 408576698