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

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

Issue 966293002: Make sure the PDF material toolbar gets hidden after loading. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | chrome/browser/resources/pdf/ui_manager.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf.js
diff --git a/chrome/browser/resources/pdf/pdf.js b/chrome/browser/resources/pdf/pdf.js
index 23d9bbed4d1c6e2d674267d5e3abfdd3fb74adc9..5c71f7d8a799b3094f11f609c60871fc04c4454b 100644
--- a/chrome/browser/resources/pdf/pdf.js
+++ b/chrome/browser/resources/pdf/pdf.js
@@ -436,6 +436,8 @@ PDFViewer.prototype = {
this.passwordScreen_.active = false;
}
} else if (progress == 100) {
+ if (this.isMaterial_)
+ this.uiManager_.showUi();
Sam McNally 2015/03/02 02:01:01 How about setting the initial timeout in the const
raymes 2015/03/02 02:23:15 Done.
// Document load complete.
if (this.lastViewportPosition_)
this.viewport_.position = this.lastViewportPosition_;
« no previous file with comments | « no previous file | chrome/browser/resources/pdf/ui_manager.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698