| 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 /** | 6 /** |
| 7 * This file defines three enumerations for use in the PPAPI C file IO APIs. | 7 * This file defines three enumerations for use in the PPAPI C file IO APIs. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 /** | 10 /** |
| 11 * The <code>PP_FileType</code> enum contains file type constants. | 11 * The <code>PP_FileType</code> enum contains file type constants. |
| 12 */ | 12 */ |
| 13 [assert_size(4)] | 13 [assert_size(4)] |
| 14 enum PP_FileType { | 14 enum PP_FileType { |
| 15 /** A regular file type */ | 15 /** A regular file type */ |
| 16 PP_FILETYPE_REGULAR, | 16 PP_FILETYPE_REGULAR = 0, |
| 17 /** A directory */ | 17 /** A directory */ |
| 18 PP_FILETYPE_DIRECTORY, | 18 PP_FILETYPE_DIRECTORY = 1, |
| 19 /** A catch-all for unidentified types */ | 19 /** A catch-all for unidentified types */ |
| 20 PP_FILETYPE_OTHER | 20 PP_FILETYPE_OTHER = 2 |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 /** | 23 /** |
| 24 * The <code>PP_FileSystemType</code> enum contains file system type constants. | 24 * The <code>PP_FileSystemType</code> enum contains file system type constants. |
| 25 */ | 25 */ |
| 26 [assert_size(4)] | 26 [assert_size(4)] |
| 27 enum PP_FileSystemType { | 27 enum PP_FileSystemType { |
| 28 /** For identified invalid return values */ | 28 /** For identified invalid return values */ |
| 29 PP_FILESYSTEMTYPE_INVALID = 0, | 29 PP_FILESYSTEMTYPE_INVALID = 0, |
| 30 /** For external file system types */ | 30 /** For external file system types */ |
| 31 PP_FILESYSTEMTYPE_EXTERNAL, | 31 PP_FILESYSTEMTYPE_EXTERNAL = 1, |
| 32 /** For local persistant file system types */ | 32 /** For local persistant file system types */ |
| 33 PP_FILESYSTEMTYPE_LOCALPERSISTENT, | 33 PP_FILESYSTEMTYPE_LOCALPERSISTENT = 2, |
| 34 /** For local temporary file system types */ | 34 /** For local temporary file system types */ |
| 35 PP_FILESYSTEMTYPE_LOCALTEMPORARY | 35 PP_FILESYSTEMTYPE_LOCALTEMPORARY = 3 |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 /** | 38 /** |
| 39 * The <code>PP_FileInfo</code> struct represents all information about a file, | 39 * The <code>PP_FileInfo</code> struct represents all information about a file, |
| 40 * such as size, type, and creation time. | 40 * such as size, type, and creation time. |
| 41 */ | 41 */ |
| 42 [assert_size(40)] | 42 [assert_size(40)] |
| 43 struct PP_FileInfo { | 43 struct PP_FileInfo { |
| 44 /** This value represents the size of the file measured in bytes */ | 44 /** This value represents the size of the file measured in bytes */ |
| 45 int64_t size; | 45 int64_t size; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 65 * This value represents the last time the file was accessed. | 65 * This value represents the last time the file was accessed. |
| 66 */ | 66 */ |
| 67 PP_Time last_access_time; | 67 PP_Time last_access_time; |
| 68 | 68 |
| 69 /** | 69 /** |
| 70 * This value represents the last time the file was modified. | 70 * This value represents the last time the file was modified. |
| 71 */ | 71 */ |
| 72 PP_Time last_modified_time; | 72 PP_Time last_modified_time; |
| 73 }; | 73 }; |
| 74 | 74 |
| OLD | NEW |