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

Issue 10450022: Print Preview Print Destination Search Widget (Closed)

Created:
8 years, 7 months ago by Robert Toscano
Modified:
6 years, 3 months ago
CC:
chromium-reviews, arv (Not doing code reviews), kmadhusu, Lei Zhang
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Implements print-destination search widget which replaces the old select drop-down element. BUG=114206 NOTRY=true TEST=Use the print preview dialog to switch printers before printing. Also sign-in with a Google Account to gain access to Google Cloud Print Printers. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=139820

Patch Set 1 : Reduces size of search image. #

Total comments: 18

Patch Set 2 : Implements reviewer's suggestions round 1. #

Patch Set 3 : Fixes types in jsdoc. #

Total comments: 5

Patch Set 4 : Address comments round 2 #

Total comments: 43

Patch Set 5 : Addresses CSS and style comments. #

Total comments: 39

Patch Set 6 : Fixes RTL issues and minor nits. #

Total comments: 4

Patch Set 7 : Fixes localized strings and minor style nits. #

Patch Set 8 : Fixes browser tests. #

Patch Set 9 : Trying to correctly upload image files. #

Patch Set 10 : Trying to fix images. #

Patch Set 11 : Changes file permissions of images. #

Patch Set 12 : Try with svn auto props. #

Patch Set 13 : attempt to fix images #

Patch Set 14 : Testing #

Patch Set 15 : Set --bary flag #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+2365 lines, -699 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +41 lines, -18 lines 0 comments Download
M chrome/browser/browser_resources.grd View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/cloud_print_interface.js View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/component.js View 1 1 chunk +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/print_preview/data/cloud_capabilities.js View 1 2 3 4 5 7 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/data/cloud_parsers.js View 1 2 14 chunks +61 lines, -19 lines 1 comment Download
M chrome/browser/resources/print_preview/data/destination.js View 1 2 9 chunks +47 lines, -25 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 4 5 6 7 8 chunks +316 lines, -43 lines 0 comments Download
M chrome/browser/resources/print_preview/data/local_parsers.js View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/print_preview/data/margins.js View 1 2 3 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/data/measurement_system.js View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/resources/print_preview/data/print_ticket_store.js View 1 2 8 chunks +52 lines, -31 lines 0 comments Download
M chrome/browser/resources/print_preview/data/ticket_items/custom_margins.js View 1 2 4 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/data/ticket_items/ticket_item.js View 1 3 chunks +4 lines, -4 lines 0 comments Download
A chrome/browser/resources/print_preview/data/user_info.js View 1 chunk +92 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/images/classic_printer_32.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/cloud.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/cloud_printer_32.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/cloud_printer_shared_32.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/google_promoted_printer_32.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/mobile_32.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/mobile_shared_32.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/browser/resources/print_preview/images/search.png View 1 2 3 4 5 6 7 8 9 10 11 12 13 0 chunks +-1 lines, --1 lines 0 comments Download
M chrome/browser/resources/print_preview/native_layer.js View 1 2 6 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/resources/print_preview/preview_generator.js View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control.css View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control.html View 1 2 3 4 5 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control.js View 1 2 3 5 chunks +7 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control_container.css View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/margin_control_container.js View 1 2 3 4 5 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/preview_area.css View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/preview_area.html View 1 2 3 4 5 1 chunk +5 lines, -7 lines 0 comments Download
M chrome/browser/resources/print_preview/previewarea/preview_area.js View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/print_preview/print_header.css View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/print_header.js View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/print_preview.css View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.html View 1 2 3 4 5 3 chunks +18 lines, -19 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview.js View 1 2 3 4 5 6 7 18 chunks +124 lines, -284 lines 0 comments Download
M chrome/browser/resources/print_preview/print_preview_utils.js View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
A chrome/browser/resources/print_preview/search/cloud_destination_list.js View 1 2 3 4 5 6 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_list.css View 1 2 3 4 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_list.html View 1 2 3 4 5 1 chunk +14 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_list.js View 1 1 chunk +319 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_list_item.css View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_list_item.html View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_list_item.js View 1 2 3 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_search.css View 1 2 3 4 5 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_search.html View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/destination_search.js View 1 2 3 4 5 6 7 1 chunk +433 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/search_box.css View 1 2 3 4 5 6 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/search_box.html View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/resources/print_preview/search/search_box.js View 1 2 3 4 5 1 chunk +124 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/copies_settings.css View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/copies_settings.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/resources/print_preview/settings/destination_settings.css View 1 2 3 4 5 1 chunk +61 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/destination_settings.html View 1 chunk +9 lines, -1 line 0 comments Download
M chrome/browser/resources/print_preview/settings/destination_settings.js View 1 2 3 3 chunks +63 lines, -122 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/margin_settings.js View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/page_settings.css View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/settings/page_settings.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_data_source.cc View 1 2 3 4 5 6 5 chunks +39 lines, -8 lines 0 comments Download
M chrome/test/data/webui/print_preview.js View 1 2 3 4 5 6 7 7 chunks +73 lines, -44 lines 0 comments Download

Messages

Total messages: 26 (1 generated)
Robert Toscano
CL is ready for review. Please take a look.
8 years, 7 months ago (2012-05-25 00:50:11 UTC) #1
dpapad
Will take a closer look at the newly added files later today. http://codereview.chromium.org/10450022/diff/11040/chrome/browser/resources/print_preview/data/cloud_parsers.js File chrome/browser/resources/print_preview/data/cloud_parsers.js ...
8 years, 7 months ago (2012-05-25 16:18:03 UTC) #2
Robert Toscano
http://codereview.chromium.org/10450022/diff/11040/chrome/browser/resources/print_preview/data/cloud_parsers.js File chrome/browser/resources/print_preview/data/cloud_parsers.js (right): http://codereview.chromium.org/10450022/diff/11040/chrome/browser/resources/print_preview/data/cloud_parsers.js#newcode44 chrome/browser/resources/print_preview/data/cloud_parsers.js:44: * @param {object} json Object that represents a Google ...
8 years, 7 months ago (2012-05-25 19:47:01 UTC) #3
Robert Toscano
Fixed jsdoc as discussed offline.
8 years, 7 months ago (2012-05-26 00:05:23 UTC) #4
dpapad
http://codereview.chromium.org/10450022/diff/14001/chrome/browser/resources/print_preview/search/destination_list_item.js File chrome/browser/resources/print_preview/search/destination_list_item.js (right): http://codereview.chromium.org/10450022/diff/14001/chrome/browser/resources/print_preview/search/destination_list_item.js#newcode79 chrome/browser/resources/print_preview/search/destination_list_item.js:79: } else if (this.destination_.type == I think that there ...
8 years, 6 months ago (2012-05-29 16:41:01 UTC) #5
Robert Toscano
http://codereview.chromium.org/10450022/diff/14001/chrome/browser/resources/print_preview/search/destination_list_item.js File chrome/browser/resources/print_preview/search/destination_list_item.js (right): http://codereview.chromium.org/10450022/diff/14001/chrome/browser/resources/print_preview/search/destination_list_item.js#newcode79 chrome/browser/resources/print_preview/search/destination_list_item.js:79: } else if (this.destination_.type == I had isLocal from ...
8 years, 6 months ago (2012-05-29 18:00:43 UTC) #6
dpapad
LGTM on the JS. You should probably find a reviewer for the CSS code, @estade ...
8 years, 6 months ago (2012-05-29 18:15:08 UTC) #7
Robert Toscano
On 2012/05/29 18:15:08, dpapad wrote: > LGTM on the JS. You should probably find a ...
8 years, 6 months ago (2012-05-29 19:37:26 UTC) #8
Robert Toscano
Adding dbeam@chromium.org as a reviewer for CSS and style. Hi Dan, Demetrios suggested adding you ...
8 years, 6 months ago (2012-05-29 19:38:45 UTC) #9
Dan Beam
http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css File chrome/browser/resources/print_preview/search/destination_list.css (right): http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css#newcode6 chrome/browser/resources/print_preview/search/destination_list.css:6: .destination-list-header { why not .destination-list header? http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css#newcode16 chrome/browser/resources/print_preview/search/destination_list.css:16: .destination-list-destination-list-item-container ...
8 years, 6 months ago (2012-05-29 21:25:50 UTC) #10
Robert Toscano
http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css File chrome/browser/resources/print_preview/search/destination_list.css (right): http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css#newcode6 chrome/browser/resources/print_preview/search/destination_list.css:6: .destination-list-header { On 2012/05/29 21:25:50, Dan Beam wrote: > ...
8 years, 6 months ago (2012-05-29 22:17:35 UTC) #11
Dan Beam
http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css File chrome/browser/resources/print_preview/search/destination_list.css (right): http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css#newcode6 chrome/browser/resources/print_preview/search/destination_list.css:6: .destination-list-header { On 2012/05/29 22:17:36, rltoscano wrote: > On ...
8 years, 6 months ago (2012-05-29 22:30:17 UTC) #12
Dan Beam
nits http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list_item.css File chrome/browser/resources/print_preview/search/destination_list_item.css (right): http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list_item.css#newcode21 chrome/browser/resources/print_preview/search/destination_list_item.css:21: opacity: .4; On 2012/05/29 22:17:36, rltoscano wrote: > ...
8 years, 6 months ago (2012-05-29 23:36:09 UTC) #13
Robert Toscano
http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css File chrome/browser/resources/print_preview/search/destination_list.css (right): http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css#newcode6 chrome/browser/resources/print_preview/search/destination_list.css:6: .destination-list-header { On 2012/05/29 22:30:18, Dan Beam wrote: > ...
8 years, 6 months ago (2012-05-30 21:07:58 UTC) #14
Dan Beam
lgtm w/nits follow up CLs for other nits http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css File chrome/browser/resources/print_preview/search/destination_list.css (right): http://codereview.chromium.org/10450022/diff/16001/chrome/browser/resources/print_preview/search/destination_list.css#newcode6 chrome/browser/resources/print_preview/search/destination_list.css:6: .destination-list-header ...
8 years, 6 months ago (2012-05-31 00:17:58 UTC) #15
Robert Toscano
http://codereview.chromium.org/10450022/diff/16007/chrome/browser/resources/print_preview/search/search_box.css File chrome/browser/resources/print_preview/search/search_box.css (right): http://codereview.chromium.org/10450022/diff/16007/chrome/browser/resources/print_preview/search/search_box.css#newcode15 chrome/browser/resources/print_preview/search/search_box.css:15: position: absolute; On 2012/05/31 00:17:58, Dan Beam wrote: > ...
8 years, 6 months ago (2012-05-31 00:59:18 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10450022/2056
8 years, 6 months ago (2012-05-31 01:08:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10450022/2061
8 years, 6 months ago (2012-05-31 04:50:11 UTC) #18
commit-bot: I haz the power
Try job failure for 10450022-2061 (retry) on linux_chromeos for step "runhooks". It's a second try, ...
8 years, 6 months ago (2012-05-31 05:03:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10450022/16089
8 years, 6 months ago (2012-05-31 05:40:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10450022/6135
8 years, 6 months ago (2012-05-31 07:31:44 UTC) #21
commit-bot: I haz the power
Try job failure for 10450022-6135 (retry) on mac_rel for step "runhooks". It's a second try, ...
8 years, 6 months ago (2012-05-31 07:43:00 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rltoscano@google.com/10450022/6135
8 years, 6 months ago (2012-05-31 18:10:50 UTC) #23
commit-bot: I haz the power
Change committed as 139820
8 years, 6 months ago (2012-05-31 18:14:24 UTC) #24
Vitaly Pavlenko
6 years, 3 months ago (2014-09-18 02:39:48 UTC) #26
Message was sent while issue was closed.
https://chromiumcodereview.appspot.com/10450022/diff/6135/chrome/browser/reso...
File chrome/browser/resources/print_preview/data/cloud_parsers.js (right):

https://chromiumcodereview.appspot.com/10450022/diff/6135/chrome/browser/reso...
chrome/browser/resources/print_preview/data/cloud_parsers.js:97: return
print_preview.Destination.Type.GOOGLE_PROMOTED;
There's no such thing like 

print_preview.Destination.Type.GOOGLE_PROMOTED

right now. Is everything with CloudType_ a dead code?

Powered by Google App Engine
This is Rietveld 408576698