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

Unified Diff: chrome/browser/resources/pdf/viewport.js

Issue 138703009: Hookup the page-indicator and progress-bar elements in the PDF extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/pdf.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/viewport.js
diff --git a/chrome/browser/resources/pdf/viewport.js b/chrome/browser/resources/pdf/viewport.js
index db9105bfeac0c39e407a6d7f64f49d6fb0c6cdaa..452375329240150e9e8f86b7b93cf7c9956e355f 100644
--- a/chrome/browser/resources/pdf/viewport.js
+++ b/chrome/browser/resources/pdf/viewport.js
@@ -129,13 +129,14 @@ Viewport.prototype = {
* Called when the viewport should be updated.
*/
updateViewport_: function() {
- // Shift the toolbar so that it doesn't move when the scrollbars display
var needsScrollbars = this.documentHasScrollbars();
+ var page = this.getMostVisiblePage();
this.viewportChangedCallback_(this.zoom_,
this.window_.pageXOffset,
this.window_.pageYOffset,
this.scrollbarWidth_,
- needsScrollbars);
+ needsScrollbars,
+ page);
},
/**
« no previous file with comments | « chrome/browser/resources/pdf/pdf.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698