| 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 // Note: This version should always match the PPP_Printing_Dev interface. | 10 // Note: This version should always match the PPP_Printing_Dev interface. |
| 11 label Chrome { | 11 label Chrome { |
| 12 M21 = 0.6 | 12 M21 = 0.6, |
| 13 M23 = 0.7 |
| 13 }; | 14 }; |
| 14 | 15 |
| 15 interface PPB_Printing_Dev { | 16 interface PPB_Printing_Dev { |
| 17 [version=0.6] |
| 18 PP_Bool GetDefaultPrintSettings([in] PP_Instance instance, |
| 19 [out] PP_PrintSettings_Dev print_settings); |
| 20 |
| 21 /** Create a resource for accessing printing functionality. |
| 22 * |
| 23 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 24 * of a module. |
| 25 * |
| 26 * @return A <code>PP_Resource</code> containing the printing resource if |
| 27 * successful or 0 if it could not be created. |
| 28 */ |
| 29 [version=0.7] |
| 30 PP_Resource Create([in] PP_Instance instance); |
| 31 |
| 16 /** | 32 /** |
| 17 * Outputs the default print settings for the default printer into | 33 * Outputs the default print settings for the default printer into |
| 18 * <code>print_settings</code>. Returns <code>PP_FALSE</code> on error. | 34 * <code>print_settings</code>. The callback is called with |
| 35 * <code>PP_OK</code> when the settings have been retrieved successfully. |
| 36 * |
| 37 * @param[in] resource The printing resource. |
| 38 * |
| 39 * @param[in] callback A <code>CompletionCallback</code> to be called when |
| 40 * <code>print_settings</code> have been retrieved. |
| 41 * |
| 42 * @return PP_OK_COMPLETIONPENDING if request for the default print settings |
| 43 * was successful, another error code from pp_errors.h on failure. |
| 19 */ | 44 */ |
| 20 PP_Bool GetDefaultPrintSettings([in] PP_Instance instance, | 45 [version=0.7] |
| 21 [out] PP_PrintSettings_Dev print_settings); | 46 int32_t GetDefaultPrintSettings([in] PP_Resource resource, |
| 47 [out] PP_PrintSettings_Dev print_settings, |
| 48 [in] PP_CompletionCallback callback); |
| 49 |
| 22 }; | 50 }; |
| OLD | NEW |