| Index: services/pdf_compositor/public/interfaces/pdf_compositor.mojom
|
| diff --git a/services/pdf_compositor/public/interfaces/pdf_compositor.mojom b/services/pdf_compositor/public/interfaces/pdf_compositor.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2d1ed8341733a4fb5503601638421de72ca9e347
|
| --- /dev/null
|
| +++ b/services/pdf_compositor/public/interfaces/pdf_compositor.mojom
|
| @@ -0,0 +1,20 @@
|
| +// 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 pdf_compositor.mojom;
|
| +
|
| +interface PdfCompositor {
|
| + // Add the dependency on a subframe.
|
| + PrepareSubframe(int32 subframeId, int32 pageNum);
|
| +
|
| + // Add a subframe content for composition.
|
| + AddSubFrameContent(int32 subframeId, handle<shared_buffer> sk_handle);
|
| +
|
| + // Query whether all subframe data are ready.
|
| + IsReadyToComposite(int32 pageNum) => (bool status);
|
| +
|
| + // Composite content from one or more subframes, and convert into a PDF file.
|
| + CompositePdf(handle<shared_buffer> sk_handle)
|
| + => (handle<shared_buffer> pdf_handle);
|
| +};
|
|
|