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

Unified Diff: ui/webui/resources/js/cr/ui/splitter.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/repeating_button.js ('k') | ui/webui/resources/js/cr/ui/table.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/splitter.js
diff --git a/ui/webui/resources/js/cr/ui/splitter.js b/ui/webui/resources/js/cr/ui/splitter.js
index b2c601a5e9ca7fab0151bb94fd2f691c54d1b316..6b659bc0bb65f09bd55b8d8e5cdbcc79ff2e4b2f 100644
--- a/ui/webui/resources/js/cr/ui/splitter.js
+++ b/ui/webui/resources/js/cr/ui/splitter.js
@@ -78,7 +78,9 @@ cr.define('cr.ui', function() {
* @param {boolean} resizeNext True if resize the next element.
* By default, splitter resizes previous (left) element.
*/
- set resizeNextElement(resizeNext) { this.resizeNextElement_ = resizeNext; },
+ set resizeNextElement(resizeNext) {
+ this.resizeNextElement_ = resizeNext;
+ },
/**
* Starts the dragging of the splitter. Adds listeners for mouse or touch
@@ -187,7 +189,9 @@ cr.define('cr.ui', function() {
* @param {!MouseEvent} e The mouse event.
* @private
*/
- handleMouseMove_: function(e) { this.handleMove_(e.clientX); },
+ handleMouseMove_: function(e) {
+ this.handleMove_(e.clientX);
+ },
/**
* Handles the touch move event.
@@ -218,7 +222,9 @@ cr.define('cr.ui', function() {
* @param {!MouseEvent} e The mouse event.
* @private
*/
- handleMouseUp_: function(e) { this.endDrag_(); },
+ handleMouseUp_: function(e) {
+ this.endDrag_();
+ },
/**
* Handles start of the splitter dragging. Saves current width of the
« no previous file with comments | « ui/webui/resources/js/cr/ui/repeating_button.js ('k') | ui/webui/resources/js/cr/ui/table.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698