Chromium Code Reviews| Index: printing/android/java/src/org/chromium/printing/PrintingController.java |
| diff --git a/printing/android/java/src/org/chromium/printing/PrintingController.java b/printing/android/java/src/org/chromium/printing/PrintingController.java |
| index 92be96820b90d83cd71dc7e3e38e491c4bbca7a2..51d6c172d652d77423739460fa06410511b86c32 100644 |
| --- a/printing/android/java/src/org/chromium/printing/PrintingController.java |
| +++ b/printing/android/java/src/org/chromium/printing/PrintingController.java |
| @@ -73,7 +73,7 @@ public interface PrintingController { |
| * Sets PrintingContext currently associated with the controller. |
| * |
| * This needs to be called after PrintingContext object is created. Firstly its native |
| - * counterpart is created, and then the Java. PrintingController implementation |
| + * counterpart is created, and then the Java. PrintingController implementation |
| * needs this to interact with the native side, since JNI is built on PrintingContext. |
| **/ |
| void setPrintingContext(final PrintingContextInterface printingContext); |
| @@ -82,4 +82,26 @@ public interface PrintingController { |
| * @return Whether a complete PDF generation cycle inside Chromium has been completed. |
| */ |
| boolean hasPrintingFinished(); |
| + |
| + /** |
| + * Sets the data required to initiate a printing process. The process can later be started using |
| + * {@link #startPendingPrint(PrintingContextInterface)}. |
| + * |
| + * @param printable An object capable of starting native side PDF generation, i.e. typically |
| + * a Tab. |
|
Bernhard Bauer
2014/12/15 09:38:02
Nit: Just indent the next line by four spaces. Oth
dgn
2014/12/15 10:27:06
Done.
|
| + * @param printManager The print manager that manages the print job. |
| + */ |
| + void setPendingPrint(final Printable printable, final PrintManagerDelegate printManager); |
| + |
| + /** |
| + * Starts printing, provided that the current object already has sufficient data to start the |
| + * process. (using {@link #setPendingPrint(Printable, PrintManagerDelegate)} for example) |
| + * |
| + * @param jsOriginatedPrintingContext The printingContext holding the callback to be used to |
| + * reply when javascript can resume. When printing is done, |
| + * {@link PrintingContextInterface#showSystemDialogDone()} |
| + * will be called. |
| + */ |
| + void startPendingPrint(PrintingContextInterface jsOriginatedPrintingContext); |
| + |
| } |