| OLD | NEW |
| 1 /* Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2011 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_file_chooser_dev.idl modified Fri Nov 11 20:18:10 2011. */ | 6 /* From dev/ppb_file_chooser_dev.idl modified Mon Nov 14 10:36:01 2011. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_DEV_PPB_FILE_CHOOSER_DEV_H_ | 8 #ifndef PPAPI_C_DEV_PPB_FILE_CHOOSER_DEV_H_ |
| 9 #define PPAPI_C_DEV_PPB_FILE_CHOOSER_DEV_H_ | 9 #define PPAPI_C_DEV_PPB_FILE_CHOOSER_DEV_H_ |
| 10 | 10 |
| 11 #include "ppapi/c/pp_bool.h" | 11 #include "ppapi/c/pp_bool.h" |
| 12 #include "ppapi/c/pp_completion_callback.h" | 12 #include "ppapi/c/pp_completion_callback.h" |
| 13 #include "ppapi/c/pp_instance.h" | 13 #include "ppapi/c/pp_instance.h" |
| 14 #include "ppapi/c/pp_macros.h" | 14 #include "ppapi/c/pp_macros.h" |
| 15 #include "ppapi/c/pp_resource.h" | 15 #include "ppapi/c/pp_resource.h" |
| 16 #include "ppapi/c/pp_stdint.h" | 16 #include "ppapi/c/pp_stdint.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 45 } PP_FileChooserMode_Dev; | 45 } PP_FileChooserMode_Dev; |
| 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileChooserMode_Dev, 4); | 46 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_FileChooserMode_Dev, 4); |
| 47 /** | 47 /** |
| 48 * @} | 48 * @} |
| 49 */ | 49 */ |
| 50 | 50 |
| 51 /** | 51 /** |
| 52 * @addtogroup Interfaces | 52 * @addtogroup Interfaces |
| 53 * @{ | 53 * @{ |
| 54 */ | 54 */ |
| 55 struct PPB_FileChooser_Dev { | 55 struct PPB_FileChooser_Dev_0_5 { |
| 56 /** | 56 /** |
| 57 * This function creates a file chooser dialog resource. The chooser is | 57 * This function creates a file chooser dialog resource. The chooser is |
| 58 * associated with a particular instance, so that it may be positioned on the | 58 * associated with a particular instance, so that it may be positioned on the |
| 59 * screen relative to the tab containing the instance. | 59 * screen relative to the tab containing the instance. |
| 60 * | 60 * |
| 61 * @param[in] instance A <code>PP_Instance</code> identifying one instance | 61 * @param[in] instance A <code>PP_Instance</code> identifying one instance |
| 62 * of a module. | 62 * of a module. |
| 63 * @param[in] mode A <code>PP_FileChooserMode_Dev</code> value that controls | 63 * @param[in] mode A <code>PP_FileChooserMode_Dev</code> value that controls |
| 64 * the behavior of the file chooser dialog. | 64 * the behavior of the file chooser dialog. |
| 65 * @param[in] accept_mime_types A comma-separated list of MIME types such as | 65 * @param[in] accept_mime_types A comma-separated list of MIME types such as |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 * the user chose no files or canceled the dialog, then this method will | 108 * the user chose no files or canceled the dialog, then this method will |
| 109 * simply return 0 the first time it is called. | 109 * simply return 0 the first time it is called. |
| 110 * | 110 * |
| 111 * @param[in] chooser The file chooser resource. | 111 * @param[in] chooser The file chooser resource. |
| 112 * | 112 * |
| 113 * @return A <code>PP_Resource</code> containing the next file chosen by the | 113 * @return A <code>PP_Resource</code> containing the next file chosen by the |
| 114 * user, or 0 if there are no more files. | 114 * user, or 0 if there are no more files. |
| 115 */ | 115 */ |
| 116 PP_Resource (*GetNextChosenFile)(PP_Resource chooser); | 116 PP_Resource (*GetNextChosenFile)(PP_Resource chooser); |
| 117 }; | 117 }; |
| 118 |
| 119 typedef struct PPB_FileChooser_Dev_0_5 PPB_FileChooser_Dev; |
| 118 /** | 120 /** |
| 119 * @} | 121 * @} |
| 120 */ | 122 */ |
| 121 | 123 |
| 122 #endif /* PPAPI_C_DEV_PPB_FILE_CHOOSER_DEV_H_ */ | 124 #endif /* PPAPI_C_DEV_PPB_FILE_CHOOSER_DEV_H_ */ |
| 123 | 125 |
| OLD | NEW |