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

Unified Diff: ui/webui/resources/js/cr/ui/card_slider.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/bubble.js ('k') | ui/webui/resources/js/cr/ui/command.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/card_slider.js
diff --git a/ui/webui/resources/js/cr/ui/card_slider.js b/ui/webui/resources/js/cr/ui/card_slider.js
index 4de3934b891b4ce9fc6088c071e2676ecbd7e4cd..1dc274008941120e53315374ffc272b85bd7c4a8 100644
--- a/ui/webui/resources/js/cr/ui/card_slider.js
+++ b/ui/webui/resources/js/cr/ui/card_slider.js
@@ -228,32 +228,42 @@ cr.define('cr.ui', function() {
* Returns the index of the current card.
* @return {number} index of the current card.
*/
- get currentCard() { return this.currentCard_; },
+ get currentCard() {
+ return this.currentCard_;
+ },
/**
* Allows setting the current card index.
* @param {number} index A new index to set the current index to.
* @return {number} The new index after having been set.
*/
- set currentCard(index) { return (this.currentCard_ = index); },
+ set currentCard(index) {
+ return (this.currentCard_ = index);
+ },
/**
* Returns the number of cards.
* @return {number} number of cards.
*/
- get cardCount() { return this.cards_.length; },
+ get cardCount() {
+ return this.cards_.length;
+ },
/**
* Returns the current card itself.
* @return {!Element} the currently shown card.
*/
- get currentCardValue() { return this.cards_[this.currentCard_]; },
+ get currentCardValue() {
+ return this.cards_[this.currentCard_];
+ },
/**
* Returns the frame holding the cards.
* @return {Element} The frame used to position the cards.
*/
- get frame() { return this.frame_; },
+ get frame() {
+ return this.frame_;
+ },
/**
* Handle horizontal scrolls to flip between pages.
@@ -458,7 +468,9 @@ cr.define('cr.ui', function() {
* the likely event it needs to be updated by a card being inserted or
* removed in the flow.
*/
- repositionFrame: function() { this.transformToCurrentCard_(); },
+ repositionFrame: function() {
+ this.transformToCurrentCard_();
+ },
/**
* Checks the the given |index| exists in this.cards_.
« no previous file with comments | « ui/webui/resources/js/cr/ui/bubble.js ('k') | ui/webui/resources/js/cr/ui/command.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698