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

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

Issue 2521303002: Rename IFWL_App to CFWL_App (Closed)
Patch Set: Rebase to master Created 4 years 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/ifwl_app.cpp ('k') | 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual BC_TEXT_LOC GetTextLocation() const = 0; 51 virtual BC_TEXT_LOC GetTextLocation() const = 0;
52 virtual int32_t GetWideNarrowRatio() const = 0; 52 virtual int32_t GetWideNarrowRatio() const = 0;
53 virtual FX_CHAR GetStartChar() const = 0; 53 virtual FX_CHAR GetStartChar() const = 0;
54 virtual FX_CHAR GetEndChar() const = 0; 54 virtual FX_CHAR GetEndChar() const = 0;
55 virtual int32_t GetVersion() const = 0; 55 virtual int32_t GetVersion() const = 0;
56 virtual int32_t GetErrorCorrectionLevel() const = 0; 56 virtual int32_t GetErrorCorrectionLevel() const = 0;
57 virtual bool GetTruncated() const = 0; 57 virtual bool GetTruncated() const = 0;
58 virtual uint32_t GetBarcodeAttributeMask() const = 0; 58 virtual uint32_t GetBarcodeAttributeMask() const = 0;
59 }; 59 };
60 60
61 IFWL_Barcode(const IFWL_App* app, 61 IFWL_Barcode(const CFWL_App* app,
62 std::unique_ptr<CFWL_WidgetProperties> properties); 62 std::unique_ptr<CFWL_WidgetProperties> properties);
63 ~IFWL_Barcode() override; 63 ~IFWL_Barcode() override;
64 64
65 // IFWL_Widget 65 // IFWL_Widget
66 FWL_Type GetClassID() const override; 66 FWL_Type GetClassID() const override;
67 void Update() override; 67 void Update() override;
68 void DrawWidget(CFX_Graphics* pGraphics, 68 void DrawWidget(CFX_Graphics* pGraphics,
69 const CFX_Matrix* pMatrix = nullptr) override; 69 const CFX_Matrix* pMatrix = nullptr) override;
70 void OnProcessEvent(CFWL_Event* pEvent) override; 70 void OnProcessEvent(CFWL_Event* pEvent) override;
71 71
72 // IFWL_Edit 72 // IFWL_Edit
73 void SetText(const CFX_WideString& wsText) override; 73 void SetText(const CFX_WideString& wsText) override;
74 74
75 void SetType(BC_TYPE type); 75 void SetType(BC_TYPE type);
76 bool IsProtectedType() const; 76 bool IsProtectedType() const;
77 77
78 private: 78 private:
79 void GenerateBarcodeImageCache(); 79 void GenerateBarcodeImageCache();
80 void CreateBarcodeEngine(); 80 void CreateBarcodeEngine();
81 81
82 std::unique_ptr<CFX_Barcode> m_pBarcodeEngine; 82 std::unique_ptr<CFX_Barcode> m_pBarcodeEngine;
83 uint32_t m_dwStatus; 83 uint32_t m_dwStatus;
84 BC_TYPE m_type; 84 BC_TYPE m_type;
85 }; 85 };
86 86
87 #endif // XFA_FWL_CORE_IFWL_BARCODE_H_ 87 #endif // XFA_FWL_CORE_IFWL_BARCODE_H_
OLDNEW
« no previous file with comments | « xfa/fwl/core/ifwl_app.cpp ('k') | xfa/fwl/core/ifwl_barcode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698