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

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

Issue 2207093005: Use smart pointers for class owned pointers (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: one more change Created 4 years, 4 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/fgas/layout/fgas_textbreak.cpp ('k') | xfa/fwl/basewidget/cfx_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_BASEWIDGET_CFX_BARCODE_H_ 7 #ifndef XFA_FWL_BASEWIDGET_CFX_BARCODE_H_
8 #define XFA_FWL_BASEWIDGET_CFX_BARCODE_H_ 8 #define XFA_FWL_BASEWIDGET_CFX_BARCODE_H_
9 9
10 #include <memory>
11
10 #include "core/fxcrt/include/fx_coordinates.h" 12 #include "core/fxcrt/include/fx_coordinates.h"
11 #include "core/fxcrt/include/fx_string.h" 13 #include "core/fxcrt/include/fx_string.h"
12 #include "core/fxcrt/include/fx_system.h" 14 #include "core/fxcrt/include/fx_system.h"
13 #include "core/fxge/include/fx_dib.h" 15 #include "core/fxge/include/fx_dib.h"
14 #include "xfa/fxbarcode/include/BC_Library.h" 16 #include "xfa/fxbarcode/include/BC_Library.h"
15 17
16 class CBC_CodeBase; 18 class CBC_CodeBase;
17 class CFX_Font; 19 class CFX_Font;
18 class CFX_RenderDevice; 20 class CFX_RenderDevice;
19 class CFX_Matrix; 21 class CFX_Matrix;
(...skipping 25 matching lines...) Expand all
45 FX_BOOL SetFontColor(FX_ARGB color); 47 FX_BOOL SetFontColor(FX_ARGB color);
46 FX_BOOL SetTextLocation(BC_TEXT_LOC location); 48 FX_BOOL SetTextLocation(BC_TEXT_LOC location);
47 FX_BOOL SetWideNarrowRatio(int32_t ratio); 49 FX_BOOL SetWideNarrowRatio(int32_t ratio);
48 FX_BOOL SetStartChar(FX_CHAR start); 50 FX_BOOL SetStartChar(FX_CHAR start);
49 FX_BOOL SetEndChar(FX_CHAR end); 51 FX_BOOL SetEndChar(FX_CHAR end);
50 FX_BOOL SetVersion(int32_t version); 52 FX_BOOL SetVersion(int32_t version);
51 FX_BOOL SetErrorCorrectionLevel(int32_t level); 53 FX_BOOL SetErrorCorrectionLevel(int32_t level);
52 FX_BOOL SetTruncated(FX_BOOL truncated); 54 FX_BOOL SetTruncated(FX_BOOL truncated);
53 55
54 protected: 56 protected:
55 CBC_CodeBase* m_pBCEngine; 57 std::unique_ptr<CBC_CodeBase> m_pBCEngine;
56 }; 58 };
57 59
58 #endif // XFA_FWL_BASEWIDGET_CFX_BARCODE_H_ 60 #endif // XFA_FWL_BASEWIDGET_CFX_BARCODE_H_
OLDNEW
« no previous file with comments | « xfa/fgas/layout/fgas_textbreak.cpp ('k') | xfa/fwl/basewidget/cfx_barcode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698