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

Issue 8345025: Print Preview: Adding support for localized margin units and format. (Closed)

Created:
9 years, 2 months ago by dpapad
Modified:
9 years, 2 months ago
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Print Preview: Adding support for localized margin units and format. BUG=100416 TEST=The decimal point (dot vs comma) is displayed according to the current locale. Also the units used for the margins (mm vs inches) respect the locale. Try LANGUAGE=el_GR ./out/Release/chrome vs LANGUAGE=en_US ./out/Release/chrome. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=106846

Patch Set 1 #

Patch Set 2 : Rebasing #

Patch Set 3 : Formatting numbers according to user's locale #

Patch Set 4 : Localizing units used for margins. #

Total comments: 2

Patch Set 5 : Cleanups #

Total comments: 8

Patch Set 6 : Addressed comments #

Total comments: 24

Patch Set 7 : Addressed comments #

Total comments: 2

Patch Set 8 : Removing tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+172 lines, -94 lines) Patch
M chrome/browser/resources/print_preview/margin_settings.js View 1 2 3 4 5 6 7 chunks +29 lines, -30 lines 0 comments Download
M chrome/browser/resources/print_preview/margin_textbox.js View 1 2 3 4 5 6 6 chunks +20 lines, -18 lines 0 comments Download
M chrome/browser/resources/print_preview/margin_utils.js View 1 2 3 4 5 6 4 chunks +70 lines, -32 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_utils.js View 1 2 3 4 5 6 3 chunks +21 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_utils_test.html View 1 2 3 4 5 6 7 1 chunk +0 lines, -12 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 4 chunks +27 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
dpapad
@estade: please review js. @thestig: please review c++. Thank you. http://codereview.chromium.org/8345025/diff/11001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/8345025/diff/11001/chrome/browser/ui/webui/print_preview_handler.cc#newcode51 ...
9 years, 2 months ago (2011-10-20 22:01:06 UTC) #1
Lei Zhang
http://codereview.chromium.org/8345025/diff/12008/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/8345025/diff/12008/chrome/browser/ui/webui/print_preview_handler.cc#newcode51 chrome/browser/ui/webui/print_preview_handler.cc:51: #include "third_party/icu/public/i18n/unicode/ulocdata.h" it seems other parts of the code ...
9 years, 2 months ago (2011-10-20 23:19:48 UTC) #2
dpapad
Addressed thestig's comments. http://codereview.chromium.org/8345025/diff/12008/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/8345025/diff/12008/chrome/browser/ui/webui/print_preview_handler.cc#newcode51 chrome/browser/ui/webui/print_preview_handler.cc:51: #include "third_party/icu/public/i18n/unicode/ulocdata.h" On 2011/10/20 23:19:48, Lei ...
9 years, 2 months ago (2011-10-20 23:41:28 UTC) #3
Evan Stade
http://codereview.chromium.org/8345025/diff/11004/chrome/browser/resources/print_preview/margin_settings.js File chrome/browser/resources/print_preview/margin_settings.js (right): http://codereview.chromium.org/8345025/diff/11004/chrome/browser/resources/print_preview/margin_settings.js#newcode362 chrome/browser/resources/print_preview/margin_settings.js:362: print_preview.convertPointsToUserLocaleUnitsAndBack( nit: s/UserLocale/Locale/ here and elsewhere http://codereview.chromium.org/8345025/diff/11004/chrome/browser/resources/print_preview/margin_textbox.js File chrome/browser/resources/print_preview/margin_textbox.js ...
9 years, 2 months ago (2011-10-21 01:33:02 UTC) #4
Evan Stade
http://codereview.chromium.org/8345025/diff/11004/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/8345025/diff/11004/chrome/browser/ui/webui/print_preview_handler.cc#newcode611 chrome/browser/ui/webui/print_preview_handler.cc:611: const ListValue* /*args*/) { On 2011/10/21 01:33:02, Evan Stade ...
9 years, 2 months ago (2011-10-21 01:33:33 UTC) #5
Lei Zhang
http://codereview.chromium.org/8345025/diff/11004/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/8345025/diff/11004/chrome/browser/ui/webui/print_preview_handler.cc#newcode625 chrome/browser/ui/webui/print_preview_handler.cc:625: PrintPreviewUI* print_preview_ui = static_cast<PrintPreviewUI*>(web_ui_); On 2011/10/21 01:33:02, Evan Stade ...
9 years, 2 months ago (2011-10-21 01:40:46 UTC) #6
dpapad
Addressed comments http://codereview.chromium.org/8345025/diff/11004/chrome/browser/resources/print_preview/margin_settings.js File chrome/browser/resources/print_preview/margin_settings.js (right): http://codereview.chromium.org/8345025/diff/11004/chrome/browser/resources/print_preview/margin_settings.js#newcode362 chrome/browser/resources/print_preview/margin_settings.js:362: print_preview.convertPointsToUserLocaleUnitsAndBack( On 2011/10/21 01:33:02, Evan Stade wrote: ...
9 years, 2 months ago (2011-10-21 16:12:48 UTC) #7
Evan Stade
lgtm with comment http://codereview.chromium.org/8345025/diff/9010/chrome/browser/resources/print_preview/print_preview_utils_test.html File chrome/browser/resources/print_preview/print_preview_utils_test.html (right): http://codereview.chromium.org/8345025/diff/9010/chrome/browser/resources/print_preview/print_preview_utils_test.html#newcode121 chrome/browser/resources/print_preview/print_preview_utils_test.html:121: assertEquals(convertMillimetersToPoints(10), 28.3464567); I don't think these ...
9 years, 2 months ago (2011-10-22 00:30:45 UTC) #8
Lei Zhang
LGTM on the C++ side.
9 years, 2 months ago (2011-10-22 00:42:38 UTC) #9
dpapad
http://codereview.chromium.org/8345025/diff/9010/chrome/browser/resources/print_preview/print_preview_utils_test.html File chrome/browser/resources/print_preview/print_preview_utils_test.html (right): http://codereview.chromium.org/8345025/diff/9010/chrome/browser/resources/print_preview/print_preview_utils_test.html#newcode121 chrome/browser/resources/print_preview/print_preview_utils_test.html:121: assertEquals(convertMillimetersToPoints(10), 28.3464567); On 2011/10/22 00:30:45, Evan Stade wrote: > ...
9 years, 2 months ago (2011-10-22 00:47:29 UTC) #10
Evan Stade
On Fri, Oct 21, 2011 at 5:47 PM, <dpapad@chromium.org> wrote: > > http://codereview.chromium.org/8345025/diff/9010/chrome/browser/resources/print_preview/print_preview_utils_test.html > File ...
9 years, 2 months ago (2011-10-22 00:51:21 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dpapad@chromium.org/8345025/20001
9 years, 2 months ago (2011-10-22 01:38:14 UTC) #12
commit-bot: I haz the power
9 years, 2 months ago (2011-10-22 02:53:41 UTC) #13
Change committed as 106846

Powered by Google App Engine
This is Rietveld 408576698