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

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

Issue 2433133002: Remove IFWL_*::Create methods, use new (Closed)
Patch Set: Rebase to master Created 4 years, 2 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 | « no previous file | xfa/fwl/core/ifwl_barcode.cpp » ('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_IFWL_BARCODE_H_ 7 #ifndef XFA_FWL_CORE_IFWL_BARCODE_H_
8 #define XFA_FWL_CORE_IFWL_BARCODE_H_ 8 #define XFA_FWL_CORE_IFWL_BARCODE_H_
9 9
10 #include <memory> 10 #include <memory>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual FX_CHAR GetStartChar() = 0; 52 virtual FX_CHAR GetStartChar() = 0;
53 virtual FX_CHAR GetEndChar() = 0; 53 virtual FX_CHAR GetEndChar() = 0;
54 virtual int32_t GetVersion() = 0; 54 virtual int32_t GetVersion() = 0;
55 virtual int32_t GetErrorCorrectionLevel() = 0; 55 virtual int32_t GetErrorCorrectionLevel() = 0;
56 virtual FX_BOOL GetTruncated() = 0; 56 virtual FX_BOOL GetTruncated() = 0;
57 virtual uint32_t GetBarcodeAttributeMask() = 0; 57 virtual uint32_t GetBarcodeAttributeMask() = 0;
58 }; 58 };
59 59
60 class IFWL_Barcode : public IFWL_Edit { 60 class IFWL_Barcode : public IFWL_Edit {
61 public: 61 public:
62 static IFWL_Barcode* Create(const CFWL_WidgetImpProperties& properties); 62 explicit IFWL_Barcode(const CFWL_WidgetImpProperties& properties);
63
64 IFWL_Barcode(const CFWL_WidgetImpProperties& properties, IFWL_Widget* pOuter);
65 ~IFWL_Barcode() override; 63 ~IFWL_Barcode() override;
66 64
67 // IFWL_Widget 65 // IFWL_Widget
68 FWL_Error GetClassName(CFX_WideString& wsClass) const override; 66 FWL_Error GetClassName(CFX_WideString& wsClass) const override;
69 FWL_Type GetClassID() const override; 67 FWL_Type GetClassID() const override;
70 FWL_Error Initialize() override; 68 FWL_Error Initialize() override;
71 FWL_Error Finalize() override; 69 FWL_Error Finalize() override;
72 FWL_Error Update() override; 70 FWL_Error Update() override;
73 FWL_Error DrawWidget(CFX_Graphics* pGraphics, 71 FWL_Error DrawWidget(CFX_Graphics* pGraphics,
74 const CFX_Matrix* pMatrix = nullptr) override; 72 const CFX_Matrix* pMatrix = nullptr) override;
(...skipping 13 matching lines...) Expand all
88 BC_TYPE m_type; 86 BC_TYPE m_type;
89 }; 87 };
90 88
91 class CFWL_BarcodeImpDelegate : public CFWL_EditImpDelegate { 89 class CFWL_BarcodeImpDelegate : public CFWL_EditImpDelegate {
92 public: 90 public:
93 explicit CFWL_BarcodeImpDelegate(IFWL_Barcode* pOwner); 91 explicit CFWL_BarcodeImpDelegate(IFWL_Barcode* pOwner);
94 void OnProcessEvent(CFWL_Event* pEvent) override; 92 void OnProcessEvent(CFWL_Event* pEvent) override;
95 }; 93 };
96 94
97 #endif // XFA_FWL_CORE_IFWL_BARCODE_H_ 95 #endif // XFA_FWL_CORE_IFWL_BARCODE_H_
OLDNEW
« no previous file with comments | « no previous file | xfa/fwl/core/ifwl_barcode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698