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

Unified Diff: ui/webui/resources/js/cr/ui/dialogs.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
« no previous file with comments | « ui/webui/resources/js/cr/ui/controlled_indicator.js ('k') | ui/webui/resources/js/cr/ui/drag_wrapper.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/webui/resources/js/cr/ui/dialogs.js
diff --git a/ui/webui/resources/js/cr/ui/dialogs.js b/ui/webui/resources/js/cr/ui/dialogs.js
index 4ec7ed48d7be74705aaa53cb30cf26b69f75f394..96693e08d83d491a0ea78d0286a7c2b7e55397bb 100644
--- a/ui/webui/resources/js/cr/ui/dialogs.js
+++ b/ui/webui/resources/js/cr/ui/dialogs.js
@@ -171,8 +171,10 @@ cr.define('cr.ui.dialogs', function() {
/** @private */
BaseDialog.prototype.findFocusableElements_ = function(doc) {
- var elements = Array.prototype.filter.call(
- doc.querySelectorAll('*'), function(n) { return n.tabIndex >= 0; });
+ var elements =
+ Array.prototype.filter.call(doc.querySelectorAll('*'), function(n) {
+ return n.tabIndex >= 0;
+ });
var iframes = doc.querySelectorAll('iframe');
for (var i = 0; i < iframes.length; i++) {
@@ -217,7 +219,9 @@ cr.define('cr.ui.dialogs', function() {
this.tabIndexes_ = this.deactivatedNodes_.map(function(n) {
return n.getAttribute('tabindex');
});
- this.deactivatedNodes_.forEach(function(n) { n.tabIndex = -1; });
+ this.deactivatedNodes_.forEach(function(n) {
+ n.tabIndex = -1;
+ });
this.previousActiveElement_ = this.document_.activeElement;
this.parentNode_.appendChild(this.container_);
@@ -306,7 +310,9 @@ cr.define('cr.ui.dialogs', function() {
* @constructor
* @extends {cr.ui.dialogs.BaseDialog}
*/
- function ConfirmDialog(parentNode) { BaseDialog.call(this, parentNode); }
+ function ConfirmDialog(parentNode) {
+ BaseDialog.call(this, parentNode);
+ }
ConfirmDialog.prototype = {__proto__: BaseDialog.prototype};
@@ -357,7 +363,9 @@ cr.define('cr.ui.dialogs', function() {
this, message, opt_onOk, opt_onCancel, opt_onShow);
};
- PromptDialog.prototype.getValue = function() { return this.input_.value; };
+ PromptDialog.prototype.getValue = function() {
+ return this.input_.value;
+ };
/** @private */
PromptDialog.prototype.onOkClick_ = function(event) {
« no previous file with comments | « ui/webui/resources/js/cr/ui/controlled_indicator.js ('k') | ui/webui/resources/js/cr/ui/drag_wrapper.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698