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

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

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 9ff7f753ad0552c7f7893207710067b2b7e96f39..dc083062fee68b7bff9023c618aab6a2a7762711 100644
--- a/chrome/browser/resources/print_preview/common/overlay.js
+++ b/chrome/browser/resources/print_preview/common/overlay.js
@@ -37,7 +37,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();
@@ -49,15 +50,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'),
- 'animationend',
+ this.getChildElement('.page'), 'animationend',
this.onAnimationEnd_.bind(this));
},
@@ -126,7 +125,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- Overlay: Overlay
- };
+ return {Overlay: Overlay};
});

Powered by Google App Engine
This is Rietveld 408576698