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 // 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 namespace printerProvider { | 8 [use_movable_types=true] namespace printerProvider { |
9 // Error codes returned in response to $(ref:onPrintRequested) event. | 9 // Error codes returned in response to $(ref:onPrintRequested) event. |
10 enum PrintError { | 10 enum PrintError { |
11 // Operation completed successfully. | 11 // Operation completed successfully. |
12 OK, | 12 OK, |
13 | 13 |
14 // General failure. | 14 // General failure. |
15 FAILED, | 15 FAILED, |
16 | 16 |
17 // Print ticket is invalid. For example, ticket is inconsistent with | 17 // Print ticket is invalid. For example, ticket is inconsistent with |
18 // capabilities or extension is not able to handle all settings from the | 18 // capabilities or extension is not able to handle all settings from the |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 | 100 |
101 // Event fired when print manager requests printing. | 101 // Event fired when print manager requests printing. |
102 // |printJob|: The printing request parameters. | 102 // |printJob|: The printing request parameters. |
103 // |resultCallback|: Callback that should be called when the printing | 103 // |resultCallback|: Callback that should be called when the printing |
104 // request is completed. | 104 // request is completed. |
105 static void onPrintRequested(PrintJob printJob, | 105 static void onPrintRequested(PrintJob printJob, |
106 PrintCallback resultCallback); | 106 PrintCallback resultCallback); |
107 }; | 107 }; |
108 }; | 108 }; |
109 | 109 |
OLD | NEW |