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

Side by Side Diff: xfa/fwl/core/fwl_error.h

Issue 1943413002: Convert FWL_ERR into an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@bcdattribute
Patch Set: Created 4 years, 7 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
« no previous file with comments | « xfa/fwl/core/fwl_appimp.cpp ('k') | xfa/fwl/core/fwl_formimp.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 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_
OLDNEW
« no previous file with comments | « xfa/fwl/core/fwl_appimp.cpp ('k') | xfa/fwl/core/fwl_formimp.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698