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

Issue 7976017: Simplified print preview printer selection to be more consistent with Chrome (Closed)

Created:
9 years, 3 months ago by Albert Bodenhamer
Modified:
9 years, 2 months ago
Reviewers:
Lei Zhang, kmadhusu, Jói, dpapad
CC:
chromium-reviews, arv (Not doing code reviews), Paweł Hajdan Jr.
Visibility:
Public.

Description

Refactored code to move cloudprint specific code into print_preview_cloud.js. Removed "Local" and "Cloud" labels from dropdown The "More printers" label is now more clear and shares behavior with the cloud print printer option in Chrome. The system print dialog link is replaced with a similar link referencing cloud print in chrome os. Choosing cloud print from the printers dropdown now requires the user to hit print before opening the cloud print dialog. Fixed broken tests. BUG=88098, 97175 , http://code.google.com/p/chromium-os/issues/detail?id=16082, http://code.google.com/p/chromium-os/issues/detail?id=20121, http://code.google.com/p/chromium-os/issues/detail?id=20119 TEST=Enable print preview in about:flags. Printing should work with cloud print printers in much the same way as local printers in Chrome Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103010 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=103173

Patch Set 1 #

Patch Set 2 : Fixed flow in chrome #

Total comments: 33

Patch Set 3 : Review feedback #

Patch Set 4 : Fixed typo in comment #

Total comments: 8

Patch Set 5 : Feedback #

Patch Set 6 : Fixed error with normal print triggering GCP #

Total comments: 2

Patch Set 7 : Fix whitespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+168 lines, -223 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 2 chunks +9 lines, -18 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 14 chunks +27 lines, -159 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_cloud.js View 1 2 3 3 chunks +85 lines, -6 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_data_source.cc View 1 2 3 4 1 chunk +10 lines, -9 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 3 chunks +7 lines, -5 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 chunk +16 lines, -22 lines 0 comments Download
M printing/print_job_constants.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M printing/print_job_constants.cc View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
Albert Bodenhamer
9 years, 3 months ago (2011-09-21 21:26:00 UTC) #1
kmadhusu
http://codereview.chromium.org/7976017/diff/3001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7976017/diff/3001/chrome/app/generated_resources.grd#newcode6094 chrome/app/generated_resources.grd:6094: desc="Option shown in printer drop-down list to allow the ...
9 years, 3 months ago (2011-09-21 21:57:40 UTC) #2
dpapad
http://codereview.chromium.org/7976017/diff/3001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7976017/diff/3001/chrome/browser/resources/print_preview/print_preview.js#newcode328 chrome/browser/resources/print_preview/print_preview.js:328: var printWithCloudPrint = (deviceName == PRINT_WITH_CLOUD_PRINT); Nit: No need ...
9 years, 3 months ago (2011-09-22 18:11:57 UTC) #3
Albert Bodenhamer
http://codereview.chromium.org/7976017/diff/3001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): http://codereview.chromium.org/7976017/diff/3001/chrome/app/generated_resources.grd#newcode6094 chrome/app/generated_resources.grd:6094: desc="Option shown in printer drop-down list to allow the ...
9 years, 3 months ago (2011-09-22 23:23:38 UTC) #4
kmadhusu
http://codereview.chromium.org/7976017/diff/3001/chrome/browser/ui/webui/print_preview_data_source.cc File chrome/browser/ui/webui/print_preview_data_source.cc (right): http://codereview.chromium.org/7976017/diff/3001/chrome/browser/ui/webui/print_preview_data_source.cc#newcode97 chrome/browser/ui/webui/print_preview_data_source.cc:97: AddLocalizedString("systemDialogOption", On 2011/09/22 23:23:39, Albert Bodenhamer wrote: > On ...
9 years, 3 months ago (2011-09-23 01:27:19 UTC) #5
Albert Bodenhamer
http://codereview.chromium.org/7976017/diff/3001/chrome/browser/ui/webui/print_preview_data_source.cc File chrome/browser/ui/webui/print_preview_data_source.cc (right): http://codereview.chromium.org/7976017/diff/3001/chrome/browser/ui/webui/print_preview_data_source.cc#newcode97 chrome/browser/ui/webui/print_preview_data_source.cc:97: AddLocalizedString("systemDialogOption", The link actually triggers the system print dialog ...
9 years, 3 months ago (2011-09-23 16:34:25 UTC) #6
Jói
> Strangely, I'm having a hard time finding public documentation on GRIT. > I'll send ...
9 years, 3 months ago (2011-09-23 16:37:59 UTC) #7
dpapad
One comment about print_preview_cloud.js. Some logic has been moved there but not in an object-oriented ...
9 years, 3 months ago (2011-09-23 19:57:18 UTC) #8
kmadhusu
Thanks for providing the reference link for .grd file description. http://codereview.chromium.org/7976017/diff/12001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7976017/diff/12001/chrome/browser/resources/print_preview/print_preview.js#newcode317 ...
9 years, 3 months ago (2011-09-23 20:30:07 UTC) #9
Albert Bodenhamer
On 2011/09/23 19:57:18, dpapad wrote: > One comment about print_preview_cloud.js. Some logic has been moved ...
9 years, 3 months ago (2011-09-23 22:10:44 UTC) #10
Albert Bodenhamer
http://codereview.chromium.org/7976017/diff/12001/chrome/browser/resources/print_preview/print_preview.js File chrome/browser/resources/print_preview/print_preview.js (right): http://codereview.chromium.org/7976017/diff/12001/chrome/browser/resources/print_preview/print_preview.js#newcode317 chrome/browser/resources/print_preview/print_preview.js:317: selectedPrinter() == PRINT_TO_PDF || On 2011/09/23 20:30:07, kmadhusu wrote: ...
9 years, 3 months ago (2011-09-23 22:10:56 UTC) #11
dpapad
On 2011/09/23 22:10:44, Albert Bodenhamer wrote: > On 2011/09/23 19:57:18, dpapad wrote: > > One ...
9 years, 3 months ago (2011-09-23 22:16:47 UTC) #12
kmadhusu
lgtm
9 years, 3 months ago (2011-09-23 22:36:35 UTC) #13
Albert Bodenhamer
On Fri, Sep 23, 2011 at 3:16 PM, <dpapad@chromium.org> wrote: > On 2011/09/23 22:10:44, Albert ...
9 years, 3 months ago (2011-09-23 22:45:47 UTC) #14
dpapad
On 2011/09/23 22:45:47, Albert Bodenhamer wrote: > On Fri, Sep 23, 2011 at 3:16 PM, ...
9 years, 3 months ago (2011-09-23 22:52:03 UTC) #15
Albert Bodenhamer
On Fri, Sep 23, 2011 at 3:52 PM, <dpapad@chromium.org> wrote: > On 2011/09/23 22:45:47, Albert ...
9 years, 3 months ago (2011-09-23 22:57:14 UTC) #16
dpapad
Go ahead. LGTM
9 years, 3 months ago (2011-09-23 23:02:49 UTC) #17
Albert Bodenhamer
Lei discovered an issue where printing to a regular printer in Linux would trigger the ...
9 years, 2 months ago (2011-09-28 02:21:58 UTC) #18
kmadhusu
LGTM
9 years, 2 months ago (2011-09-28 17:08:34 UTC) #19
dpapad
9 years, 2 months ago (2011-09-28 18:26:30 UTC) #20
LGTM

http://codereview.chromium.org/7976017/diff/27001/chrome/app/generated_resour...
File chrome/app/generated_resources.grd (right):

http://codereview.chromium.org/7976017/diff/27001/chrome/app/generated_resour...
chrome/app/generated_resources.grd:6080: <message
name="IDS_PRINT_PREVIEW_MORE_PRINTERS"
Remove whitespace at the end.

http://codereview.chromium.org/7976017/diff/27001/chrome/app/generated_resour...
chrome/app/generated_resources.grd:6081: desc="Option shown in printer drop-down
list that displays an interface for finding/using additional cloud based
printers.">
Same here.

Powered by Google App Engine
This is Rietveld 408576698