root/printing/android/java/src/org/chromium/printing/PrintManagerDelegate.java

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. print

// 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;

/**
 * Defines an interface for the Android system printing service, for easier testing.
 * We can't simply extend from {@link android.print.PrintManager}, since it's a final class.
 */
public interface PrintManagerDelegate {

    /**
     * Same as {@link android.print.PrintManager#print}, except this doesn't return a
     * {@link android.print.PrintJob} since the clients don't need it.
     */
    void print(String printJobName,
               PrintDocumentAdapter documentAdapter,
               PrintAttributes attributes);
}

/* [<][>][^][v][top][bottom][index][help] */