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

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

Issue 10795051: Implement asynchronous interface/plumbing for GetDefaultPrintSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
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 19 14:39:09 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"
17 #include "ppapi/c/pp_size.h" 18 #include "ppapi/c/pp_size.h"
18 #include "ppapi/c/pp_stdint.h" 19 #include "ppapi/c/pp_stdint.h"
19 20
20 #define PPB_PRINTING_DEV_INTERFACE_0_6 "PPB_Printing(Dev);0.6" 21 #define PPB_PRINTING_DEV_INTERFACE_0_6 "PPB_Printing(Dev);0.6"
21 #define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_6 22 #define PPB_PRINTING_DEV_INTERFACE_0_7 "PPB_Printing(Dev);0.7"
23 #define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_7
22 24
23 /** 25 /**
24 * @file 26 * @file
25 * Definition of the PPB_Printing interface. 27 * Definition of the PPB_Printing interface.
26 */ 28 */
27 29
28 30
29 /** 31 /**
30 * @addtogroup Interfaces 32 * @addtogroup Interfaces
31 * @{ 33 * @{
32 */ 34 */
33 struct PPB_Printing_Dev_0_6 { 35 struct PPB_Printing_Dev_0_7 {
34 /** 36 /**
35 * Outputs the default print settings for the default printer into 37 * Outputs the default print settings for the default printer into
36 * <code>print_settings</code>. Returns <code>PP_FALSE</code> on error. 38 * <code>print_settings</code>. The completion callback is triggered when
39 * the settings have been copied into <code>print_settings</code>.
37 */ 40 */
41 int32_t (*GetDefaultPrintSettings)(
42 PP_Instance instance,
43 struct PP_PrintSettings_Dev* print_settings,
44 struct PP_CompletionCallback callback);
45 };
46
47 typedef struct PPB_Printing_Dev_0_7 PPB_Printing_Dev;
48
49 struct PPB_Printing_Dev_0_6 {
38 PP_Bool (*GetDefaultPrintSettings)( 50 PP_Bool (*GetDefaultPrintSettings)(
39 PP_Instance instance, 51 PP_Instance instance,
40 struct PP_PrintSettings_Dev* print_settings); 52 struct PP_PrintSettings_Dev* print_settings);
41 }; 53 };
42
43 typedef struct PPB_Printing_Dev_0_6 PPB_Printing_Dev;
44 /** 54 /**
45 * @} 55 * @}
46 */ 56 */
47 57
48 #endif /* PPAPI_C_DEV_PPB_PRINTING_DEV_H_ */ 58 #endif /* PPAPI_C_DEV_PPB_PRINTING_DEV_H_ */
49 59
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698