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

Side by Side Diff: xfa/fwl/basewidget/ifwl_barcode.h

Issue 1946213003: Remove CLASSHASH defines in favour of an enum class. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
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/basewidget/fwl_tooltipctrlimp.cpp ('k') | xfa/fwl/basewidget/ifwl_caret.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_BASEWIDGET_IFWL_BARCODE_H_ 7 #ifndef XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_
8 #define XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ 8 #define XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_
9 9
10 #include "xfa/fxbarcode/include/BC_Library.h" 10 #include "xfa/fxbarcode/include/BC_Library.h"
11 #include "xfa/fwl/basewidget/ifwl_edit.h" 11 #include "xfa/fwl/basewidget/ifwl_edit.h"
12 12
13 class CFWL_WidgetImpProperties; 13 class CFWL_WidgetImpProperties;
14 14
15 #define FWL_CLASS_Barcode L"FWL_BARCODE" 15 #define FWL_CLASS_Barcode L"FWL_BARCODE"
16 #define FWL_CLASSHASH_Barcode 366886968
17 16
18 enum FWL_BCDAttribute { 17 enum FWL_BCDAttribute {
19 FWL_BCDATTRIBUTE_NONE = 0, 18 FWL_BCDATTRIBUTE_NONE = 0,
20 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0, 19 FWL_BCDATTRIBUTE_CHARENCODING = 1 << 0,
21 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1, 20 FWL_BCDATTRIBUTE_MODULEHEIGHT = 1 << 1,
22 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2, 21 FWL_BCDATTRIBUTE_MODULEWIDTH = 1 << 2,
23 FWL_BCDATTRIBUTE_DATALENGTH = 1 << 3, 22 FWL_BCDATTRIBUTE_DATALENGTH = 1 << 3,
24 FWL_BCDATTRIBUTE_CALCHECKSUM = 1 << 4, 23 FWL_BCDATTRIBUTE_CALCHECKSUM = 1 << 4,
25 FWL_BCDATTRIBUTE_PRINTCHECKSUM = 1 << 5, 24 FWL_BCDATTRIBUTE_PRINTCHECKSUM = 1 << 5,
26 FWL_BCDATTRIBUTE_TEXTLOCATION = 1 << 6, 25 FWL_BCDATTRIBUTE_TEXTLOCATION = 1 << 6,
(...skipping 27 matching lines...) Expand all
54 public: 53 public:
55 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); 54 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties);
56 void SetType(BC_TYPE type); 55 void SetType(BC_TYPE type);
57 FX_BOOL IsProtectedType(); 56 FX_BOOL IsProtectedType();
58 57
59 protected: 58 protected:
60 IFWL_Barcode(); 59 IFWL_Barcode();
61 }; 60 };
62 61
63 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_ 62 #endif // XFA_FWL_BASEWIDGET_IFWL_BARCODE_H_
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_tooltipctrlimp.cpp ('k') | xfa/fwl/basewidget/ifwl_caret.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698