OLD | NEW |
---|---|
(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 /* | |
7 * This file defines the <code>PPB_DirectoryReader_Dev</code> interface. | |
8 */ | |
9 | |
10 label Chrome { | |
11 M27 = 0.6 | |
12 }; | |
13 | |
14 [assert_size(8)] | |
15 struct PP_DirectoryEntry_Dev { | |
16 PP_Resource file_ref; | |
17 PP_FileType file_type; | |
18 }; | |
19 | |
20 interface PPB_DirectoryReader_Dev { | |
21 // Creates a DirectoryReader for the given directory. Upon success, the | |
22 // corresponding directory is classified as "in use" by the resulting | |
23 // DirectoryReader object until such time as the DirectoryReader object is | |
24 // destroyed. | |
25 PP_Resource Create([in] PP_Resource directory_ref); | |
26 | |
27 // Returns PP_TRUE if the given resource is a DirectoryReader. Returns | |
28 // PP_FALSE if the resource is invalid or some type other than a | |
29 // DirectoryReader. | |
30 PP_Bool IsDirectoryReader([in] PP_Resource resource); | |
31 | |
32 // Reads all entries in the directory. | |
33 // | |
34 // @param[in] directory_reader A <code>PP_Resource</code> | |
35 // corresponding to a directory reader resource. | |
36 // @param[in] output An output array which will receive | |
37 // <code>PP_DirectoryEntry_Dev</code> objects on success. | |
38 // @param[in] callback A <code>PP_CompletionCallback</code> to run on | |
39 // completion. | |
40 // | |
41 // @return An error code from <code>pp_errors.h</code>. | |
42 // | |
43 int32_t ReadEntries([in] PP_Resource directory_reader, | |
44 [in] PP_ArrayOutput output, | |
45 [in] PP_CompletionCallback callback); | |
46 }; | |
dmichael (off chromium)
2013/04/23 16:08:59
I think we may need this to stick around for a lit
nhiroki
2013/04/24 02:01:45
Raymes confirmed that Flash doesn't use this. Wont
| |
OLD | NEW |