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

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

Issue 7399016: More trivial cleanupi of ppapi/c headers (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « ppapi/c/pp_errors.h ('k') | ppapi/c/pp_input_event.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
6 /* From pp_file_info.idl modified Sat Jul 16 16:50:26 2011. */
7
5 #ifndef PPAPI_C_PP_FILE_INFO_H_ 8 #ifndef PPAPI_C_PP_FILE_INFO_H_
6 #define PPAPI_C_PP_FILE_INFO_H_ 9 #define PPAPI_C_PP_FILE_INFO_H_
7 10
8 #include "ppapi/c/pp_macros.h" 11 #include "ppapi/c/pp_macros.h"
9 #include "ppapi/c/pp_stdint.h" 12 #include "ppapi/c/pp_stdint.h"
10 #include "ppapi/c/pp_time.h" 13 #include "ppapi/c/pp_time.h"
11 14
12 /** 15 /**
13 * @file 16 * @file
14 * This file defines three enumerations for use in the PPAPI C file IO APIs. 17 * This file defines three enumerations for use in the PPAPI C file IO APIs.
15 */ 18 */
16 19
20
17 /** 21 /**
18 * @addtogroup Enums 22 * @addtogroup Enums
19 * @{ 23 * @{
20 */ 24 */
21
22 /** 25 /**
23 * The <code>PP_FileType</code> enum contains file type constants. 26 * The <code>PP_FileType</code> enum contains file type constants.
24 */ 27 */
25 typedef enum { 28 typedef enum {
26 /** A regular file type */ 29 /** A regular file type */
27 PP_FILETYPE_REGULAR, 30 PP_FILETYPE_REGULAR,
28 /** A directory */ 31 /** A directory */
29 PP_FILETYPE_DIRECTORY, 32 PP_FILETYPE_DIRECTORY,
30 /** A catch-all for unidentified types */ 33 /** A catch-all for unidentified types */
31 PP_FILETYPE_OTHER 34 PP_FILETYPE_OTHER
(...skipping 22 matching lines...) Expand all
54 * @addtogroup Structs 57 * @addtogroup Structs
55 * @{ 58 * @{
56 */ 59 */
57 /** 60 /**
58 * The <code>PP_FileInfo</code> struct represents all information about a file, 61 * The <code>PP_FileInfo</code> struct represents all information about a file,
59 * such as size, type, and creation time. 62 * such as size, type, and creation time.
60 */ 63 */
61 struct PP_FileInfo { 64 struct PP_FileInfo {
62 /** This value represents the size of the file measured in bytes */ 65 /** This value represents the size of the file measured in bytes */
63 int64_t size; 66 int64_t size;
64
65 /** 67 /**
66 * This value represents the type of file as defined by the 68 * This value represents the type of file as defined by the
67 * <code>PP_FileType</code> enum 69 * <code>PP_FileType</code> enum
68 */ 70 */
69 PP_FileType type; 71 PP_FileType type;
70
71 /** 72 /**
72 * This value represents the file system type of the file as defined by the 73 * This value represents the file system type of the file as defined by the
73 * <code>PP_FileSystemType</code> enum. 74 * <code>PP_FileSystemType</code> enum.
74 */ 75 */
75 PP_FileSystemType system_type; 76 PP_FileSystemType system_type;
76
77 /** 77 /**
78 * This value represents the creation time of the file. 78 * This value represents the creation time of the file.
79 */ 79 */
80 PP_Time creation_time; 80 PP_Time creation_time;
81
82 /** 81 /**
83 * This value represents the last time the file was accessed. 82 * This value represents the last time the file was accessed.
84 */ 83 */
85 PP_Time last_access_time; 84 PP_Time last_access_time;
86
87 /** 85 /**
88 * This value represents the last time the file was modified. 86 * This value represents the last time the file was modified.
89 */ 87 */
90 PP_Time last_modified_time; 88 PP_Time last_modified_time;
91 }; 89 };
92 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileInfo, 40); 90 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_FileInfo, 40);
93 /** 91 /**
94 * @} 92 * @}
95 */ 93 */
96 94
97 #endif /* PPAPI_C_PP_FILE_INFO_H_ */ 95 #endif /* PPAPI_C_PP_FILE_INFO_H_ */
96
OLDNEW
« no previous file with comments | « ppapi/c/pp_errors.h ('k') | ppapi/c/pp_input_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698