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

Issue 100023: Should handle the events when no printer is detected on local machine... (Closed)

Created:
11 years, 8 months ago by Mohamed Mansour (USE mhm)
Modified:
9 years, 7 months ago
Reviewers:
M-A Ruel, Sverrir
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Should handle the events when no printer is detected on local machine GetDefaultPrintSettings was returning an empty struct because no printer is installed. Checking when its empty will allow us to know that a printer is missing on that system. There is clearly no other way to do this, unless we do not do all those dchecks on dpi and other struct members. BUG=6835 TEST=Tested only on windows, since linux/mac printing not even implemented. Removed all printer drivers, opened chromium, and ran a print job, popup dialog appeared stating no printer installed. Installed my printer drivers again, print dialog appeared. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=14731

Patch Set 1 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -1 line) Patch
M chrome/app/generated_resources.grd View 1 chunk +4 lines, -1 line 1 comment Download
M chrome/common/render_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +9 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Mohamed Mansour (USE mhm)
11 years, 8 months ago (2009-04-26 13:55:58 UTC) #1
M-A Ruel
lgtm, ping me if not checked-in on Monday.
11 years, 8 months ago (2009-04-26 22:56:04 UTC) #2
Sverrir
LGTM Quick questions: this method of triggering javascript popups is not used anywhere in our ...
11 years, 7 months ago (2009-04-27 17:36:55 UTC) #3
M-A Ruel
On 2009/04/27 17:36:55, Sverrir wrote: > LGTM > > Quick questions: this method of triggering ...
11 years, 7 months ago (2009-04-27 17:59:40 UTC) #4
Mohamed Mansour (USE mhm)
Ah sorry :( I totally forgot about translation. I will properly do that when I ...
11 years, 7 months ago (2009-04-27 19:06:40 UTC) #5
M-A Ruel
On 2009/04/27 19:06:40, Mohamed Mansour wrote: > Ah sorry :( I totally forgot about translation. ...
11 years, 7 months ago (2009-04-27 19:13:32 UTC) #6
Mohamed Mansour (USE mhm)
Alright done, followed the document here: http://dev.chromium.org/developers/design-documents/ui-localization
11 years, 7 months ago (2009-04-27 23:27:49 UTC) #7
Sverrir
LGTM Suggested alternate text for the message.
11 years, 7 months ago (2009-04-28 13:59:54 UTC) #8
Sverrir
11 years, 7 months ago (2009-04-28 14:00:19 UTC) #9
http://codereview.chromium.org/100023/diff/10/1006
File chrome/app/generated_resources.grd (right):

http://codereview.chromium.org/100023/diff/10/1006#newcode2371
Line 2371: No printer found, Please install a printer.
Alternate suggestion:
No printer detected.  Please connect a printer or find yourself a pen and paper.

Powered by Google App Engine
This is Rietveld 408576698