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

Issue 2829973002: add customized printing setting for headless (Closed)

Created:
3 years, 8 months ago by jzfeng
Modified:
3 years, 7 months ago
CC:
apavlov+blink_chromium.org, blink-reviews, caseq+blink_chromium.org, chromium-reviews, darin-cc_chromium.org, devtools-reviews_chromium.org, jam, kozyatinskiy+blink_chromium.org, lushnikov+blink_chromium.org, mac-reviews_chromium.org, pfeldman+blink_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

add customized printing setting for headless 1) Add parameters to printToPDF command, which let the user to specify printing settings like paper size, margin size, etc. 2) PrintWebViewHelper::PrintPageInternal and PrintWebViewHelper::RenderPage feed print_preview_context_.total_page_count() to PrintHeaderAndFooter. However, HeadlessPrintManager issues PrintMsg_PrintPages IPC message, which leaves print_preview_context_ uninitialized. To solve the problem, add page_count as an arg to these two methods. 3) Added unit test and browser test for print to pdf. BUG=603559 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2829973002 Cr-Commit-Position: refs/heads/master@{#470159} Committed: https://chromium.googlesource.com/chromium/src/+/3d83dad2db679c3924ffe74599cfd48a03211778

Patch Set 1 #

Patch Set 2 : nit change #

Total comments: 72

Patch Set 3 : adjust command interface and add unit tests #

Total comments: 6

Patch Set 4 : simplify parameters for paper size #

Patch Set 5 : make scale and header+footer available for basic print #

Patch Set 6 : add locale pak for browsertests #

Patch Set 7 : fix typo #

Patch Set 8 : add browser test for print to pdf #

Patch Set 9 : remove unused includes #

Patch Set 10 : use GetRawDataResource to avoid using locale pak #

Total comments: 4

Patch Set 11 : nit change #

Total comments: 4

Patch Set 12 : nit #

Total comments: 44

Patch Set 13 : polish code #

Total comments: 4

Patch Set 14 : nit #

Patch Set 15 : use dep skia #

Patch Set 16 : move content/public/common to public dep #

Patch Set 17 : add skia as public_deps instead #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+646 lines, -93 lines) Patch
M chrome/browser/resources/print_preview/settings/scaling_settings.html View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +5 lines, -4 lines 0 comments Download
M components/printing/renderer/print_web_view_helper.cc View 1 2 3 4 5 6 7 8 9 10 11 12 11 chunks +11 lines, -16 lines 0 comments Download
M components/printing/renderer/print_web_view_helper_linux.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/printing/renderer/print_web_view_helper_mac.mm View 1 2 3 4 6 chunks +13 lines, -11 lines 0 comments Download
M components/printing/renderer/print_web_view_helper_pdf_win.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M components/resources/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -1 line 0 comments Download
M components/resources/printing_resources.grdp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download
M content/browser/devtools/protocol/page_handler.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -1 line 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +12 lines, -1 line 0 comments Download
M headless/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +14 lines, -0 lines 5 comments Download
M headless/app/headless_shell.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -1 line 0 comments Download
M headless/lib/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_devtools_manager_delegate.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_devtools_manager_delegate.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +76 lines, -7 lines 0 comments Download
M headless/lib/browser/headless_print_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +43 lines, -0 lines 0 comments Download
M headless/lib/browser/headless_print_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +131 lines, -43 lines 0 comments Download
A headless/lib/browser/headless_printing_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +192 lines, -0 lines 0 comments Download
M headless/lib/headless_web_contents_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +92 lines, -1 line 0 comments Download
M headless/lib/renderer/headless_print_web_view_helper_delegate.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/browser_protocol.json View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +14 lines, -1 line 0 comments Download

Messages

Total messages: 99 (49 generated)
jzfeng
This patch adds the customized printing setting feature. PTAL. Thanks!
3 years, 8 months ago (2017-04-20 07:05:38 UTC) #8
Lei Zhang
https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h File content/browser/devtools/protocol/page_handler.h (right): https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h#newcode80 content/browser/devtools/protocol/page_handler.h:80: void PrintToPDF(Maybe<int> dpi, Not sure how well a DPI ...
3 years, 8 months ago (2017-04-20 08:35:59 UTC) #9
Lei Zhang
https://codereview.chromium.org/2829973002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2829973002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode284 headless/lib/browser/headless_devtools_manager_delegate.cc:284: auto response = ParsePrintSettings(command_id, params, &settings); On 2017/04/20 08:35:58, ...
3 years, 8 months ago (2017-04-20 08:53:12 UTC) #10
Lei Zhang
https://codereview.chromium.org/2829973002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2829973002/diff/20001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode129 headless/lib/browser/headless_devtools_manager_delegate.cc:129: if (params->GetString("pageRanges", &page_ranges)) { If you want to get ...
3 years, 8 months ago (2017-04-20 09:15:05 UTC) #11
Eric Seckler
https://codereview.chromium.org/2829973002/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/20001/headless/BUILD.gn#newcode28 headless/BUILD.gn:28: repack_locales("locale_pak") { I'm not very familiar with locales. Can ...
3 years, 8 months ago (2017-04-20 09:15:28 UTC) #12
Lei Zhang
+weili FYI since there's potential PrintWebViewHelper changes here. https://codereview.chromium.org/2829973002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2829973002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode439 third_party/WebKit/Source/core/inspector/browser_protocol.json:439: {"name": ...
3 years, 8 months ago (2017-04-20 19:08:59 UTC) #13
Eric Seckler
On 2017/04/20 19:08:59, Lei Zhang wrote: > https://codereview.chromium.org/2829973002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode439 > third_party/WebKit/Source/core/inspector/browser_protocol.json:439: {"name": > "paperType", "type": "string", ...
3 years, 8 months ago (2017-04-20 20:10:54 UTC) #15
pfeldman
> True. +pfeldman since this is ultimately a devtools API question. Use the same terms ...
3 years, 8 months ago (2017-04-20 20:46:51 UTC) #16
martinsb
https://codereview.chromium.org/2829973002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2829973002/diff/20001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode439 third_party/WebKit/Source/core/inspector/browser_protocol.json:439: {"name": "paperType", "type": "string", "optional": true, "enum": ["letter", "legal", ...
3 years, 8 months ago (2017-04-26 08:10:00 UTC) #18
jzfeng
Thanks for the review! PTAL. https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h File content/browser/devtools/protocol/page_handler.h (right): https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h#newcode80 content/browser/devtools/protocol/page_handler.h:80: void PrintToPDF(Maybe<int> dpi, On ...
3 years, 7 months ago (2017-04-27 06:56:07 UTC) #20
Eric Seckler
Cool, thank you! Since I don't think we have any yet, could we also add ...
3 years, 7 months ago (2017-04-27 08:57:00 UTC) #26
altimin
https://codereview.chromium.org/2829973002/diff/20001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/20001/headless/BUILD.gn#newcode28 headless/BUILD.gn:28: repack_locales("locale_pak") { On 2017/04/27 08:57:00, Eric Seckler wrote: > ...
3 years, 7 months ago (2017-04-27 15:16:34 UTC) #27
Sami
We only really care about binary size in the case when we're embedded into Chrome, ...
3 years, 7 months ago (2017-04-27 17:54:55 UTC) #28
Lei Zhang
https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h File content/browser/devtools/protocol/page_handler.h (right): https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h#newcode80 content/browser/devtools/protocol/page_handler.h:80: void PrintToPDF(Maybe<int> dpi, On 2017/04/27 08:56:59, Eric Seckler wrote: ...
3 years, 7 months ago (2017-04-27 22:17:47 UTC) #29
Eric Seckler
https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h File content/browser/devtools/protocol/page_handler.h (right): https://codereview.chromium.org/2829973002/diff/20001/content/browser/devtools/protocol/page_handler.h#newcode80 content/browser/devtools/protocol/page_handler.h:80: void PrintToPDF(Maybe<int> dpi, On 2017/04/27 22:17:46, Lei Zhang wrote: ...
3 years, 7 months ago (2017-04-28 08:13:07 UTC) #30
kardianos
> Let's go without it for now then. I believe someone asked on the headless ...
3 years, 7 months ago (2017-04-28 17:12:33 UTC) #31
jzfeng
Thanks for the review! Change the code as commented and added browser test. PTAL. https://codereview.chromium.org/2829973002/diff/20001/headless/BUILD.gn ...
3 years, 7 months ago (2017-05-02 07:50:56 UTC) #48
Eric Seckler
great work, lgtm! :) https://codereview.chromium.org/2829973002/diff/180001/components/resources/BUILD.gn File components/resources/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/180001/components/resources/BUILD.gn#newcode35 components/resources/BUILD.gn:35: "enable_print_preview_page=$enable_print_preview", this probably shouldn't be ...
3 years, 7 months ago (2017-05-02 09:35:28 UTC) #51
jzfeng
Thanks for the review! @Lei, would you minding taking a look at this CL? https://codereview.chromium.org/2829973002/diff/180001/components/resources/BUILD.gn ...
3 years, 7 months ago (2017-05-03 00:45:56 UTC) #52
Lei Zhang
On 2017/05/03 00:45:56, jzfeng wrote: > @Lei, would you minding taking a look at this ...
3 years, 7 months ago (2017-05-03 01:27:44 UTC) #53
Sami
headless/ lgtm, thank you! https://codereview.chromium.org/2829973002/diff/200001/headless/lib/browser/headless_devtools_manager_delegate.cc File headless/lib/browser/headless_devtools_manager_delegate.cc (right): https://codereview.chromium.org/2829973002/diff/200001/headless/lib/browser/headless_devtools_manager_delegate.cc#newcode103 headless/lib/browser/headless_devtools_manager_delegate.cc:103: // we can safely ignore ...
3 years, 7 months ago (2017-05-03 17:21:54 UTC) #54
jzfeng
Thanks for the review! @Lei, have you got sometime to review this CL? Thanks! https://codereview.chromium.org/2829973002/diff/200001/headless/lib/browser/headless_devtools_manager_delegate.cc ...
3 years, 7 months ago (2017-05-04 01:44:47 UTC) #55
Lei Zhang
On 2017/05/04 01:44:47, jzfeng wrote: > Thanks for the review! > > @Lei, have you ...
3 years, 7 months ago (2017-05-04 01:51:55 UTC) #56
jzfeng
On 2017/05/04 at 01:51:55, thestig wrote: > On 2017/05/04 01:44:47, jzfeng wrote: > > Thanks ...
3 years, 7 months ago (2017-05-04 02:01:38 UTC) #57
Lei Zhang
Looks good. Lots of nitty bits to polish. https://codereview.chromium.org/2829973002/diff/220001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2829973002/diff/220001/components/printing/renderer/print_web_view_helper.cc#newcode94 components/printing/renderer/print_web_view_helper.cc:94: #endif ...
3 years, 7 months ago (2017-05-04 07:29:38 UTC) #58
jzfeng
Thanks for the review! PTAL. https://codereview.chromium.org/2829973002/diff/220001/components/printing/renderer/print_web_view_helper.cc File components/printing/renderer/print_web_view_helper.cc (right): https://codereview.chromium.org/2829973002/diff/220001/components/printing/renderer/print_web_view_helper.cc#newcode94 components/printing/renderer/print_web_view_helper.cc:94: #endif // BUILDFLAG(ENABLE_PRINT_PREVIEW) On ...
3 years, 7 months ago (2017-05-05 02:41:34 UTC) #59
Lei Zhang
Oh, looks like one of my CLs to reuse chrome::kChromeUIPrintURL broke the build here. :\
3 years, 7 months ago (2017-05-05 03:44:10 UTC) #64
Lei Zhang
https://codereview.chromium.org/2829973002/diff/220001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/220001/headless/BUILD.gn#newcode412 headless/BUILD.gn:412: deps += [ "//content/public/common" ] On 2017/05/05 02:41:33, jzfeng ...
3 years, 7 months ago (2017-05-05 03:53:01 UTC) #65
Lei Zhang
On 2017/05/05 03:44:10, Lei Zhang wrote: > Oh, looks like one of my CLs to ...
3 years, 7 months ago (2017-05-05 04:21:05 UTC) #66
jzfeng
Thanks for the review and fix! PTAL. https://codereview.chromium.org/2829973002/diff/220001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json (right): https://codereview.chromium.org/2829973002/diff/220001/third_party/WebKit/Source/core/inspector/browser_protocol.json#newcode438 third_party/WebKit/Source/core/inspector/browser_protocol.json:438: {"name": "paperWidth", ...
3 years, 7 months ago (2017-05-05 04:28:11 UTC) #67
Lei Zhang
Still looking into why the skia public_deps entry from content/ isn't propagating. https://codereview.chromium.org/2829973002/diff/220001/third_party/WebKit/Source/core/inspector/browser_protocol.json File third_party/WebKit/Source/core/inspector/browser_protocol.json ...
3 years, 7 months ago (2017-05-05 04:40:18 UTC) #68
jzfeng
I changed to use the //skia dep, which seems to work.
3 years, 7 months ago (2017-05-05 04:41:32 UTC) #69
jzfeng
On 2017/05/05 04:41:32, jzfeng wrote: > I changed to use the //skia dep, which seems ...
3 years, 7 months ago (2017-05-05 04:54:20 UTC) #70
Lei Zhang
On 2017/05/05 04:54:20, jzfeng wrote: > On 2017/05/05 04:41:32, jzfeng wrote: > > I changed ...
3 years, 7 months ago (2017-05-05 05:17:12 UTC) #71
Lei Zhang
Otherwise, lgtm
3 years, 7 months ago (2017-05-05 05:18:46 UTC) #72
jzfeng
On 2017/05/05 05:17:12, Lei Zhang wrote: > On 2017/05/05 04:54:20, jzfeng wrote: > > On ...
3 years, 7 months ago (2017-05-05 05:24:38 UTC) #73
jzfeng
@blundell: could you take a look at the change under components/resources? @pfeldman: could you take ...
3 years, 7 months ago (2017-05-05 05:42:46 UTC) #77
blundell
//components top-level lgtm
3 years, 7 months ago (2017-05-05 12:30:26 UTC) #78
Sami
https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 headless/BUILD.gn:322: public_deps += [ "//skia" ] This is probably fine ...
3 years, 7 months ago (2017-05-05 16:54:15 UTC) #79
Wei Li
https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 headless/BUILD.gn:322: public_deps += [ "//skia" ] drive-by: Should this be ...
3 years, 7 months ago (2017-05-05 17:18:29 UTC) #81
Lei Zhang
https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 headless/BUILD.gn:322: public_deps += [ "//skia" ] On 2017/05/05 17:18:28, Wei ...
3 years, 7 months ago (2017-05-05 21:39:28 UTC) #82
Wei Li
On 2017/05/05 21:39:28, Lei Zhang wrote: > https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn > File headless/BUILD.gn (right): > > https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 ...
3 years, 7 months ago (2017-05-06 18:41:13 UTC) #87
pfeldman
devtools protocol lgtm
3 years, 7 months ago (2017-05-08 18:59:16 UTC) #88
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2829973002/320001
3 years, 7 months ago (2017-05-09 00:49:47 UTC) #91
commit-bot: I haz the power
Committed patchset #17 (id:320001) as https://chromium.googlesource.com/chromium/src/+/3d83dad2db679c3924ffe74599cfd48a03211778
3 years, 7 months ago (2017-05-09 03:44:42 UTC) #94
blundell
https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 headless/BUILD.gn:322: public_deps += [ "//skia" ] On 2017/05/05 21:39:28, Lei ...
3 years, 7 months ago (2017-05-09 15:34:04 UTC) #95
jzfeng
https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn File headless/BUILD.gn (right): https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 headless/BUILD.gn:322: public_deps += [ "//skia" ] On 2017/05/09 15:34:04, blundell ...
3 years, 7 months ago (2017-05-10 06:55:09 UTC) #96
blundell
On 2017/05/10 06:55:09, jzfeng wrote: > https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn > File headless/BUILD.gn (right): > > https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newcode322 > ...
3 years, 7 months ago (2017-05-10 09:35:10 UTC) #97
jzfeng
On 2017/05/10 09:35:10, blundell wrote: > On 2017/05/10 06:55:09, jzfeng wrote: > > https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn > ...
3 years, 7 months ago (2017-05-10 09:56:44 UTC) #98
blundell
3 years, 7 months ago (2017-05-10 12:20:01 UTC) #99
Message was sent while issue was closed.
On 2017/05/10 09:56:44, jzfeng (OOO) wrote:
> On 2017/05/10 09:35:10, blundell wrote:
> > On 2017/05/10 06:55:09, jzfeng wrote:
> > > https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn
> > > File headless/BUILD.gn (right):
> > > 
> > >
> >
>
https://codereview.chromium.org/2829973002/diff/320001/headless/BUILD.gn#newc...
> > > headless/BUILD.gn:322: public_deps += [ "//skia" ]
> > > On 2017/05/09 15:34:04, blundell wrote:
> > > > On 2017/05/05 21:39:28, Lei Zhang wrote:
> > > > > On 2017/05/05 17:18:28, Wei Li wrote:
> > > > > > drive-by: Should this be a deps instead? I don't see why headless
lib
> > > needs
> > > > to
> > > > > > expose skia?
> > > > > 
> > > > > It's not a deps entry because it is no the headless_lib target that
> needs
> > > it.
> > > > > It's any dependents that #includes
> > > > headless/lib/browser/headless_print_manager.h
> > > > > that has problems.
> > > > > 
> > > > > As an example, components/constrained_window does the same thing, even
> > > though
> > > > > the directory does not have a single skia #include.
> > > > 
> > > > I've been following this discussion, and I still don't really understand
> it.
> > > If
> > > > the target doesn't need to directly depend on or expose //skia, then it
> also
> > > > shouldn't need to have //skia as a public dependency. If the issue is
that
> > > this
> > > > target is exposing its dependents to some intermediate target that then
> > > exposes
> > > > //skia, I believe that the following structure should have the same
effect
> > and
> > > > is cleaner from an encapsulation POV:
> > > > - the intermediate target lists //skia as a public dep
> > > > - this target lists the intermediate target as a public dep
> > > > 
> > > > Am I missing something here?
> > > 
> > > headless_lib need to expose //skia to make the target depend on it to
build.
> > 
> > Can you detail exactly why this is the case?
> 
> I added a unit test which need to include headless_print_manager.h.
> 
> Without //skia, it doesn't build.
> The error message is:
> in file included from
> ../../headless/lib/browser/headless_printing_unittest.cc:7:
> In file included from
> ../../headless/lib/browser/headless_devtools_manager_delegate.h:19:
> In file included from
> ../../headless/lib/browser/headless_print_manager.h:12:
> In file included from
> ../../components/printing/browser/print_manager.h:10:
> In file included from
> ../../content/public/browser/web_contents_observer.h:22:
> In file included from ../../third_party/skia/include/core/SkColor.h:11:
> In file included from ../../third_party/skia/include/core/SkScalar.h:11:
> ../../third_party/skia/include/core/../private/SkFloatingPoint.h:13:10:
> fatal error: 'SkTypes.h' file not found
> #include "SkTypes.h"
> ^~~~~~~~~~~
> 1 error generated.

Great, thanks! Based on that inclusion chain, I think that the below CL is a
cleaner approach, for reasons that I outline in the CL description:

https://codereview.chromium.org/2871123003/

Powered by Google App Engine
This is Rietveld 408576698