| 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 #ifndef PPAPI_C_PP_ERRORS_H_ | 5 #ifndef PPAPI_C_PP_ERRORS_H_ |
| 6 #define PPAPI_C_PP_ERRORS_H_ | 6 #define PPAPI_C_PP_ERRORS_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * @file | 9 * @file |
| 10 * This file defines an enumeration of all PPAPI error codes. | 10 * This file defines an enumeration of all PPAPI error codes. |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 enum { | 22 enum { |
| 23 /** | 23 /** |
| 24 * This value is returned by a function on successful synchronous completion | 24 * This value is returned by a function on successful synchronous completion |
| 25 * or is passed as a result to a PP_CompletionCallback_Func on successful | 25 * or is passed as a result to a PP_CompletionCallback_Func on successful |
| 26 * asynchronous completion. | 26 * asynchronous completion. |
| 27 */ | 27 */ |
| 28 PP_OK = 0, | 28 PP_OK = 0, |
| 29 | 29 |
| 30 /** | 30 /** |
| 31 * This value is returned by a function that accepts a PP_CompletionCallback | 31 * This value is returned by a function that accepts a PP_CompletionCallback |
| 32 * and cannot complete synchronously. This code indicates that the given | 32 * and cannot complete synchronously. This code indicates that the given |
| 33 * callback will be asynchronously notified of the final result once it is | 33 * callback will be asynchronously notified of the final result once it is |
| 34 * available. | 34 * available. |
| 35 */ | 35 */ |
| 36 PP_OK_COMPLETIONPENDING = -1, | 36 PP_OK_COMPLETIONPENDING = -1, |
| 37 PP_ERROR_WOULDBLOCK = -1, /* DEPRECATED: DO NOT USE */ | 37 PP_ERROR_WOULDBLOCK = -1, /* DEPRECATED: DO NOT USE */ |
| 38 | 38 |
| 39 /** This value indicates failure for unspecified reasons. */ | 39 /** This value indicates failure for unspecified reasons. */ |
| 40 PP_ERROR_FAILED = -2, | 40 PP_ERROR_FAILED = -2, |
| 41 | 41 |
| 42 /** | 42 /** |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 */ | 95 */ |
| 96 PP_ERROR_USERCANCEL = -40 | 96 PP_ERROR_USERCANCEL = -40 |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 /** | 99 /** |
| 100 * @} | 100 * @} |
| 101 * End of addtogroup Enums | 101 * End of addtogroup Enums |
| 102 */ | 102 */ |
| 103 | 103 |
| 104 #endif /* PPAPI_C_PP_ERRORS_H_ */ | 104 #endif /* PPAPI_C_PP_ERRORS_H_ */ |
| OLD | NEW |