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

Issue 6759044: Prepopulating "Print To PDF" select file dialog with a suggested filename and path. (Closed)

Created:
9 years, 8 months ago by dpapad
Modified:
9 years, 7 months ago
Reviewers:
Lei Zhang, kmadhusu
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Prepopulating "Print To PDF" select file dialog with a suggested filename and path. The suggested name is the title of the initiator tab. Also, the first time, the select file dialog opens on the "Documents" folder (or the equivalent for the current platform). In subsequent "Print To Pdf" sessions the last used folder is remembered. BUG=NONE TEST=In the print preview tab select "Print to PDF". The select file dialog box should be pre-populated. Also the second time you save to pdf, the suggested folder should be the one used right before. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=81815

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressing comments. #

Patch Set 3 : Rebasing #

Total comments: 2

Patch Set 4 : Getting print job title in a different way. #

Total comments: 5

Patch Set 5 : Addressing comments. #

Patch Set 6 : Remembering last used path. #

Total comments: 8

Patch Set 7 : Addressing comments #

Total comments: 12

Patch Set 8 : Addressing comments. #

Total comments: 9

Patch Set 9 : Removing unused included, adding comments. #

Patch Set 10 : Rebasing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -7 lines) Patch
M chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.h View 1 2 3 4 5 3 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview_handler.cc View 1 2 3 4 5 6 7 8 5 chunks +45 lines, -4 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
dpapad
9 years, 8 months ago (2011-04-01 00:04:26 UTC) #1
Lei Zhang
http://codereview.chromium.org/6759044/diff/1/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/6759044/diff/1/chrome/browser/resources/print_preview.js#newcode209 chrome/browser/resources/print_preview.js:209: 'printJobTitle': printJobTitle}); I actually want to get rid of ...
9 years, 8 months ago (2011-04-01 01:05:35 UTC) #2
dpapad
http://codereview.chromium.org/6759044/diff/1/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/1/chrome/browser/ui/webui/print_preview_handler.cc#newcode201 chrome/browser/ui/webui/print_preview_handler.cc:201: bool print_to_pdf; On 2011/04/01 01:05:35, Lei Zhang wrote: > ...
9 years, 8 months ago (2011-04-01 02:32:15 UTC) #3
dpapad
Ping
9 years, 8 months ago (2011-04-05 20:44:36 UTC) #4
Lei Zhang
On 2011/04/05 20:44:36, dpapad wrote: > Ping Still waiting on http://codereview.chromium.org/6783005/
9 years, 8 months ago (2011-04-05 20:56:15 UTC) #5
kmadhusu
http://codereview.chromium.org/6759044/diff/7001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/7001/chrome/browser/ui/webui/print_preview_handler.cc#newcode215 chrome/browser/ui/webui/print_preview_handler.cc:215: if (!ret || print_job_title.length() == 0) If the "print_job_title" ...
9 years, 8 months ago (2011-04-05 20:57:48 UTC) #6
dpapad
http://codereview.chromium.org/6759044/diff/7001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/7001/chrome/browser/ui/webui/print_preview_handler.cc#newcode215 chrome/browser/ui/webui/print_preview_handler.cc:215: if (!ret || print_job_title.length() == 0) On 2011/04/05 20:57:48, ...
9 years, 8 months ago (2011-04-09 01:38:05 UTC) #7
kmadhusu
http://codereview.chromium.org/6759044/diff/14001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/14001/chrome/browser/ui/webui/print_preview_handler.cc#newcode217 chrome/browser/ui/webui/print_preview_handler.cc:217: if (!ret || print_job_title.length() == 0) If "ret" value ...
9 years, 8 months ago (2011-04-11 17:34:26 UTC) #8
dpapad
http://codereview.chromium.org/6759044/diff/14001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/14001/chrome/browser/ui/webui/print_preview_handler.cc#newcode217 chrome/browser/ui/webui/print_preview_handler.cc:217: if (!ret || print_job_title.length() == 0) On 2011/04/11 17:34:26, ...
9 years, 8 months ago (2011-04-12 00:20:09 UTC) #9
kmadhusu
On 2011/04/12 00:20:09, dpapad wrote: > http://codereview.chromium.org/6759044/diff/14001/chrome/browser/ui/webui/print_preview_handler.cc > File chrome/browser/ui/webui/print_preview_handler.cc (right): > > http://codereview.chromium.org/6759044/diff/14001/chrome/browser/ui/webui/print_preview_handler.cc#newcode217 > ...
9 years, 8 months ago (2011-04-12 00:31:51 UTC) #10
dpapad
This last patch causes Chromium to remember the last saved path when opening the select ...
9 years, 8 months ago (2011-04-13 22:04:20 UTC) #11
Lei Zhang
On 2011/04/13 22:04:20, dpapad wrote: > This last patch causes Chromium to remember the last ...
9 years, 8 months ago (2011-04-13 23:53:20 UTC) #12
Lei Zhang
http://codereview.chromium.org/6759044/diff/22001/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/6759044/diff/22001/chrome/browser/resources/print_preview.js#newcode219 chrome/browser/resources/print_preview.js:219: 'printJobTitle': printJobTitle}); just get rid of |printJobTitle| here. http://codereview.chromium.org/6759044/diff/22001/chrome/browser/ui/webui/print_preview_handler.cc ...
9 years, 8 months ago (2011-04-14 00:15:45 UTC) #13
dpapad
On 2011/04/13 23:53:20, Lei Zhang wrote: > On 2011/04/13 22:04:20, dpapad wrote: > > This ...
9 years, 8 months ago (2011-04-14 00:45:20 UTC) #14
dpapad
http://codereview.chromium.org/6759044/diff/22001/chrome/browser/resources/print_preview.js File chrome/browser/resources/print_preview.js (right): http://codereview.chromium.org/6759044/diff/22001/chrome/browser/resources/print_preview.js#newcode219 chrome/browser/resources/print_preview.js:219: 'printJobTitle': printJobTitle}); On 2011/04/14 00:15:45, Lei Zhang wrote: > ...
9 years, 8 months ago (2011-04-14 02:33:35 UTC) #15
Lei Zhang
http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc#newcode159 chrome/browser/ui/webui/print_preview_handler.cc:159: last_saved_path_ = new FilePath(); I think you're going to ...
9 years, 8 months ago (2011-04-14 21:00:37 UTC) #16
dpapad
http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc#newcode159 chrome/browser/ui/webui/print_preview_handler.cc:159: last_saved_path_ = new FilePath(); On 2011/04/14 21:00:37, Lei Zhang ...
9 years, 8 months ago (2011-04-14 21:25:32 UTC) #17
Lei Zhang
http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc#newcode159 chrome/browser/ui/webui/print_preview_handler.cc:159: last_saved_path_ = new FilePath(); On 2011/04/14 21:25:32, dpapad wrote: ...
9 years, 8 months ago (2011-04-14 21:29:56 UTC) #18
dpapad
On 2011/04/14 21:29:56, Lei Zhang wrote: > http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc > File chrome/browser/ui/webui/print_preview_handler.cc (right): > > http://codereview.chromium.org/6759044/diff/28001/chrome/browser/ui/webui/print_preview_handler.cc#newcode159 ...
9 years, 8 months ago (2011-04-14 21:37:16 UTC) #19
Lei Zhang
http://codereview.chromium.org/6759044/diff/23009/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/23009/chrome/browser/ui/webui/print_preview_handler.cc#newcode26 chrome/browser/ui/webui/print_preview_handler.cc:26: #include "grit/generated_resources.h" no longer needed http://codereview.chromium.org/6759044/diff/23009/chrome/browser/ui/webui/print_preview_handler.cc#newcode31 chrome/browser/ui/webui/print_preview_handler.cc:31: #include "ui/base/l10n/l10n_util.h" ...
9 years, 8 months ago (2011-04-14 22:53:43 UTC) #20
dpapad
http://codereview.chromium.org/6759044/diff/23009/chrome/browser/ui/webui/print_preview_handler.cc File chrome/browser/ui/webui/print_preview_handler.cc (right): http://codereview.chromium.org/6759044/diff/23009/chrome/browser/ui/webui/print_preview_handler.cc#newcode31 chrome/browser/ui/webui/print_preview_handler.cc:31: #include "ui/base/l10n/l10n_util.h" On 2011/04/14 22:53:43, Lei Zhang wrote: > ...
9 years, 8 months ago (2011-04-14 23:38:59 UTC) #21
Lei Zhang
9 years, 8 months ago (2011-04-14 23:46:20 UTC) #22
LGTM

Powered by Google App Engine
This is Rietveld 408576698