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

Unified Diff: ui/webui/resources/js/cr/ui/page_manager/page.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/overlay.js ('k') | ui/webui/resources/js/cr/ui/page_manager/page_manager.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.js
diff --git a/ui/webui/resources/js/cr/ui/page_manager/page.js b/ui/webui/resources/js/cr/ui/page_manager/page.js
index d4ad8929116ca19e7f3ec2745580f830e26c2bed..bf5117e8f82a2ee27b17229af74b98dfbe1bed16 100644
--- a/ui/webui/resources/js/cr/ui/page_manager/page.js
+++ b/ui/webui/resources/js/cr/ui/page_manager/page.js
@@ -78,7 +78,9 @@ cr.define('cr.ui.pageManager', function() {
* Sets focus on the first focusable element. Override for a custom focus
* strategy.
*/
- focus: function() { cr.ui.setInitialFocus(this.pageDiv); },
+ focus: function() {
+ cr.ui.setInitialFocus(this.pageDiv);
+ },
/**
* Reverse any buttons strips in this page (only applies to overlays).
@@ -94,7 +96,9 @@ cr.define('cr.ui.pageManager', function() {
* Whether it should be possible to show the page.
* @return {boolean} True if the page should be shown.
*/
- canShowPage: function() { return true; },
+ canShowPage: function() {
+ return true;
+ },
/**
* Updates the hash of the current page. If the page is topmost, the history
@@ -183,13 +187,17 @@ cr.define('cr.ui.pageManager', function() {
* page even if sub-pages change.
* @type {boolean} True if this page is sticky.
*/
- get sticky() { return false; },
+ get sticky() {
+ return false;
+ },
/**
* @type {boolean} True if this page should always be considered the
* top-most page when visible.
*/
- get alwaysOnTop() { return this.alwaysOnTop_; },
+ get alwaysOnTop() {
+ return this.alwaysOnTop_;
+ },
/**
* @type {boolean} True if this page should always be considered the
« no previous file with comments | « ui/webui/resources/js/cr/ui/overlay.js ('k') | ui/webui/resources/js/cr/ui/page_manager/page_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698