Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(313)

Issue 4040001: Printing: Refactor PrintSettings::Init into a PrintSettingsFactory class (Closed)

Created:
10 years, 2 months ago by James Hawkins
Modified:
9 years, 7 months ago
Reviewers:
stuartmorgan
CC:
chromium-reviews, pam+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Printing: Refactor PrintSettings::Init into a PrintSettingsFactory class per-platform. BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63907

Patch Set 1 #

Patch Set 2 : Gyp. #

Patch Set 3 : Gyp fix 2. #

Patch Set 4 : Win fix. #

Patch Set 5 : Win fix 2. #

Patch Set 6 : Crash fix. #

Total comments: 6

Patch Set 7 : PrintSettingsInitializer. #

Patch Set 8 : Unused include. #

Patch Set 9 : Win fixes. #

Total comments: 1

Patch Set 10 : Comment fix. #

Patch Set 11 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+341 lines, -193 lines) Patch
M chrome/browser/printing/print_job_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M printing/print_settings.h View 1 2 3 4 5 6 3 chunks +5 lines, -33 lines 0 comments Download
M printing/print_settings.cc View 2 chunks +0 lines, -146 lines 0 comments Download
A printing/print_settings_initializer_gtk.h View 7 8 9 1 chunk +33 lines, -0 lines 0 comments Download
A printing/print_settings_initializer_gtk.cc View 1 chunk +78 lines, -0 lines 0 comments Download
A printing/print_settings_initializer_mac.h View 7 8 9 1 chunk +32 lines, -0 lines 0 comments Download
A printing/print_settings_initializer_mac.cc View 1 chunk +70 lines, -0 lines 0 comments Download
A printing/print_settings_initializer_win.h View 7 8 9 1 chunk +36 lines, -0 lines 0 comments Download
A printing/print_settings_initializer_win.cc View 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M printing/printing.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +9 lines, -3 lines 0 comments Download
M printing/printing_context.h View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M printing/printing_context.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M printing/printing_context_cairo.cc View 1 2 3 4 5 6 3 chunks +4 lines, -1 line 0 comments Download
M printing/printing_context_mac.mm View 1 2 3 4 5 6 2 chunks +4 lines, -1 line 0 comments Download
M printing/printing_context_win.cc View 1 2 3 4 5 6 7 8 3 chunks +12 lines, -6 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
James Hawkins
10 years, 2 months ago (2010-10-22 00:02:02 UTC) #1
stuartmorgan
http://codereview.chromium.org/4040001/diff/13001/14003 File printing/print_settings.h (right): http://codereview.chromium.org/4040001/diff/13001/14003#newcode27 printing/print_settings.h:27: const PageRanges& new_ranges, bool print_selection_only); Why is this still ...
10 years, 2 months ago (2010-10-22 17:12:56 UTC) #2
James Hawkins
http://codereview.chromium.org/4040001/diff/13001/14003 File printing/print_settings.h (right): http://codereview.chromium.org/4040001/diff/13001/14003#newcode27 printing/print_settings.h:27: const PageRanges& new_ranges, bool print_selection_only); On 2010/10/22 17:12:56, stuartmorgan ...
10 years, 2 months ago (2010-10-25 21:00:33 UTC) #3
stuartmorgan
10 years, 2 months ago (2010-10-25 21:55:26 UTC) #4
LGTM with nit.

http://codereview.chromium.org/4040001/diff/28001/29005
File printing/print_settings_initializer_gtk.h (right):

http://codereview.chromium.org/4040001/diff/28001/29005#newcode18
printing/print_settings_initializer_gtk.h:18: // Creates a PrintSettings object
from the provided Gtk printer objects.
s/Creates/Initializes in all the headers.

Powered by Google App Engine
This is Rietveld 408576698