Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: ppapi/c/dev/ppb_printing_dev.h

Issue 10826026: Add a printing resource (as a new style resource) to fetch the default print settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ppapi/api/dev/ppb_printing_dev.idl ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 /* From dev/ppb_printing_dev.idl modified Wed Jun 13 09:16:33 2012. */ 6 /* From dev/ppb_printing_dev.idl modified Thu Jul 26 12:15:07 2012. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_PRINTING_DEV_H_ 8 #ifndef PPAPI_C_DEV_PPB_PRINTING_DEV_H_
9 #define PPAPI_C_DEV_PPB_PRINTING_DEV_H_ 9 #define PPAPI_C_DEV_PPB_PRINTING_DEV_H_
10 10
11 #include "ppapi/c/dev/pp_print_settings_dev.h" 11 #include "ppapi/c/dev/pp_print_settings_dev.h"
12 #include "ppapi/c/pp_bool.h" 12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_completion_callback.h"
13 #include "ppapi/c/pp_instance.h" 14 #include "ppapi/c/pp_instance.h"
14 #include "ppapi/c/pp_macros.h" 15 #include "ppapi/c/pp_macros.h"
15 #include "ppapi/c/pp_point.h" 16 #include "ppapi/c/pp_point.h"
16 #include "ppapi/c/pp_rect.h" 17 #include "ppapi/c/pp_rect.h"
18 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_size.h" 19 #include "ppapi/c/pp_size.h"
18 #include "ppapi/c/pp_stdint.h" 20 #include "ppapi/c/pp_stdint.h"
19 21
20 #define PPB_PRINTING_DEV_INTERFACE_0_6 "PPB_Printing(Dev);0.6" 22 #define PPB_PRINTING_DEV_INTERFACE_0_6 "PPB_Printing(Dev);0.6"
21 #define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_6 23 #define PPB_PRINTING_DEV_INTERFACE_0_7 "PPB_Printing(Dev);0.7"
24 #define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_7
22 25
23 /** 26 /**
24 * @file 27 * @file
25 * Definition of the PPB_Printing interface. 28 * Definition of the PPB_Printing interface.
26 */ 29 */
27 30
28 31
29 /** 32 /**
30 * @addtogroup Interfaces 33 * @addtogroup Interfaces
31 * @{ 34 * @{
32 */ 35 */
33 struct PPB_Printing_Dev_0_6 { 36 struct PPB_Printing_Dev_0_7 {
37 /** Create a resource for accessing printing functionality.
38 *
39 * @param[in] instance A <code>PP_Instance</code> identifying one instance
40 * of a module.
41 *
42 * @return A <code>PP_Resource</code> containing the printing resource if
43 * successful or 0 if it could not be created.
44 */
45 PP_Resource (*Create)(PP_Instance instance);
34 /** 46 /**
35 * Outputs the default print settings for the default printer into 47 * Outputs the default print settings for the default printer into
36 * <code>print_settings</code>. Returns <code>PP_FALSE</code> on error. 48 * <code>print_settings</code>. The callback is called with
49 * <code>PP_OK</code> when the settings have been retrieved successfully.
50 *
51 * @param[in] resource The printing resource.
52 *
53 * @param[in] callback A <code>CompletionCallback</code> to be called when
54 * <code>print_settings</code> have been retrieved.
55 *
56 * @return PP_OK_COMPLETIONPENDING if request for the default print settings
57 * was successful, another error code from pp_errors.h on failure.
37 */ 58 */
59 int32_t (*GetDefaultPrintSettings)(
60 PP_Resource resource,
61 struct PP_PrintSettings_Dev* print_settings,
62 struct PP_CompletionCallback callback);
63 };
64
65 typedef struct PPB_Printing_Dev_0_7 PPB_Printing_Dev;
66
67 struct PPB_Printing_Dev_0_6 {
38 PP_Bool (*GetDefaultPrintSettings)( 68 PP_Bool (*GetDefaultPrintSettings)(
39 PP_Instance instance, 69 PP_Instance instance,
40 struct PP_PrintSettings_Dev* print_settings); 70 struct PP_PrintSettings_Dev* print_settings);
41 }; 71 };
42
43 typedef struct PPB_Printing_Dev_0_6 PPB_Printing_Dev;
44 /** 72 /**
45 * @} 73 * @}
46 */ 74 */
47 75
48 #endif /* PPAPI_C_DEV_PPB_PRINTING_DEV_H_ */ 76 #endif /* PPAPI_C_DEV_PPB_PRINTING_DEV_H_ */
49 77
OLDNEW
« no previous file with comments | « ppapi/api/dev/ppb_printing_dev.idl ('k') | ppapi/ppapi_proxy.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698