• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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 package org.chromium.printing;
6 
7 import android.print.PrintAttributes;
8 import android.print.PrintDocumentAdapter;
9 
10 /**
11  * Defines an interface for the Android system printing service, for easier testing.
12  * We can't simply extend from {@link android.print.PrintManager}, since it's a final class.
13  */
14 public interface PrintManagerDelegate {
15 
16     /**
17      * Same as {@link android.print.PrintManager#print}, except this doesn't return a
18      * {@link android.print.PrintJob} since the clients don't need it.
19      */
print(String printJobName, PrintDocumentAdapter documentAdapter, PrintAttributes attributes)20     void print(String printJobName,
21                PrintDocumentAdapter documentAdapter,
22                PrintAttributes attributes);
23 }
24