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 // 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/> |
| 9 // <p>Available only on dev channel since Chrome 42.</p> |
8 namespace printerProvider { | 10 namespace printerProvider { |
9 // Error codes returned in response to $(ref:onPrintRequested) event. | 11 // Error codes returned in response to $(ref:onPrintRequested) event. |
10 enum PrintError { | 12 enum PrintError { |
11 // Operation completed successfully. | 13 // Operation completed successfully. |
12 OK, | 14 OK, |
13 | 15 |
14 // General failure. | 16 // General failure. |
15 FAILED, | 17 FAILED, |
16 | 18 |
17 // Print ticket is invalid. For example, ticket is inconsistent with | 19 // Print ticket is invalid. For example, ticket is inconsistent with |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 82 |
81 // Event fired when print manager requests printing. | 83 // Event fired when print manager requests printing. |
82 // |printJob|: The printing request parameters. | 84 // |printJob|: The printing request parameters. |
83 // |resultCallback|: Callback that should be called when the printing | 85 // |resultCallback|: Callback that should be called when the printing |
84 // request is completed. | 86 // request is completed. |
85 static void onPrintRequested(PrintJob printJob, | 87 static void onPrintRequested(PrintJob printJob, |
86 PrintCallback resultCallback); | 88 PrintCallback resultCallback); |
87 }; | 89 }; |
88 }; | 90 }; |
89 | 91 |
OLD | NEW |