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

Unified Diff: chrome/browser/resources/pdf/zoom_manager.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
« no previous file with comments | « chrome/browser/resources/pdf/viewport_scroller.js ('k') | chrome/browser/resources/plugins.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/zoom_manager.js
diff --git a/chrome/browser/resources/pdf/zoom_manager.js b/chrome/browser/resources/pdf/zoom_manager.js
index 25086938e3679e9082722cf07f78b0a1f75218bd..82ce5e7dfbf884043d391319c92258f02d192d30 100644
--- a/chrome/browser/resources/pdf/zoom_manager.js
+++ b/chrome/browser/resources/pdf/zoom_manager.js
@@ -145,16 +145,17 @@ class ActiveZoomManager extends ZoomManager {
if (this.floatingPointEquals(this.browserZoom_, zoom))
return;
- this.changingBrowserZoom_ = this.setBrowserZoomFunction_(zoom).then(
- function() {
- this.browserZoom_ = zoom;
- this.changingBrowserZoom_ = null;
-
- // The extension's zoom level may have changed while the browser zoom
- // change was in progress. We call back into onPdfZoomChange to ensure the
- // browser zoom is up to date.
- this.onPdfZoomChange();
- }.bind(this));
+ this.changingBrowserZoom_ =
+ this.setBrowserZoomFunction_(zoom).then(function() {
+ this.browserZoom_ = zoom;
+ this.changingBrowserZoom_ = null;
+
+ // The extension's zoom level may have changed while the browser zoom
+ // change was in progress. We call back into onPdfZoomChange to ensure
+ // the
+ // browser zoom is up to date.
+ this.onPdfZoomChange();
+ }.bind(this));
}
/**
« no previous file with comments | « chrome/browser/resources/pdf/viewport_scroller.js ('k') | chrome/browser/resources/plugins.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698