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

Issue 2435303003: [CUPS] Implement the Print Job notification. (Closed)

Created:
4 years, 2 months ago by xdai1
Modified:
4 years, 1 month ago
Reviewers:
stevenjb, skau
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CUPS] Implement the Print Job notification. - One print job is associated with one notification id. The notification gets updated when the print job status changes. - There are four kinds of notifications for the print job: Waiting for printing -> Printing in progress -> Printing Done / Failed. - If the print job is cancelled, the notification is removed from the message center. - If the notification is closed by the user when showing the printing progress, prevent showing the following printing progress. BUG=625376, 626752 Committed: https://crrev.com/4639af5eac058bee60267cc3a054b33818b5488c Cr-Commit-Position: refs/heads/master@{#428798}

Patch Set 1 : More. #

Patch Set 2 : Rebase. #

Patch Set 3 : Bug fix. #

Total comments: 20

Patch Set 4 : Address stevenjb@'s comments. Rebase. #

Total comments: 24

Patch Set 5 : Update the icons. #

Total comments: 2

Patch Set 6 : Address skau@'s comments. #

Patch Set 7 : Address skau@'s comment. #

Patch Set 8 : Fix the compile warning. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1046 lines, -0 lines) Patch
M chrome/app/chromeos_strings.grdp View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 1 chunk +12 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job.h View 1 2 3 4 5 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job.cc View 1 2 3 1 chunk +26 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_manager.h View 1 2 3 4 5 6 1 chunk +75 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_manager.cc View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_manager_factory.h View 1 2 3 1 chunk +39 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_manager_factory.cc View 1 2 3 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_notification.h View 1 2 3 1 chunk +71 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_notification.cc View 1 2 3 4 5 6 7 1 chunk +326 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_notification_manager.h View 1 2 3 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc View 1 2 3 4 5 1 chunk +62 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/fake_cups_print_job_manager.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/fake_cups_print_job_manager.cc View 1 2 3 1 chunk +149 lines, -0 lines 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/cancel.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/help.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/pause.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/play.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/print_job_done.png View Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/print_job_error.png View Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/print_job_printing.png View Binary file 0 comments Download
A ui/chromeos/resources/default_100_percent/print_notification/print_job_waiting.png View Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/cancel.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/help.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/pause.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/play.png View 1 2 3 4 Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/print_job_done.png View Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/print_job_error.png View Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/print_job_printing.png View Binary file 0 comments Download
A ui/chromeos/resources/default_200_percent/print_notification/print_job_waiting.png View Binary file 0 comments Download
M ui/chromeos/resources/ui_chromeos_resources.grd View 1 2 3 4 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (16 generated)
xdai1
skau@, stevenjb@, could you help review this CL please? Thanks! skau@: all files stevenjb@: all ...
4 years, 2 months ago (2016-10-22 06:26:38 UTC) #4
xdai1
On 2016/10/22 06:26:38, xdai1 wrote: > skau@, stevenjb@, could you help review this CL please? ...
4 years, 1 month ago (2016-10-24 23:17:38 UTC) #5
xdai1
kindly ping?
4 years, 1 month ago (2016-10-26 19:36:41 UTC) #6
stevenjb
https://codereview.chromium.org/2435303003/diff/60001/chrome/browser/chromeos/printing/cups_print_job.cc File chrome/browser/chromeos/printing/cups_print_job.cc (right): https://codereview.chromium.org/2435303003/diff/60001/chrome/browser/chromeos/printing/cups_print_job.cc#newcode18 chrome/browser/chromeos/printing/cups_print_job.cc:18: total_page_number_(total_page_number) {} Can we eliminate this and just make ...
4 years, 1 month ago (2016-10-26 19:59:58 UTC) #7
xdai1
stevenjb@, I've addressed your comments. Please take another look, thanks for your review! https://codereview.chromium.org/2435303003/diff/60001/chrome/browser/chromeos/printing/cups_print_job.cc File ...
4 years, 1 month ago (2016-10-26 22:55:19 UTC) #8
skau
Generally looks okay. Some suggestions on the structure. Feel free to ignore my suggestions if ...
4 years, 1 month ago (2016-10-27 01:43:01 UTC) #10
stevenjb
lgtm https://codereview.chromium.org/2435303003/diff/120001/chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc File chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc (right): https://codereview.chromium.org/2435303003/diff/120001/chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc#newcode16 chrome/browser/chromeos/printing/cups_print_job_notification_manager.cc:16: if (print_job_manager_) Given that this class would be ...
4 years, 1 month ago (2016-10-27 18:52:48 UTC) #11
xdai1
stevenjb@, thanks for the review! skau@, I've addressed your comments. Please take another look, thanks! ...
4 years, 1 month ago (2016-10-28 23:59:54 UTC) #12
skau
lgtm I've left answers to the questions. No changes necessary. https://codereview.chromium.org/2435303003/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager.h File chrome/browser/chromeos/printing/cups_print_job_manager.h (right): https://codereview.chromium.org/2435303003/diff/100001/chrome/browser/chromeos/printing/cups_print_job_manager.h#newcode55 ...
4 years, 1 month ago (2016-10-31 15:39:05 UTC) #13
xdai1
skau@, thanks for the review! On 2016/10/31 15:39:05, skau wrote: > lgtm > > I've ...
4 years, 1 month ago (2016-10-31 17:33:05 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2435303003/180001
4 years, 1 month ago (2016-10-31 20:29:54 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:180001)
4 years, 1 month ago (2016-10-31 20:48:23 UTC) #27
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 20:50:05 UTC) #29
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/4639af5eac058bee60267cc3a054b33818b5488c
Cr-Commit-Position: refs/heads/master@{#428798}

Powered by Google App Engine
This is Rietveld 408576698