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

Issue 8138020: PrintPreview: Fix printer color settings issues based on printer ppd/schema information. (Closed)

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

Description

PrintPreview: Fix printer color settings issues based on printer ppd/schema information. Show/Hide the color options based on printer ppd/schema information. Some printers does not provide sufficient information in the printer schema/ppd regarding the color settings and they use custom advance settings to print in black & white/greyscale. In those cases, users need to print using native dialog in order to set these advance color settings. BUG=93811, 93490, 87344, 96658, 98768 TEST= Please refer to bug description. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105087

Patch Set 1 #

Patch Set 2 : Fix samsung,canon printer issues #

Patch Set 3 : Added some more color models to support Mac OS printer drivers. #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 22

Patch Set 7 : Addressed review comments #

Patch Set 8 : Addressed review comments #

Patch Set 9 : Refactored win code. #

Patch Set 10 : '' #

Patch Set 11 : Fix mac compile error #

Patch Set 12 : '' #

Total comments: 13

Patch Set 13 : Addressed review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+831 lines, -630 lines) Patch
M chrome/browser/printing/print_dialog_gtk.cc View 1 2 3 4 5 6 7 2 chunks +5 lines, -19 lines 0 comments Download
A chrome/browser/printing/print_system_task_proxy.h View 1 2 3 4 5 6 7 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/printing/print_system_task_proxy.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +543 lines, -0 lines 0 comments Download
A + chrome/browser/printing/print_system_task_proxy_unittest.cc View 1 2 3 4 5 6 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/color_settings.js View 1 2 3 4 5 6 7 3 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -16 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +11 lines, -344 lines 0 comments Download
D chrome/browser/ui/webui/print_preview_handler_unittest.cc View 1 2 3 4 5 6 1 chunk +0 lines, -222 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M printing/print_job_constants.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +38 lines, -2 lines 0 comments Download
M printing/print_job_constants.cc View 1 2 3 4 5 6 8 9 10 11 12 1 chunk +18 lines, -0 lines 0 comments Download
M printing/print_settings.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -0 lines 0 comments Download
M printing/print_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +96 lines, -0 lines 0 comments Download
M printing/printing_context_mac.mm View 1 2 3 4 5 6 7 8 9 10 2 chunks +9 lines, -11 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
kmadhusu
vandebo: Please review c++ code. dpapad: Please review js code. As per windows printer schema ...
9 years, 2 months ago (2011-10-07 01:42:37 UTC) #1
dpapad
http://codereview.chromium.org/8138020/diff/10001/chrome/browser/resources/print_preview/color_settings.js File chrome/browser/resources/print_preview/color_settings.js (right): http://codereview.chromium.org/8138020/diff/10001/chrome/browser/resources/print_preview/color_settings.js#newcode18 chrome/browser/resources/print_preview/color_settings.js:18: this.COLOR = 2; COLOR and GRAY are constants, they ...
9 years, 2 months ago (2011-10-07 17:04:40 UTC) #2
vandebo (ex-Chrome)
http://codereview.chromium.org/8138020/diff/10001/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/8138020/diff/10001/chrome/browser/printing/print_dialog_gtk.cc#newcode196 chrome/browser/printing/print_dialog_gtk.cc:196: const char* color_mode; maybe call these two color_setting_name and ...
9 years, 2 months ago (2011-10-07 18:23:30 UTC) #3
kmadhusu
Addressed review comments. Please review the latest patch. Thanks. http://codereview.chromium.org/8138020/diff/10001/chrome/browser/printing/print_dialog_gtk.cc File chrome/browser/printing/print_dialog_gtk.cc (right): http://codereview.chromium.org/8138020/diff/10001/chrome/browser/printing/print_dialog_gtk.cc#newcode196 chrome/browser/printing/print_dialog_gtk.cc:196: ...
9 years, 2 months ago (2011-10-10 23:34:25 UTC) #4
dpapad
LGTM for js.
9 years, 2 months ago (2011-10-11 01:00:11 UTC) #5
vandebo (ex-Chrome)
http://codereview.chromium.org/8138020/diff/31001/chrome/browser/printing/print_system_task_proxy.cc File chrome/browser/printing/print_system_task_proxy.cc (right): http://codereview.chromium.org/8138020/diff/31001/chrome/browser/printing/print_system_task_proxy.cc#newcode271 chrome/browser/printing/print_system_task_proxy.cc:271: const char kPskColor[] = "psk:Color"; Consider putting this block ...
9 years, 2 months ago (2011-10-11 19:11:42 UTC) #6
kmadhusu
vandebo: Addressed review comments. Please review again. Thanks. http://codereview.chromium.org/8138020/diff/31001/chrome/browser/printing/print_system_task_proxy.cc File chrome/browser/printing/print_system_task_proxy.cc (right): http://codereview.chromium.org/8138020/diff/31001/chrome/browser/printing/print_system_task_proxy.cc#newcode271 chrome/browser/printing/print_system_task_proxy.cc:271: const ...
9 years, 2 months ago (2011-10-11 21:36:02 UTC) #7
vandebo (ex-Chrome)
9 years, 2 months ago (2011-10-11 21:41:19 UTC) #8
LGTM

Powered by Google App Engine
This is Rietveld 408576698