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

Unified Diff: chrome/browser/resources/pdf/ui_manager.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 | « 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/ui_manager.js
diff --git a/chrome/browser/resources/pdf/ui_manager.js b/chrome/browser/resources/pdf/ui_manager.js
index 53bb72010c0e9be5fc8afa9c4abe6fcc43105f55..8b672c7c50a33fe67079b604452c7e18398ea4a0 100644
--- a/chrome/browser/resources/pdf/ui_manager.js
+++ b/chrome/browser/resources/pdf/ui_manager.js
@@ -35,9 +35,7 @@ UiManager.prototype = {
for (var i = 0; i < this.panes_.length; i++)
this.panes_[i].showIfOpenedByUser();
- if (this.uiTimeout_)
- clearTimeout(this.uiTimeout_);
- this.uiTimeout_ = setTimeout(this.hideUi_.bind(this), HIDE_TIMEOUT);
+ this.hideUiAfterTimeout();
},
/**
@@ -48,5 +46,15 @@ UiManager.prototype = {
this.toolbar_.hide();
for (var i = 0; i < this.panes_.length; i++)
this.panes_[i].hideIfOpenedByUser();
+ },
+
+ /**
+ * @private
Sam McNally 2015/03/02 02:25:39 Remove.
+ * Hide the toolbar after the HIDE_TIMEOUT has elapsed.
+ */
+ hideUiAfterTimeout: function() {
+ if (this.uiTimeout_)
+ clearTimeout(this.uiTimeout_);
+ this.uiTimeout_ = setTimeout(this.hideUi_.bind(this), HIDE_TIMEOUT);
}
};
« 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