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

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

Issue 14784002: Move DirectoryReader::ReadEntries to FileRef::ReadDirectoryEntries (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased Created 7 years, 7 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
« no previous file with comments | « ppapi/api/ppb_file_ref.idl ('k') | ppapi/c/pp_directory_entry.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 * found in the LICENSE file.
4 */
5
6 /* From dev/ppb_directory_reader_dev.idl modified Fri Feb 15 16:46:46 2013. */
7
8 #ifndef PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_
9 #define PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_
10
11 #include "ppapi/c/pp_array_output.h"
12 #include "ppapi/c/pp_bool.h"
13 #include "ppapi/c/pp_completion_callback.h"
14 #include "ppapi/c/pp_file_info.h"
15 #include "ppapi/c/pp_macros.h"
16 #include "ppapi/c/pp_resource.h"
17 #include "ppapi/c/pp_stdint.h"
18
19 #define PPB_DIRECTORYREADER_DEV_INTERFACE_0_6 "PPB_DirectoryReader(Dev);0.6"
20 #define PPB_DIRECTORYREADER_DEV_INTERFACE PPB_DIRECTORYREADER_DEV_INTERFACE_0_6
21
22 /**
23 * @file
24 *
25 * This file defines the <code>PPB_DirectoryReader_Dev</code> interface.
26 */
27
28
29 /**
30 * @addtogroup Structs
31 * @{
32 */
33 struct PP_DirectoryEntry_Dev {
34 PP_Resource file_ref;
35 PP_FileType file_type;
36 };
37 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_DirectoryEntry_Dev, 8);
38 /**
39 * @}
40 */
41
42 /**
43 * @addtogroup Interfaces
44 * @{
45 */
46 struct PPB_DirectoryReader_Dev_0_6 {
47 /* Creates a DirectoryReader for the given directory. Upon success, the
48 * corresponding directory is classified as "in use" by the resulting
49 * DirectoryReader object until such time as the DirectoryReader object is
50 * destroyed. */
51 PP_Resource (*Create)(PP_Resource directory_ref);
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
54 * DirectoryReader. */
55 PP_Bool (*IsDirectoryReader)(PP_Resource resource);
56 /* Reads all entries in the directory.
57 *
58 * @param[in] directory_reader A <code>PP_Resource</code>
59 * corresponding to a directory reader resource.
60 * @param[in] output An output array which will receive
61 * <code>PP_DirectoryEntry_Dev</code> objects on success.
62 * @param[in] callback A <code>PP_CompletionCallback</code> to run on
63 * completion.
64 *
65 * @return An error code from <code>pp_errors.h</code>.
66 */
67 int32_t (*ReadEntries)(PP_Resource directory_reader,
68 struct PP_ArrayOutput output,
69 struct PP_CompletionCallback callback);
70 };
71
72 typedef struct PPB_DirectoryReader_Dev_0_6 PPB_DirectoryReader_Dev;
73 /**
74 * @}
75 */
76
77 #endif /* PPAPI_C_DEV_PPB_DIRECTORY_READER_DEV_H_ */
78
OLDNEW
« no previous file with comments | « ppapi/api/ppb_file_ref.idl ('k') | ppapi/c/pp_directory_entry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698