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

Issue 149212: Move printing related stuff to the root printing project from the browser pro... (Closed)

Created:
11 years, 5 months ago by Sverrir
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), brettw, Ben Goodger (Google)
Visibility:
Public.

Description

Move printing related stuff to the root printing project from the browser project. This simplifies further refactoring and eases understanding of the printing part of Chrome. Also renamed win_printing_context to printing_context_win (correct naming convention) and added stub implementations for _linux and mac. Now all but one file is compiling on all platforms. TEST=none (no functional change). BUG=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=20086

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Patch Set 8 : '' #

Total comments: 8
Unified diffs Side-by-side diffs Delta from patch set Stats (+413 lines, -2877 lines) Patch
M chrome/browser/browser_main.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
D chrome/browser/printing/page_number.h View 1 2 3 4 1 chunk +0 lines, -73 lines 0 comments Download
D chrome/browser/printing/page_number.cc View 1 2 3 4 1 chunk +0 lines, -83 lines 0 comments Download
D chrome/browser/printing/page_number_unittest.cc View 1 2 3 4 1 chunk +0 lines, -30 lines 0 comments Download
D chrome/browser/printing/page_overlays.h View 1 2 3 4 1 chunk +0 lines, -80 lines 0 comments Download
D chrome/browser/printing/page_overlays.cc View 1 2 3 4 1 chunk +0 lines, -206 lines 0 comments Download
D chrome/browser/printing/page_overlays_unittest.cc View 1 2 3 4 1 chunk +0 lines, -89 lines 0 comments Download
D chrome/browser/printing/page_range.h View 1 2 3 4 1 chunk +0 lines, -34 lines 0 comments Download
D chrome/browser/printing/page_range.cc View 1 2 3 4 1 chunk +0 lines, -31 lines 0 comments Download
D chrome/browser/printing/page_range_unittest.cc View 1 2 3 4 1 chunk +0 lines, -38 lines 0 comments Download
D chrome/browser/printing/page_setup.h View 1 2 3 4 1 chunk +0 lines, -82 lines 0 comments Download
D chrome/browser/printing/page_setup.cc View 1 2 3 4 1 chunk +0 lines, -126 lines 0 comments Download
D chrome/browser/printing/page_setup_unittest.cc View 1 2 3 4 1 chunk +0 lines, -146 lines 0 comments Download
M chrome/browser/printing/print_job.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_job_manager.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_job_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_job_worker.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_job_worker.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/printing/print_job_worker_owner.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/printing/print_settings.h View 1 2 3 4 1 chunk +0 lines, -112 lines 0 comments Download
D chrome/browser/printing/print_settings.cc View 1 2 3 4 1 chunk +0 lines, -133 lines 0 comments Download
M chrome/browser/printing/print_view_manager.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/printing/print_view_manager.cc View 1 2 3 4 2 chunks +1 line, -1 line 0 comments Download
D chrome/browser/printing/printed_document.h View 1 2 3 4 1 chunk +0 lines, -192 lines 0 comments Download
D chrome/browser/printing/printed_document.cc View 1 2 3 4 1 chunk +0 lines, -366 lines 0 comments Download
D chrome/browser/printing/printed_page.h View 1 2 3 4 1 chunk +0 lines, -50 lines 0 comments Download
D chrome/browser/printing/printed_page.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download
D chrome/browser/printing/printed_pages_source.h View 1 2 3 4 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/printing/printing_layout_uitest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/printing/printing_test.h View 1 2 3 4 1 chunk +0 lines, -36 lines 0 comments Download
D chrome/browser/printing/win_printing_context.h View 1 2 3 4 1 chunk +0 lines, -139 lines 0 comments Download
D chrome/browser/printing/win_printing_context.cc View 1 2 3 4 1 chunk +0 lines, -608 lines 0 comments Download
D chrome/browser/printing/win_printing_context_unittest.cc View 1 2 3 4 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 3 chunks +23 lines, -2 lines 2 comments Download
M chrome/chrome.gyp View 1 2 3 4 7 chunks +1 line, -26 lines 0 comments Download
M printing/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M printing/emf_win.h View 2 chunks +3 lines, -3 lines 0 comments Download
M printing/emf_win_unittest.cc View 3 4 1 chunk +1 line, -1 line 0 comments Download
M printing/native_metafile.h View 2 chunks +7 lines, -3 lines 0 comments Download
A + printing/page_number.h View 1 2 3 4 5 6 2 chunks +4 lines, -4 lines 0 comments Download
A + printing/page_number.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + printing/page_number_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
A + printing/page_overlays.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A + printing/page_overlays.cc View 1 chunk +3 lines, -3 lines 0 comments Download
A + printing/page_overlays_unittest.cc View 1 chunk +8 lines, -5 lines 4 comments Download
A + printing/page_range.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A + printing/page_range.cc View 1 chunk +1 line, -1 line 0 comments Download
A + printing/page_range_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + printing/page_setup.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A + printing/page_setup.cc View 1 chunk +1 line, -1 line 0 comments Download
A + printing/page_setup_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
A + printing/print_settings.h View 1 2 3 4 5 6 3 chunks +6 lines, -11 lines 0 comments Download
A + printing/print_settings.cc View 2 chunks +1 line, -18 lines 0 comments Download
A + printing/printed_document.h View 1 2 3 4 5 6 3 chunks +6 lines, -6 lines 0 comments Download
A + printing/printed_document.cc View 2 chunks +5 lines, -5 lines 0 comments Download
A + printing/printed_page.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
A + printing/printed_page.cc View 1 chunk +1 line, -1 line 0 comments Download
A + printing/printed_pages_source.h View 1 2 3 4 5 6 2 chunks +3 lines, -3 lines 0 comments Download
M printing/printing.gyp View 1 2 3 4 5 6 4 chunks +46 lines, -4 lines 0 comments Download
A + printing/printing_context.h View 3 4 5 6 7 chunks +18 lines, -5 lines 0 comments Download
A printing/printing_context_linux.cc View 1 chunk +117 lines, -0 lines 0 comments Download
A printing/printing_context_mac.cc View 1 chunk +117 lines, -0 lines 0 comments Download
A + printing/printing_context_win.cc View 3 4 5 6 3 chunks +4 lines, -5 lines 0 comments Download
A + printing/printing_context_win_unittest.cc View 1 chunk +3 lines, -3 lines 2 comments Download
A + printing\printing_test.h View 0 chunks +-1 lines, --1 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
Sverrir
Continued refactoring of the printing stuff. Some of the unit tests for printing are now ...
11 years, 5 months ago (2009-07-07 15:16:27 UTC) #1
M-A Ruel
nit: Can you add printing/printing_context_linux.cc and _mac.cc right now with the corresponding stub member functions ...
11 years, 5 months ago (2009-07-07 16:16:50 UTC) #2
Mohamed Mansour
The patch isn't actually moving (if you look at the .patch file) the files are ...
11 years, 5 months ago (2009-07-07 16:33:54 UTC) #3
Sverrir
Added printing_context_linux and _mac. Now everything compiles except for printed_document on all platforms. Fixed minor ...
11 years, 5 months ago (2009-07-07 20:29:49 UTC) #4
M-A Ruel
http://codereview.chromium.org/149212/diff/450/456 File printing/page_overlays_unittest.cc (right): http://codereview.chromium.org/149212/diff/450/456#newcode17 Line 17: base::AtExitManager global_at_exit_manager; I don't understand your comment. I ...
11 years, 5 months ago (2009-07-07 20:52:44 UTC) #5
Sverrir
http://codereview.chromium.org/149212/diff/450/456 File printing/page_overlays_unittest.cc (right): http://codereview.chromium.org/149212/diff/450/456#newcode17 Line 17: base::AtExitManager global_at_exit_manager; On 2009/07/07 20:52:44, Marc-Antoine Ruel wrote: ...
11 years, 5 months ago (2009-07-07 21:22:58 UTC) #6
M-A Ruel
A bit late but still, the global_at_exit_manager should be fixed in a subsequent patch. http://codereview.chromium.org/149212/diff/450/507 ...
11 years, 5 months ago (2009-07-09 19:27:58 UTC) #7
Sverrir
11 years, 5 months ago (2009-07-09 20:13:23 UTC) #8
http://codereview.chromium.org/149212/diff/450/507
File chrome/browser/renderer_host/resource_message_filter.cc (right):

http://codereview.chromium.org/149212/diff/450/507#newcode119
Line 119: #if defined(OS_WIN)
On 2009/07/09 19:27:59, Marc-Antoine Ruel wrote:
> Actually, why OS_WIN? I don't see much platform specific code there.

Currently this file is including the temp_scaffolding_stubs.h (where these
member variables are not defined).   I will check if can do a quick fix to that.
 I will send in a separate change if so.

http://codereview.chromium.org/149212/diff/450/456
File printing/page_overlays_unittest.cc (right):

http://codereview.chromium.org/149212/diff/450/456#newcode17
Line 17: base::AtExitManager global_at_exit_manager;
On 2009/07/09 19:27:59, Marc-Antoine Ruel wrote:
> Still, you can't check that in. It affects every other tests in the
executable.
> You can make it member of PageOverlaysTest though.

Figured it out.  printing_unittest was not using the right test harness. 
Sending another changelist for this.

Powered by Google App Engine
This is Rietveld 408576698