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

Unified Diff: ui/webui/resources/js/cr/ui/page_manager/page_manager.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/page_manager/page.js ('k') | ui/webui/resources/js/cr/ui/repeating_button.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/page_manager/page_manager.js
diff --git a/ui/webui/resources/js/cr/ui/page_manager/page_manager.js b/ui/webui/resources/js/cr/ui/page_manager/page_manager.js
index 325bacf41a2895e3d8a1abd587b60a6ceed9e2b4..99599b1ed2ce8d87eca1c0d30744159b25fe4e79 100644
--- a/ui/webui/resources/js/cr/ui/page_manager/page_manager.js
+++ b/ui/webui/resources/js/cr/ui/page_manager/page_manager.js
@@ -447,13 +447,17 @@ cr.define('cr.ui.pageManager', function() {
* Change the horizontal offset used to reposition elements while showing an
* overlay from the default.
*/
- set horizontalOffset(value) { this.horizontalOffset_ = value; },
+ set horizontalOffset(value) {
+ this.horizontalOffset_ = value;
+ },
/**
* @param {!cr.ui.pageManager.PageManager.Observer} observer The observer to
* register.
*/
- addObserver: function(observer) { this.observers_.push(observer); },
+ addObserver: function(observer) {
+ this.observers_.push(observer);
+ },
/**
* Shows a registered overlay page. Does not update history.
@@ -509,7 +513,9 @@ cr.define('cr.ui.pageManager', function() {
* @return {boolean} True if an overlay is visible.
* @private
*/
- isOverlayVisible_: function() { return this.getVisibleOverlay_() != null; },
+ isOverlayVisible_: function() {
+ return this.getVisibleOverlay_() != null;
+ },
/**
* Returns the currently visible overlay, or null if no page is visible.
@@ -673,7 +679,9 @@ cr.define('cr.ui.pageManager', function() {
* but should only behave as if they are fixed for vertical scrolling.
* @private
*/
- handleScroll_: function() { this.updateAllFrozenElementPositions_(); },
+ handleScroll_: function() {
+ this.updateAllFrozenElementPositions_();
+ },
/**
* Updates all frozen pages to match the horizontal scroll position.
« no previous file with comments | « ui/webui/resources/js/cr/ui/page_manager/page.js ('k') | ui/webui/resources/js/cr/ui/repeating_button.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698