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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: ppapi/c/dev/ppb_printing_dev.h
diff --git a/ppapi/c/dev/ppb_printing_dev.h b/ppapi/c/dev/ppb_printing_dev.h
index 97a59fa7ec1f47f44c9e0fad79f5efa2108f78b0..24f615f86f3e89e545c21f5869262482cdb997b4 100644
--- a/ppapi/c/dev/ppb_printing_dev.h
+++ b/ppapi/c/dev/ppb_printing_dev.h
@@ -3,13 +3,14 @@
* found in the LICENSE file.
*/
-/* From dev/ppb_printing_dev.idl modified Wed Jun 13 09:16:33 2012. */
+/* From dev/ppb_printing_dev.idl modified Mon Jul 23 16:01:15 2012. */
#ifndef PPAPI_C_DEV_PPB_PRINTING_DEV_H_
#define PPAPI_C_DEV_PPB_PRINTING_DEV_H_
#include "ppapi/c/dev/pp_print_settings_dev.h"
#include "ppapi/c/pp_bool.h"
+#include "ppapi/c/pp_completion_callback.h"
#include "ppapi/c/pp_instance.h"
#include "ppapi/c/pp_macros.h"
#include "ppapi/c/pp_point.h"
@@ -18,7 +19,8 @@
#include "ppapi/c/pp_stdint.h"
#define PPB_PRINTING_DEV_INTERFACE_0_6 "PPB_Printing(Dev);0.6"
-#define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_6
+#define PPB_PRINTING_DEV_INTERFACE_0_7 "PPB_Printing(Dev);0.7"
+#define PPB_PRINTING_DEV_INTERFACE PPB_PRINTING_DEV_INTERFACE_0_7
/**
* @file
@@ -30,17 +32,27 @@
* @addtogroup Interfaces
* @{
*/
-struct PPB_Printing_Dev_0_6 {
+struct PPB_Printing_Dev_0_7 {
/**
* Outputs the default print settings for the default printer into
- * <code>print_settings</code>. Returns <code>PP_FALSE</code> on error.
+ * <code>print_settings</code>. The completion callback is triggered when
+ * the settings have been copied into <code>print_settings</code>.
+ * <code>PP_ERROR_INPROGRESS</code> is returned if there is an outstanding
+ * request for the print settings in progress.
*/
+ int32_t (*GetDefaultPrintSettings)(
+ PP_Instance instance,
+ struct PP_PrintSettings_Dev* print_settings,
+ struct PP_CompletionCallback callback);
+};
+
+typedef struct PPB_Printing_Dev_0_7 PPB_Printing_Dev;
+
+struct PPB_Printing_Dev_0_6 {
PP_Bool (*GetDefaultPrintSettings)(
PP_Instance instance,
struct PP_PrintSettings_Dev* print_settings);
};
-
-typedef struct PPB_Printing_Dev_0_6 PPB_Printing_Dev;
/**
* @}
*/

Powered by Google App Engine
This is Rietveld 408576698