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

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

Issue 169613005: Hookup print and save buttons in the out of process PDF plugin (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
Index: chrome/browser/resources/pdf/index.js
diff --git a/chrome/browser/resources/pdf/index.js b/chrome/browser/resources/pdf/index.js
index 1edc89c7e7dcf57504b2328b35b501dccb26ff57..c610a1438a34ecf27e82476ba1a38389900e7c39 100644
--- a/chrome/browser/resources/pdf/index.js
+++ b/chrome/browser/resources/pdf/index.js
@@ -390,7 +390,7 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
Polymer('viewer-toolbar', {
fadingIn: false,
timerId: undefined,
- inInitialFade: false,
+ inInitialFadeIn: false,
ready: function() {
this.parentNode.addEventListener('mousemove', function(e) {
var rect = this.getBoundingClientRect();
@@ -398,17 +398,17 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
e.clientY >= rect.top && e.clientY <= rect.bottom) {
this.fadingIn = true;
// If we hover over the toolbar, cancel the initial fade in.
- if (this.inInitialFade)
- this.inInitialFade = false;
+ if (this.inInitialFadeIn)
+ this.inInitialFadeIn = false;
} else {
// Initially we want to keep the toolbar up for a longer period.
- if (!this.inInitialFade)
+ if (!this.inInitialFadeIn)
this.fadingIn = false;
}
}.bind(this));
},
initialFadeIn: function() {
- this.inInitialFade = true;
+ this.inInitialFadeIn = true;
this.fadeIn();
this.fadeOutAfterDelay(6000);
},
@@ -430,7 +430,7 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
function() {
this.style.opacity = 0;
this.timerId = undefined;
- this.inInitialFade = false;
+ this.inInitialFadeIn = false;
}.bind(this), delay);
}
});
@@ -475,7 +475,6 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
window.addEventListener('scroll', function() {
requestAnimationFrame(callback);
});
- this.fadeIn();
},
initialFadeIn: function() {
this.fadeIn(6000);

Powered by Google App Engine
This is Rietveld 408576698