| Index: printing/android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java
|
| diff --git a/printing/android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java b/printing/android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..99422a4ab5246bb33bc28f074e0e03386e9e10d1
|
| --- /dev/null
|
| +++ b/printing/android/java/src/org/chromium/printing/PrintManagerDelegateImpl.java
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2013 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.
|
| +
|
| +package org.chromium.printing;
|
| +
|
| +import android.print.PrintAttributes;
|
| +import android.print.PrintDocumentAdapter;
|
| +import android.print.PrintManager;
|
| +
|
| +/**
|
| + * An implementation of {@link PrintManagerDelegate} using the Android framework print manager.
|
| + */
|
| +public class PrintManagerDelegateImpl implements PrintManagerDelegate {
|
| + private final PrintManager mPrintManager;
|
| +
|
| + public PrintManagerDelegateImpl(PrintManager printManager) {
|
| + mPrintManager = printManager;
|
| + }
|
| +
|
| + @Override
|
| + public void print(String printJobName, PrintDocumentAdapter documentAdapter,
|
| + PrintAttributes attributes) {
|
| + mPrintManager.print(printJobName, documentAdapter, attributes);
|
| + }
|
| +
|
| +}
|
|
|