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

Unified Diff: ui/webui/resources/js/cr/ui/list_selection_controller.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/list_item.js ('k') | ui/webui/resources/js/cr/ui/list_selection_model.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/list_selection_controller.js
diff --git a/ui/webui/resources/js/cr/ui/list_selection_controller.js b/ui/webui/resources/js/cr/ui/list_selection_controller.js
index ef925ea4c4f94eb96b61c4d51cf62eb39d1fd317..65525ada7f3bfe835c92d0a9e6cbd61fae919915 100644
--- a/ui/webui/resources/js/cr/ui/list_selection_controller.js
+++ b/ui/webui/resources/js/cr/ui/list_selection_controller.js
@@ -26,7 +26,9 @@ cr.define('cr.ui', function() {
* The selection model we are interacting with.
* @type {cr.ui.ListSelectionModel}
*/
- get selectionModel() { return this.selectionModel_; },
+ get selectionModel() {
+ return this.selectionModel_;
+ },
/**
* Returns the index below (y axis) the given element.
@@ -44,7 +46,9 @@ cr.define('cr.ui', function() {
* @param {number} index The index to get the index above.
* @return {number} The index below or -1 if not found.
*/
- getIndexAbove: function(index) { return index - 1; },
+ getIndexAbove: function(index) {
+ return index - 1;
+ },
/**
* Returns the index before (x axis) the given element. This returns -1
@@ -54,7 +58,9 @@ cr.define('cr.ui', function() {
* @param {number} index The index to get the index before.
* @return {number} The index before or -1 if not found.
*/
- getIndexBefore: function(index) { return -1; },
+ getIndexBefore: function(index) {
+ return -1;
+ },
/**
* Returns the index after (x axis) the given element. This returns -1
@@ -64,7 +70,9 @@ cr.define('cr.ui', function() {
* @param {number} index The index to get the index after.
* @return {number} The index after or -1 if not found.
*/
- getIndexAfter: function(index) { return -1; },
+ getIndexAfter: function(index) {
+ return -1;
+ },
/**
* Returns the next list index. This is the next logical and should not
@@ -84,17 +92,23 @@ cr.define('cr.ui', function() {
* @param {number} index The index to get the previous index for.
* @return {number} The previous index or -1 if not found.
*/
- getPreviousIndex: function(index) { return index - 1; },
+ getPreviousIndex: function(index) {
+ return index - 1;
+ },
/**
* @return {number} The first index.
*/
- getFirstIndex: function() { return 0; },
+ getFirstIndex: function() {
+ return 0;
+ },
/**
* @return {number} The last index.
*/
- getLastIndex: function() { return this.selectionModel.length - 1; },
+ getLastIndex: function() {
+ return this.selectionModel.length - 1;
+ },
/**
* Called by the view when the user does a mousedown or mouseup on the
« no previous file with comments | « ui/webui/resources/js/cr/ui/list_item.js ('k') | ui/webui/resources/js/cr/ui/list_selection_model.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698