| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium 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 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #ifndef XFA_FWL_CORE_FWL_ERROR_H_ | 7 #ifndef XFA_FWL_CORE_FWL_ERROR_H_ |
| 8 #define XFA_FWL_CORE_FWL_ERROR_H_ | 8 #define XFA_FWL_CORE_FWL_ERROR_H_ |
| 9 | 9 |
| 10 #include <stdint.h> | 10 enum class FWL_Error { |
| 11 | 11 Succeeded = 0, |
| 12 typedef int32_t FWL_ERR; | 12 Indefinite, |
| 13 | 13 ParameterInvalid, |
| 14 #define FWL_ERR_Succeeded 0 | 14 PropertyInvalid, |
| 15 #define FWL_ERR_Indefinite -1 | 15 IntermediateValueInvalid, |
| 16 #define FWL_ERR_Parameter_Invalid -100 | 16 MethodNotSupported, |
| 17 #define FWL_ERR_Property_Invalid -200 | 17 OutOfMemory |
| 18 #define FWL_ERR_Intermediate_Value__Invalid -300 | 18 }; |
| 19 #define FWL_ERR_Method_Not_Supported -400 | |
| 20 #define FWL_ERR_Out_Of_Memory -500 | |
| 21 | 19 |
| 22 #endif // XFA_FWL_CORE_FWL_ERROR_H_ | 20 #endif // XFA_FWL_CORE_FWL_ERROR_H_ |
| OLD | NEW |