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

Issue 1421493002: Printing: Move some printing code out of pdf/ and into printing/. (Closed)

Created:
5 years, 2 months ago by Lei Zhang
Modified:
5 years, 1 month ago
Reviewers:
danakj, raymes
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Printing: Move some printing code out of pdf/ and into printing/. This code was stuck in pdf/ previously because the PDF plugin was proprietary. Add unit tests now that the code has been moved out. Committed: https://crrev.com/64c8e26697caef0ef26cf604da6747408efd7526 Cr-Commit-Position: refs/heads/master@{#356600}

Patch Set 1 #

Patch Set 2 : simplify a function, add some unit tests, rebase #

Total comments: 4

Patch Set 3 : add more tests, fix bug #

Patch Set 4 : add missing test file #

Total comments: 6

Patch Set 5 : !! #

Patch Set 6 : rebase #

Total comments: 6

Patch Set 7 : address comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+553 lines, -174 lines) Patch
M pdf/DEPS View 1 chunk +2 lines, -0 lines 2 comments Download
M pdf/pdfium/pdfium_engine.cc View 1 2 3 4 5 5 chunks +20 lines, -169 lines 0 comments Download
M printing/BUILD.gn View 1 3 chunks +14 lines, -5 lines 0 comments Download
A printing/pdf_transform.h View 1 2 3 4 5 1 chunk +104 lines, -0 lines 0 comments Download
A printing/pdf_transform.cc View 1 2 3 4 5 1 chunk +123 lines, -0 lines 0 comments Download
A printing/pdf_transform_unittest.cc View 1 2 3 4 5 6 1 chunk +282 lines, -0 lines 0 comments Download
M printing/printing.gyp View 1 2 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
Lei Zhang
5 years, 2 months ago (2015-10-21 02:39:59 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493002/1
5 years, 2 months ago (2015-10-21 03:42:27 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/111290)
5 years, 2 months ago (2015-10-21 03:53:11 UTC) #6
raymes
looks good overall, a few minor comments. https://codereview.chromium.org/1421493002/diff/20001/printing/pdf_transform.cc File printing/pdf_transform.cc (right): https://codereview.chromium.org/1421493002/diff/20001/printing/pdf_transform.cc#newcode18 printing/pdf_transform.cc:18: if (src_width ...
5 years, 1 month ago (2015-10-26 04:04:48 UTC) #7
Lei Zhang
Please note the CL description has changed and this now fixes a bug. https://codereview.chromium.org/1421493002/diff/20001/printing/pdf_transform.cc File ...
5 years, 1 month ago (2015-10-26 04:39:26 UTC) #8
raymes
Sorry I've been slow on this, I've been a bit swamped :( Would it be ...
5 years, 1 month ago (2015-10-27 04:03:20 UTC) #9
Lei Zhang
On 2015/10/27 04:03:20, raymes wrote: > Sorry I've been slow on this, I've been a ...
5 years, 1 month ago (2015-10-27 04:25:15 UTC) #10
Lei Zhang
And now we are back to this CL. It should be just a simple move.
5 years, 1 month ago (2015-10-28 00:56:24 UTC) #12
raymes
lgtm https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc File printing/pdf_transform.cc (right): https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc#newcode78 printing/pdf_transform.cc:78: void CalculateScaledClipBoxOffset(const gfx::Rect& content_rect, To be honest I ...
5 years, 1 month ago (2015-10-28 02:26:19 UTC) #13
Lei Zhang
https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc File printing/pdf_transform.cc (right): https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc#newcode78 printing/pdf_transform.cc:78: void CalculateScaledClipBoxOffset(const gfx::Rect& content_rect, On 2015/10/28 02:26:19, raymes wrote: ...
5 years, 1 month ago (2015-10-28 05:47:23 UTC) #14
raymes
https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc File printing/pdf_transform.cc (right): https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc#newcode78 printing/pdf_transform.cc:78: void CalculateScaledClipBoxOffset(const gfx::Rect& content_rect, Ah yes sorry, I wasn't ...
5 years, 1 month ago (2015-10-28 05:52:53 UTC) #15
Lei Zhang
+danakj for ui/OWNERS for pdf/DEPS.
5 years, 1 month ago (2015-10-28 06:02:33 UTC) #17
Lei Zhang
https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc File printing/pdf_transform.cc (right): https://codereview.chromium.org/1421493002/diff/100001/printing/pdf_transform.cc#newcode78 printing/pdf_transform.cc:78: void CalculateScaledClipBoxOffset(const gfx::Rect& content_rect, On 2015/10/28 05:52:53, raymes wrote: ...
5 years, 1 month ago (2015-10-28 06:03:54 UTC) #18
danakj
deps LGTM
5 years, 1 month ago (2015-10-28 18:15:40 UTC) #19
danakj
https://codereview.chromium.org/1421493002/diff/120001/pdf/DEPS File pdf/DEPS (right): https://codereview.chromium.org/1421493002/diff/120001/pdf/DEPS#newcode10 pdf/DEPS:10: "+ui/gfx/geometry/rect.h", you might wanna include all of geometry/.
5 years, 1 month ago (2015-10-28 18:16:04 UTC) #20
Lei Zhang
https://codereview.chromium.org/1421493002/diff/120001/pdf/DEPS File pdf/DEPS (right): https://codereview.chromium.org/1421493002/diff/120001/pdf/DEPS#newcode10 pdf/DEPS:10: "+ui/gfx/geometry/rect.h", On 2015/10/28 18:16:04, danakj wrote: > you might ...
5 years, 1 month ago (2015-10-28 18:50:26 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1421493002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1421493002/120001
5 years, 1 month ago (2015-10-28 18:52:22 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 1 month ago (2015-10-28 19:04:36 UTC) #25
commit-bot: I haz the power
5 years, 1 month ago (2015-10-28 19:05:55 UTC) #26
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/64c8e26697caef0ef26cf604da6747408efd7526
Cr-Commit-Position: refs/heads/master@{#356600}

Powered by Google App Engine
This is Rietveld 408576698