OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // <p>The <code>chrome.printerProvider</code> API exposes events used by print | 5 // <p>The <code>chrome.printerProvider</code> API exposes events used by print |
6 // manager to query printers controlled by extensions, to query their | 6 // manager to query printers controlled by extensions, to query their |
7 // capabilities and to submit print jobs to these printers. | 7 // capabilities and to submit print jobs to these printers. |
8 // <p/> | 8 // <p/> |
9 // <p>Available only on dev channel since Chrome 42.</p> | 9 // <p>Available only on dev channel since Chrome 42.</p> |
10 namespace printerProvider { | 10 namespace printerProvider { |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 // Printer's human readable description. | 37 // Printer's human readable description. |
38 DOMString? description; | 38 DOMString? description; |
39 }; | 39 }; |
40 | 40 |
41 // Printing request parameters. Passed to $(ref:onPrintRequested) event. | 41 // Printing request parameters. Passed to $(ref:onPrintRequested) event. |
42 dictionary PrintJob { | 42 dictionary PrintJob { |
43 // ID of the printer which should handle the job. | 43 // ID of the printer which should handle the job. |
44 DOMString printerId; | 44 DOMString printerId; |
45 | 45 |
| 46 // The print job title. |
| 47 DOMString title; |
| 48 |
46 // Print ticket in | 49 // Print ticket in |
47 // <a href="https://developers.google.com/cloud-print/docs/cdd#cjt"> | 50 // <a href="https://developers.google.com/cloud-print/docs/cdd#cjt"> |
48 // CJT format</a>. | 51 // CJT format</a>. |
49 object ticket; | 52 object ticket; |
50 | 53 |
51 // The document content type. Supported formats are | 54 // The document content type. Supported formats are |
52 // <code>"application/pdf"</code> and <code>"image/pwg-raster"</code>. | 55 // <code>"application/pdf"</code> and <code>"image/pwg-raster"</code>. |
53 DOMString contentType; | 56 DOMString contentType; |
54 | 57 |
55 // Blob containing the document data to print. Format must match | 58 // Blob containing the document data to print. Format must match |
(...skipping 27 matching lines...) Expand all Loading... |
83 | 86 |
84 // Event fired when print manager requests printing. | 87 // Event fired when print manager requests printing. |
85 // |printJob|: The printing request parameters. | 88 // |printJob|: The printing request parameters. |
86 // |resultCallback|: Callback that should be called when the printing | 89 // |resultCallback|: Callback that should be called when the printing |
87 // request is completed. | 90 // request is completed. |
88 static void onPrintRequested(PrintJob printJob, | 91 static void onPrintRequested(PrintJob printJob, |
89 PrintCallback resultCallback); | 92 PrintCallback resultCallback); |
90 }; | 93 }; |
91 }; | 94 }; |
92 | 95 |
OLD | NEW |