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

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

Issue 1036943004: Use custom scrollbars for print preview on non-retina mac displays. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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/main.js ('k') | chrome/browser/resources/pdf/scrollbars_mac.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/pdf/pdf_scripting_api.js
diff --git a/chrome/browser/resources/pdf/pdf_scripting_api.js b/chrome/browser/resources/pdf/pdf_scripting_api.js
index 84b94b12450f611cde0e95e394438f6b15a4b465..fa570aeeb989b0d5f62c29660ceaf7cadb3d92a5 100644
--- a/chrome/browser/resources/pdf/pdf_scripting_api.js
+++ b/chrome/browser/resources/pdf/pdf_scripting_api.js
@@ -250,6 +250,8 @@ PDFScriptingAPI.prototype = {
},
};
+var IS_MAC_PARAM = 'isMac&';
+
/**
* Creates a PDF viewer with a scripting interface. This is basically 1) an
* iframe which is navigated to the PDF viewer extension and 2) a scripting
@@ -260,9 +262,11 @@ PDFScriptingAPI.prototype = {
*/
function PDFCreateOutOfProcessPlugin(src) {
var iframe = window.document.createElement('iframe');
+ var isMac = cr.isMac ? IS_MAC_PARAM : '';
iframe.setAttribute(
'src',
- 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html?' + src);
+ 'chrome-extension://mhjfbmdgcfjbbpaeojofohoefgiehjai/index.html?' +
+ isMac + src);
// Prevent the frame from being tab-focusable.
iframe.setAttribute('tabindex', '-1');
var client = new PDFScriptingAPI(window);
« no previous file with comments | « chrome/browser/resources/pdf/main.js ('k') | chrome/browser/resources/pdf/scrollbars_mac.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698