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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/printing/service/public/interfaces/OWNERS ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/printing/service/public/interfaces/pdf_compositor.mojom
diff --git a/components/printing/service/public/interfaces/pdf_compositor.mojom b/components/printing/service/public/interfaces/pdf_compositor.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..67f9448d947d274099cdc2378c63d9bc321065c4
--- /dev/null
+++ b/components/printing/service/public/interfaces/pdf_compositor.mojom
@@ -0,0 +1,16 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module printing.mojom;
+
+const string kServiceName = "pdf_compositor";
+
+// TODO(weili): Add support for printing frames from different processes.
+interface PdfCompositor {
+ // Currently directly convert passed in page data to a PDF file.
+ // |sk_handle| points to a buffer of a Skia MultiPictureDocument.
+ // |pdf_handle| points to the generated PDF file buffer.
+ CompositePdf(handle<shared_buffer> sk_handle)
+ => (handle<shared_buffer> pdf_handle);
+};
« no previous file with comments | « components/printing/service/public/interfaces/OWNERS ('k') | content/child/child_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698