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

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

Issue 137663008: Implement viewporting for 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
« no previous file with comments | « chrome/browser/resources/pdf/index.html ('k') | chrome/browser/resources/pdf/index.in.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/index.js
diff --git a/chrome/browser/resources/pdf/index.js b/chrome/browser/resources/pdf/index.js
index 4be5675b5c6ebdbf1f9ad1a1b36a24c8a8c30896..17c794e64ea9231a8b1c9a19d098687106fed765 100644
--- a/chrome/browser/resources/pdf/index.js
+++ b/chrome/browser/resources/pdf/index.js
@@ -387,39 +387,39 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
});
;
- Polymer('viewer-toolbar', {
- fadingIn: false,
- timerId: undefined,
- ready: function() {
- this.fadingInChanged();
- },
- fadeIn: function() {
- this.fadingIn = true;
- },
- fadeOut: function() {
- this.fadingIn = false;
- },
- fadingInChanged: function() {
- if (this.fadingIn) {
- this.style.opacity = 1;
- if (this.timerId !== undefined) {
- clearTimeout(this.timerId);
- this.timerId = undefined;
- }
- } else {
- if (this.timerId === undefined) {
- this.timerId = setTimeout(
- function() {
- this.style.opacity = 0;
- this.timerId = undefined;
- }.bind(this), 3000);
- }
+ Polymer('viewer-toolbar', {
+ fadingIn: false,
+ timerId: undefined,
+ ready: function() {
+ this.fadingInChanged();
+ },
+ fadeIn: function() {
+ this.fadingIn = true;
+ },
+ fadeOut: function() {
+ this.fadingIn = false;
+ },
+ fadingInChanged: function() {
+ if (this.fadingIn) {
+ this.style.opacity = 1;
+ if (this.timerId !== undefined) {
+ clearTimeout(this.timerId);
+ this.timerId = undefined;
+ }
+ } else {
+ if (this.timerId === undefined) {
+ this.timerId = setTimeout(
+ function() {
+ this.style.opacity = 0;
+ this.timerId = undefined;
+ }.bind(this), 3000);
}
}
- });
- ;
+ }
+ });
+;
- (function() {
+ (function() {
var dpi = '';
Polymer('viewer-button', {
@@ -435,7 +435,7 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
if (this.src) {
this.$.icon.style.backgroundImage =
'url(' + this.getAttribute('assetpath') + 'img/' + dpi +
- 'DPI/' + this.src + ')';
+ 'DPI/' + this.src + ')';
} else {
this.$.icon.style.backgroundImage = '';
}
@@ -447,5 +447,4 @@ Polymer={},"function"==typeof window.Polymer&&(Polymer={}),function(a){function
this.classList.remove('latchable');
},
});
- })();
-
+ })();
« no previous file with comments | « chrome/browser/resources/pdf/index.html ('k') | chrome/browser/resources/pdf/index.in.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698