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

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

Issue 8345025: Print Preview: Adding support for localized margin units and format. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 years, 2 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/print_preview/print_preview.js
diff --git a/chrome/browser/resources/print_preview/print_preview.js b/chrome/browser/resources/print_preview/print_preview.js
index 3b25f8fb9db178d4bd7599ac0f6dd881c53ca48a..e4a67b1ae31c24efae8c53b070e38cd1940cea5a 100644
--- a/chrome/browser/resources/print_preview/print_preview.js
+++ b/chrome/browser/resources/print_preview/print_preview.js
@@ -142,6 +142,7 @@ function onLoad() {
previewArea.showLoadingAnimation();
chrome.send('getInitiatorTabTitle');
chrome.send('getDefaultPrinter');
+ chrome.send('getNumberFormatAndMeasurementSystem');
}
/**
@@ -1056,6 +1057,12 @@ function onKeyDown(e) {
}
}
+function setNumberFormatAndMeasurementSystem(
Evan Stade 2011/10/21 01:33:02 what is the point of this thunk? just call the fun
dpapad 2011/10/21 16:12:48 Done.
+ numberFormat, measurementSystem) {
Evan Stade 2011/10/21 01:33:02 no wrap
+ print_preview.MarginSettings.setNumberFormatAndMeasurementSystem(
+ numberFormat, measurementSystem);
+}
+
window.addEventListener('DOMContentLoaded', onLoad);
window.onkeydown = onKeyDown;

Powered by Google App Engine
This is Rietveld 408576698