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

Side by Side Diff: ppapi/api/ppb_directory_reader.idl

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 /* 6 /*
7 * This file defines the <code>PPB_DirectoryReader_Dev</code> interface. 7 * This file defines the <code>PPB_DirectoryReader</code> interface.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M27 = 0.6 11 M28 = 1.0
12 }; 12 };
13 13
14 [assert_size(8)] 14 [assert_size(8)]
15 struct PP_DirectoryEntry_Dev { 15 struct PP_DirectoryEntry {
16 PP_Resource file_ref; 16 PP_Resource file_ref;
17 PP_FileType file_type; 17 PP_FileType file_type;
18 }; 18 };
19 19
20 interface PPB_DirectoryReader_Dev { 20 interface PPB_DirectoryReader {
dmichael (off chromium) 2013/04/23 16:08:59 Please add a brief interface-level comment explain
nhiroki 2013/04/24 02:01:45 Done.
21 // Creates a DirectoryReader for the given directory. Upon success, the 21 // Creates a DirectoryReader for the given directory. Upon success, the
22 // corresponding directory is classified as "in use" by the resulting 22 // corresponding directory is classified as "in use" by the resulting
23 // DirectoryReader object until such time as the DirectoryReader object is 23 // DirectoryReader object until such time as the DirectoryReader object is
dmichael (off chromium) 2013/04/23 16:08:59 nit: All the comments should probably be C-style h
nhiroki 2013/04/24 02:01:45 Done.
24 // destroyed. 24 // destroyed.
25 PP_Resource Create([in] PP_Resource directory_ref); 25 PP_Resource Create([in] PP_Resource directory_ref);
26 26
27 // Returns PP_TRUE if the given resource is a DirectoryReader. Returns 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 28 // PP_FALSE if the resource is invalid or some type other than a
29 // DirectoryReader. 29 // DirectoryReader.
30 PP_Bool IsDirectoryReader([in] PP_Resource resource); 30 PP_Bool IsDirectoryReader([in] PP_Resource resource);
31 31
32 // Reads all entries in the directory. 32 // Reads all entries in the directory.
33 // 33 //
34 // @param[in] directory_reader A <code>PP_Resource</code> 34 // @param[in] directory_reader A <code>PP_Resource</code>
35 // corresponding to a directory reader resource. 35 // corresponding to a directory reader resource.
36 // @param[in] output An output array which will receive 36 // @param[in] output An output array which will receive
37 // <code>PP_DirectoryEntry_Dev</code> objects on success. 37 // <code>PP_DirectoryEntry</code> objects on success.
38 // @param[in] callback A <code>PP_CompletionCallback</code> to run on 38 // @param[in] callback A <code>PP_CompletionCallback</code> to run on
39 // completion. 39 // completion.
40 // 40 //
41 // @return An error code from <code>pp_errors.h</code>. 41 // @return An error code from <code>pp_errors.h</code>.
42 // 42 //
43 int32_t ReadEntries([in] PP_Resource directory_reader, 43 int32_t ReadEntries([in] PP_Resource directory_reader,
44 [in] PP_ArrayOutput output, 44 [in] PP_ArrayOutput output,
45 [in] PP_CompletionCallback callback); 45 [in] PP_CompletionCallback callback);
46 }; 46 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698