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

Unified Diff: chrome/browser/resources/print_preview/common/overlay.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 months 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
Index: chrome/browser/resources/print_preview/common/overlay.js
diff --git a/chrome/browser/resources/print_preview/common/overlay.js b/chrome/browser/resources/print_preview/common/overlay.js
index e5f58fadc919e63a5d385d269ce1c9669e799c6b..f4290e7c5d5573d98b5fe281216dd42022ec37ad 100644
--- a/chrome/browser/resources/print_preview/common/overlay.js
+++ b/chrome/browser/resources/print_preview/common/overlay.js
@@ -47,7 +47,8 @@ cr.define('print_preview', function() {
this.cancel();
} else if (e.keyCode == 13) {
var activeElementTag = document.activeElement ?
- document.activeElement.tagName.toUpperCase() : '';
+ document.activeElement.tagName.toUpperCase() :
+ '';
if (activeElementTag != 'BUTTON' && activeElementTag != 'SELECT') {
if (this.onEnterPressedInternal()) {
e.stopPropagation();
@@ -59,15 +60,13 @@ cr.define('print_preview', function() {
}.bind(this));
this.tracker.add(
- this.getChildElement('.page > .close-button'),
- 'click',
+ this.getChildElement('.page > .close-button'), 'click',
this.cancel.bind(this));
this.tracker.add(
this.getElement(), 'click', this.onOverlayClick_.bind(this));
this.tracker.add(
- this.getChildElement('.page'),
- 'webkitAnimationEnd',
+ this.getChildElement('.page'), 'webkitAnimationEnd',
this.onAnimationEnd_.bind(this));
},
@@ -136,7 +135,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- Overlay: Overlay
- };
+ return {Overlay: Overlay};
});

Powered by Google App Engine
This is Rietveld 408576698