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

Side by Side Diff: components/printing/service/public/interfaces/pdf_compositor.mojom

Issue 2832633002: Add PDF compositor service (Closed)
Patch Set: rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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.
13 // |sk_handle| points to a buffer of a number of serialized page image data.
Lei Zhang 2017/05/04 02:13:13 Does it make sense to mention the format? MSKP?
Wei Li 2017/05/04 18:18:28 Done.
14 // The content is obtained from skia::SerializePages().
Lei Zhang 2017/05/04 02:13:13 skia::SerializePages() doesn't exist.
Wei Li 2017/05/04 18:18:28 Removed
15 // |pdf_handle| points to the generated PDF file buffer.
16 CompositePdf(handle<shared_buffer> sk_handle)
17 => (handle<shared_buffer> pdf_handle);
18 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698