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

Unified Diff: ui/webui/resources/js/cr/ui/focus_outline_manager.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_outline_manager.js
diff --git a/ui/webui/resources/js/cr/ui/focus_outline_manager.js b/ui/webui/resources/js/cr/ui/focus_outline_manager.js
index 5a8ed8e81deb6fc97e20baa1d9a96971a78d7be3..8ca4f92334798c21d163dbd1d8be8f6aaf73b498 100644
--- a/ui/webui/resources/js/cr/ui/focus_outline_manager.js
+++ b/ui/webui/resources/js/cr/ui/focus_outline_manager.js
@@ -31,13 +31,11 @@ cr.define('cr.ui', function() {
var self = this;
- doc.addEventListener('keydown', function(e) {
- self.focusByKeyboard_ = true;
- }, true);
+ doc.addEventListener(
+ 'keydown', function(e) { self.focusByKeyboard_ = true; }, true);
- doc.addEventListener('mousedown', function(e) {
- self.focusByKeyboard_ = false;
- }, true);
+ doc.addEventListener(
+ 'mousedown', function(e) { self.focusByKeyboard_ = false; }, true);
doc.addEventListener('focus', function(event) {
// Update visibility only when focus is actually changed.
@@ -64,20 +62,14 @@ cr.define('cr.ui', function() {
*/
focusByKeyboard_: true,
- updateVisibility: function() {
- this.visible = this.focusByKeyboard_;
- },
+ updateVisibility: function() { this.visible = this.focusByKeyboard_; },
/**
* Whether the focus outline should be visible.
* @type {boolean}
*/
- set visible(visible) {
- this.classList_.toggle(CLASS_NAME, visible);
- },
- get visible() {
- return this.classList_.contains(CLASS_NAME);
- }
+ set visible(visible) { this.classList_.toggle(CLASS_NAME, visible); },
+ get visible() { return this.classList_.contains(CLASS_NAME); }
};
/**
@@ -102,7 +94,5 @@ cr.define('cr.ui', function() {
return manager;
};
- return {
- FocusOutlineManager: FocusOutlineManager
- };
+ return {FocusOutlineManager: FocusOutlineManager};
});

Powered by Google App Engine
This is Rietveld 408576698