| OLD | NEW |
| 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 #include "xfa/fwl/core/cfwl_barcode.h" | 7 #include "xfa/fwl/core/cfwl_barcode.h" |
| 8 | 8 |
| 9 #include <memory> | 9 #include <memory> |
| 10 | 10 |
| 11 #include "third_party/base/ptr_util.h" | 11 #include "third_party/base/ptr_util.h" |
| 12 | 12 |
| 13 namespace { | 13 namespace { |
| 14 | 14 |
| 15 IFWL_Barcode* ToBarcode(IFWL_Widget* widget) { | 15 IFWL_Barcode* ToBarcode(IFWL_Widget* widget) { |
| 16 return static_cast<IFWL_Barcode*>(widget); | 16 return static_cast<IFWL_Barcode*>(widget); |
| 17 } | 17 } |
| 18 | 18 |
| 19 } // namespace | 19 } // namespace |
| 20 | 20 |
| 21 CFWL_Barcode::CFWL_Barcode(const IFWL_App* app) | 21 CFWL_Barcode::CFWL_Barcode(const CFWL_App* app) |
| 22 : CFWL_Edit(app), m_dwAttributeMask(FWL_BCDATTRIBUTE_NONE) {} | 22 : CFWL_Edit(app), m_dwAttributeMask(FWL_BCDATTRIBUTE_NONE) {} |
| 23 | 23 |
| 24 CFWL_Barcode::~CFWL_Barcode() {} | 24 CFWL_Barcode::~CFWL_Barcode() {} |
| 25 | 25 |
| 26 void CFWL_Barcode::Initialize() { | 26 void CFWL_Barcode::Initialize() { |
| 27 ASSERT(!m_pIface); | 27 ASSERT(!m_pIface); |
| 28 | 28 |
| 29 m_pIface = pdfium::MakeUnique<IFWL_Barcode>( | 29 m_pIface = pdfium::MakeUnique<IFWL_Barcode>( |
| 30 m_pApp, pdfium::MakeUnique<CFWL_WidgetProperties>(this)); | 30 m_pApp, pdfium::MakeUnique<CFWL_WidgetProperties>(this)); |
| 31 | 31 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 return m_nECLevel; | 150 return m_nECLevel; |
| 151 } | 151 } |
| 152 | 152 |
| 153 bool CFWL_Barcode::GetTruncated() const { | 153 bool CFWL_Barcode::GetTruncated() const { |
| 154 return m_bTruncated; | 154 return m_bTruncated; |
| 155 } | 155 } |
| 156 | 156 |
| 157 uint32_t CFWL_Barcode::GetBarcodeAttributeMask() const { | 157 uint32_t CFWL_Barcode::GetBarcodeAttributeMask() const { |
| 158 return m_dwAttributeMask; | 158 return m_dwAttributeMask; |
| 159 } | 159 } |
| OLD | NEW |