OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 module printing.mojom; | |
6 | |
7 const string kServiceName = "pdf_compositor"; | |
8 | |
9 // TODO(weili): Add support for printing frames from different processes. | |
10 // Currently directly convert passed in page data to a PDF file. | |
11 interface PdfCompositor { | |
12 // Composite content from one or more subframes, and convert into a PDF file. | |
dcheng
2017/05/10 07:36:48
This comment doesn't seem entirely accurate at the
Wei Li
2017/05/11 16:53:02
Updated.
| |
13 // |sk_handle| points to a buffer of a Skia MultiPictureDocument. | |
14 // |pdf_handle| points to the generated PDF file buffer. | |
15 CompositePdf(handle<shared_buffer> sk_handle) | |
16 => (handle<shared_buffer> pdf_handle); | |
dcheng
2017/05/10 07:36:48
Realistically, how large do we expect these buffer
Wei Li
2017/05/11 16:53:02
For web pages, skia document buffer is smaller tha
| |
17 }; | |
OLD | NEW |