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

Issue 6334010: Print Preview: Store preview data in the print preview handler.... (Closed)

Created:
9 years, 11 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
brettw, James Hawkins
CC:
chromium-reviews, darin-cc_chromium.org, brettw-cc_chromium.org, kmadhusu
Visibility:
Public.

Description

Print Preview: Store preview data in PrintPreviewUIHTMLSource. BUG=64125 TEST=included Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=73681

Patch Set 1 : '' #

Patch Set 2 : fix build #

Patch Set 3 : use delegate #

Patch Set 4 : add unit tests #

Patch Set 5 : '' #

Total comments: 26

Patch Set 6 : address comments #

Patch Set 7 : store data in PrintPreviewUIHTMLSource #

Patch Set 8 : rebase #

Total comments: 13

Patch Set 9 : address comments, disable test on cros #

Patch Set 10 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+405 lines, -200 lines) Patch
M chrome/browser/dom_ui/print_preview_handler.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/print_preview_handler.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/print_preview_ui.h View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -3 lines 0 comments Download
M chrome/browser/dom_ui/print_preview_ui.cc View 1 2 3 4 5 6 7 8 9 2 chunks +9 lines, -125 lines 0 comments Download
A chrome/browser/dom_ui/print_preview_ui_html_source.h View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/print_preview_ui_html_source.cc View 1 2 3 4 5 6 1 chunk +123 lines, -0 lines 0 comments Download
A chrome/browser/dom_ui/print_preview_ui_html_source_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +60 lines, -0 lines 0 comments Download
A chrome/browser/printing/print_preview_message_handler.h View 1 2 3 4 5 1 chunk +42 lines, -0 lines 0 comments Download
A chrome/browser/printing/print_preview_message_handler.cc View 1 2 3 4 5 6 1 chunk +90 lines, -0 lines 0 comments Download
chrome/browser/renderer_host/render_view_host.h View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/renderer_host/render_view_host.cc View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -56 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Lei Zhang
So in order to store data in the PrintPreviewHandler, I have to access it through ...
9 years, 11 months ago (2011-01-25 22:03:45 UTC) #1
brettw
I just saw this. I was quite surprised by the current PrintPreview code. It uses ...
9 years, 11 months ago (2011-01-26 20:38:31 UTC) #2
Lei Zhang
On 2011/01/26 20:38:31, brettw wrote: > I just saw this. I was quite surprised by ...
9 years, 11 months ago (2011-01-27 00:05:47 UTC) #3
brettw
LGTM for TabContents/RenderViewHost changes. I didn't look at the printing files.
9 years, 11 months ago (2011-01-27 00:27:35 UTC) #4
James Hawkins
http://codereview.chromium.org/6334010/diff/43001/chrome/browser/dom_ui/print_preview_handler.h File chrome/browser/dom_ui/print_preview_handler.h (left): http://codereview.chromium.org/6334010/diff/43001/chrome/browser/dom_ui/print_preview_handler.h#oldcode9 chrome/browser/dom_ui/print_preview_handler.h:9: #include "base/scoped_ptr.h" This is right to remove scoped_ptr.h, but ...
9 years, 10 months ago (2011-01-31 18:39:37 UTC) #5
brettw
Thanks for helping clean this up (I didn't actually do a code review).
9 years, 10 months ago (2011-01-31 18:57:15 UTC) #6
Lei Zhang
I addressed most of James's comments in patch set 6. I'll take a look at ...
9 years, 10 months ago (2011-01-31 22:15:51 UTC) #7
James Hawkins
http://codereview.chromium.org/6334010/diff/43001/chrome/browser/dom_ui/print_preview_handler.h File chrome/browser/dom_ui/print_preview_handler.h (right): http://codereview.chromium.org/6334010/diff/43001/chrome/browser/dom_ui/print_preview_handler.h#newcode35 chrome/browser/dom_ui/print_preview_handler.h:35: // Save the print preview |data|. PrintPreviewHandler owns the ...
9 years, 10 months ago (2011-02-01 01:02:38 UTC) #8
Lei Zhang
Ok. I moved PrintPreviewUIHTMLSource out into its own file. It's mostly the same code as ...
9 years, 10 months ago (2011-02-01 02:37:29 UTC) #9
James Hawkins
http://codereview.chromium.org/6334010/diff/43015/chrome/browser/dom_ui/print_preview_ui.cc File chrome/browser/dom_ui/print_preview_ui.cc (right): http://codereview.chromium.org/6334010/diff/43015/chrome/browser/dom_ui/print_preview_ui.cc#newcode13 chrome/browser/dom_ui/print_preview_ui.cc:13: html_source_(make_scoped_refptr(new PrintPreviewUIHTMLSource())) { Why do you need to use ...
9 years, 10 months ago (2011-02-03 00:53:52 UTC) #10
Lei Zhang
In addition to addressing the comments in patch set 8, I realized the test fails ...
9 years, 10 months ago (2011-02-03 02:19:32 UTC) #11
James Hawkins
http://codereview.chromium.org/6334010/diff/43015/chrome/browser/dom_ui/print_preview_ui.cc File chrome/browser/dom_ui/print_preview_ui.cc (right): http://codereview.chromium.org/6334010/diff/43015/chrome/browser/dom_ui/print_preview_ui.cc#newcode13 chrome/browser/dom_ui/print_preview_ui.cc:13: html_source_(make_scoped_refptr(new PrintPreviewUIHTMLSource())) { On 2011/02/03 02:19:32, Lei Zhang wrote: ...
9 years, 10 months ago (2011-02-03 21:51:40 UTC) #12
Lei Zhang
http://codereview.chromium.org/6334010/diff/43015/chrome/browser/dom_ui/print_preview_ui.cc File chrome/browser/dom_ui/print_preview_ui.cc (right): http://codereview.chromium.org/6334010/diff/43015/chrome/browser/dom_ui/print_preview_ui.cc#newcode13 chrome/browser/dom_ui/print_preview_ui.cc:13: html_source_(make_scoped_refptr(new PrintPreviewUIHTMLSource())) { On 2011/02/03 21:51:40, James Hawkins wrote: ...
9 years, 10 months ago (2011-02-03 21:58:22 UTC) #13
James Hawkins
9 years, 10 months ago (2011-02-03 22:16:18 UTC) #14
LGTM, thanks.

Powered by Google App Engine
This is Rietveld 408576698