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

Side by Side Diff: ppapi/c/ppb_directory_reader.h

Issue 14419003: PPAPI: Move PPB_DirectoryReader_Dev to stable (won't commit) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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_directory_reader_dev.idl modified Fri Feb 15 16:46:46 2013. */ 6 /* From ppb_directory_reader.idl modified Tue Apr 23 11:30:07 2013. */
7 7
8 #ifndef PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ 8 #ifndef PPAPI_C_PPB_DIRECTORY_READER_H_
9 #define PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ 9 #define PPAPI_C_PPB_DIRECTORY_READER_H_
10 10
11 #include "ppapi/c/pp_array_output.h" 11 #include "ppapi/c/pp_array_output.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_completion_callback.h"
14 #include "ppapi/c/pp_file_info.h" 14 #include "ppapi/c/pp_file_info.h"
15 #include "ppapi/c/pp_macros.h" 15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h" 16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h" 17 #include "ppapi/c/pp_stdint.h"
18 18
19 #define PPB_DIRECTORYREADER_DEV_INTERFACE_0_6 "PPB_DirectoryReader(Dev);0.6" 19 #define PPB_DIRECTORYREADER_INTERFACE_1_0 "PPB_DirectoryReader;1.0"
20 #define PPB_DIRECTORYREADER_DEV_INTERFACE PPB_DIRECTORYREADER_DEV_INTERFACE_0_6 20 #define PPB_DIRECTORYREADER_INTERFACE PPB_DIRECTORYREADER_INTERFACE_1_0
21 21
22 /** 22 /**
23 * @file 23 * @file
24 * 24 *
25 * This file defines the <code>PPB_DirectoryReader_Dev</code> interface. 25 * This file defines the <code>PPB_DirectoryReader</code> interface.
26 */ 26 */
27 27
28 28
29 /** 29 /**
30 * @addtogroup Structs 30 * @addtogroup Structs
31 * @{ 31 * @{
32 */ 32 */
33 struct PP_DirectoryEntry_Dev { 33 struct PP_DirectoryEntry {
34 PP_Resource file_ref; 34 PP_Resource file_ref;
35 PP_FileType file_type; 35 PP_FileType file_type;
36 }; 36 };
37 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 8); 37 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry, 8);
38 /** 38 /**
39 * @} 39 * @}
40 */ 40 */
41 41
42 /** 42 /**
43 * @addtogroup Interfaces 43 * @addtogroup Interfaces
44 * @{ 44 * @{
45 */ 45 */
46 struct PPB_DirectoryReader_Dev_0_6 { 46 struct PPB_DirectoryReader_1_0 {
47 /* Creates a DirectoryReader for the given directory. Upon success, the 47 /* Creates a DirectoryReader for the given directory. Upon success, the
48 * corresponding directory is classified as "in use" by the resulting 48 * corresponding directory is classified as "in use" by the resulting
49 * DirectoryReader object until such time as the DirectoryReader object is 49 * DirectoryReader object until such time as the DirectoryReader object is
50 * destroyed. */ 50 * destroyed. */
51 PP_Resource (*Create)(PP_Resource directory_ref); 51 PP_Resource (*Create)(PP_Resource directory_ref);
52 /* Returns PP_TRUE if the given resource is a DirectoryReader. Returns 52 /* Returns PP_TRUE if the given resource is a DirectoryReader. Returns
53 * PP_FALSE if the resource is invalid or some type other than a 53 * PP_FALSE if the resource is invalid or some type other than a
54 * DirectoryReader. */ 54 * DirectoryReader. */
55 PP_Bool (*IsDirectoryReader)(PP_Resource resource); 55 PP_Bool (*IsDirectoryReader)(PP_Resource resource);
56 /* Reads all entries in the directory. 56 /* Reads all entries in the directory.
57 * 57 *
58 * @param[in] directory_reader A <code>PP_Resource</code> 58 * @param[in] directory_reader A <code>PP_Resource</code>
59 * corresponding to a directory reader resource. 59 * corresponding to a directory reader resource.
60 * @param[in] output An output array which will receive 60 * @param[in] output An output array which will receive
61 * <code>PP_DirectoryEntry_Dev</code> objects on success. 61 * <code>PP_DirectoryEntry</code> objects on success.
62 * @param[in] callback A <code>PP_CompletionCallback</code> to run on 62 * @param[in] callback A <code>PP_CompletionCallback</code> to run on
63 * completion. 63 * completion.
64 * 64 *
65 * @return An error code from <code>pp_errors.h</code>. 65 * @return An error code from <code>pp_errors.h</code>.
66 */ 66 */
67 int32_t (*ReadEntries)(PP_Resource directory_reader, 67 int32_t (*ReadEntries)(PP_Resource directory_reader,
68 struct PP_ArrayOutput output, 68 struct PP_ArrayOutput output,
69 struct PP_CompletionCallback callback); 69 struct PP_CompletionCallback callback);
70 }; 70 };
71 71
72 typedef struct PPB_DirectoryReader_Dev_0_6 PPB_DirectoryReader_Dev; 72 typedef struct PPB_DirectoryReader_1_0 PPB_DirectoryReader;
73 /** 73 /**
74 * @} 74 * @}
75 */ 75 */
76 76
77 #endif /* PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ */ 77 #endif /* PPAPI_C_PPB_DIRECTORY_READER_H_ */
78 78
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698