OLD | NEW |
---|---|
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 | 5 |
6 /** | 6 /** |
7 * Definition of the PPB_Printing interface. | 7 * Definition of the PPB_Printing interface. |
8 */ | 8 */ |
9 | 9 |
10 [generate_thunk] | 10 [generate_thunk] |
11 | 11 |
12 // Note: This version should always match the PPP_Printing_Dev interface. | 12 // Note: This version should always match the PPP_Printing_Dev interface. |
13 label Chrome { | 13 label Chrome { |
14 M23 = 0.7 | 14 M23 = 0.7, |
15 M39 = 0.8 | |
15 }; | 16 }; |
16 | 17 |
17 interface PPB_Printing_Dev { | 18 interface PPB_Printing_Dev { |
18 /** Create a resource for accessing printing functionality. | 19 /** Create a resource for accessing printing functionality. |
19 * | 20 * |
20 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 21 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
21 * of a module. | 22 * of a module. |
22 * | 23 * |
23 * @return A <code>PP_Resource</code> containing the printing resource if | 24 * @return A <code>PP_Resource</code> containing the printing resource if |
24 * successful or 0 if it could not be created. | 25 * successful or 0 if it could not be created. |
25 */ | 26 */ |
26 PP_Resource Create([in] PP_Instance instance); | 27 PP_Resource Create([in] PP_Instance instance); |
27 | 28 |
28 /** | 29 /** |
29 * Outputs the default print settings for the default printer into | 30 * Outputs the default print settings for the default printer into |
30 * <code>print_settings</code>. The callback is called with | 31 * <code>print_settings</code>. The callback is called with |
31 * <code>PP_OK</code> when the settings have been retrieved successfully. | 32 * <code>PP_OK</code> when the settings have been retrieved successfully. |
32 * | 33 * |
33 * @param[in] resource The printing resource. | 34 * @param[in] resource The printing resource. |
34 * | 35 * |
35 * @param[in] callback A <code>CompletionCallback</code> to be called when | 36 * @param[in] callback A <code>CompletionCallback</code> to be called when |
36 * <code>print_settings</code> have been retrieved. | 37 * <code>print_settings</code> have been retrieved. |
37 * | 38 * |
38 * @return PP_OK_COMPLETIONPENDING if request for the default print settings | 39 * @return PP_OK_COMPLETIONPENDING if request for the default print settings |
39 * was successful, another error code from pp_errors.h on failure. | 40 * was successful, another error code from pp_errors.h on failure. |
40 */ | 41 */ |
41 int32_t GetDefaultPrintSettings([in] PP_Resource resource, | 42 int32_t GetDefaultPrintSettings([in] PP_Resource resource, |
42 [out] PP_PrintSettings_Dev print_settings, | 43 [out] PP_PrintSettings_Dev print_settings, |
43 [in] PP_CompletionCallback callback); | 44 [in] PP_CompletionCallback callback); |
45 | |
46 /** | |
47 * Sets the print preset options in print preview dialog based on properties | |
48 * set in the source pdf document. | |
49 * | |
50 * @param[in] resource The printing resource. | |
51 * | |
52 * @param[in] print_options The print preset options set in | |
53 * <code>PP_PrintPresetOptions_Dev</code>. | |
54 */ | |
55 [version=0.8] | |
56 void SetPrintPresetOptionsFromDocument([in] PP_Resource resource, | |
57 [in] PP_PrintPresetOptions_Dev print_o ptions); | |
Vitaly Buka (NO REVIEWS)
2014/09/03 21:36:24
long line
| |
44 }; | 58 }; |
OLD | NEW |