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

Unified Diff: chrome/browser/resources/chromeos/chromevox/common/focuser.js

Issue 2943193002: Run clang-format on .js files in c/b/r/chromeos/chromevox (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/chromevox/common/focuser.js
diff --git a/chrome/browser/resources/chromeos/chromevox/common/focuser.js b/chrome/browser/resources/chromeos/chromevox/common/focuser.js
index f0a29d87c4364cb220b56dad88343bb17474c6f8..dede4422716b28a399c58a4a6e834aec2913ae0e 100644
--- a/chrome/browser/resources/chromeos/chromevox/common/focuser.js
+++ b/chrome/browser/resources/chromeos/chromevox/common/focuser.js
@@ -73,15 +73,14 @@ cvox.Focuser.setFocus = function(targetNode, opt_focusDescendants) {
targetNode.focus();
cvox.ChromeVoxEventSuspender.exitSuspendEvents();
}, 0);
- }
- else {
+ } else {
window.setTimeout(function() {
- targetNode.focus();
+ targetNode.focus();
}, 0);
}
}
- } else if (document.activeElement &&
- document.activeElement.tagName != 'BODY') {
+ } else if (
+ document.activeElement && document.activeElement.tagName != 'BODY') {
document.activeElement.blur();
}
@@ -103,7 +102,7 @@ cvox.Focuser.setFocus = function(targetNode, opt_focusDescendants) {
* @param {Node} targetNode The node that is being focused.
* @return {boolean} True if enterSuspendEvents should be called.
*/
-cvox.Focuser.shouldEnterSuspendEvents_ = function(targetNode){
+cvox.Focuser.shouldEnterSuspendEvents_ = function(targetNode) {
if (targetNode.constructor && targetNode.constructor == HTMLVideoElement) {
return false;
}

Powered by Google App Engine
This is Rietveld 408576698