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 /* From pp_errors.idl modified Sat Jul 16 16:50:26 2011. */ | 6 /* From pp_errors.idl modified Sat Jul 16 16:50:26 2011. */ |
7 | 7 |
8 #ifndef PPAPI_C_PP_ERRORS_H_ | 8 #ifndef PPAPI_C_PP_ERRORS_H_ |
9 #define PPAPI_C_PP_ERRORS_H_ | 9 #define PPAPI_C_PP_ERRORS_H_ |
10 | 10 |
11 #include "ppapi/c/pp_macros.h" | 11 #include "ppapi/c/pp_macros.h" |
12 | 12 |
13 /** | 13 /** |
14 * @file | 14 * @file |
15 * This file defines an enumeration of all PPAPI error codes. | 15 * This file defines an enumeration of all PPAPI error codes. |
16 */ | 16 */ |
17 | 17 |
18 | 18 |
19 /** | 19 /** |
20 * @addtogroup Enums | 20 * @addtogroup Enums |
21 * @{ | 21 * @{ |
22 */ | 22 */ |
23 /** | 23 /** |
24 * This enumeration contains enumerators of all PPAPI error codes. | 24 * This enumeration contains enumerators of all PPAPI error codes. |
25 * Errors are negative valued. | 25 * Errors are negative valued. |
26 */ | 26 */ |
27 enum { | 27 enum ErrorCodes { |
brettw
2011/08/21 05:37:03
This isn't in any namespace so I don't think we wa
Peter Kasting
2011/08/22 03:56:41
Oof. Honestly that seems bad. Can't you namespac
brettw
2011/08/22 04:11:08
This is the public Pepper API which must be compil
| |
28 /** | 28 /** |
29 * This value is returned by a function on successful synchronous completion | 29 * This value is returned by a function on successful synchronous completion |
30 * or is passed as a result to a PP_CompletionCallback_Func on successful | 30 * or is passed as a result to a PP_CompletionCallback_Func on successful |
31 * asynchronous completion. | 31 * asynchronous completion. |
32 */ | 32 */ |
33 PP_OK = 0, | 33 PP_OK = 0, |
34 /** | 34 /** |
35 * This value is returned by a function that accepts a PP_CompletionCallback | 35 * This value is returned by a function that accepts a PP_CompletionCallback |
36 * and cannot complete synchronously. This code indicates that the given | 36 * and cannot complete synchronously. This code indicates that the given |
37 * callback will be asynchronously notified of the final result once it is | 37 * callback will be asynchronously notified of the final result once it is |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 * expected input. | 86 * expected input. |
87 */ | 87 */ |
88 PP_ERROR_USERCANCEL = -40 | 88 PP_ERROR_USERCANCEL = -40 |
89 }; | 89 }; |
90 /** | 90 /** |
91 * @} | 91 * @} |
92 */ | 92 */ |
93 | 93 |
94 #endif /* PPAPI_C_PP_ERRORS_H_ */ | 94 #endif /* PPAPI_C_PP_ERRORS_H_ */ |
95 | 95 |
OLD | NEW |