Chromium Code Reviews| 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 |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 104 | 104 |
| 105 void CFWL_Barcode::SetType(BC_TYPE type) { | 105 void CFWL_Barcode::SetType(BC_TYPE type) { |
| 106 if (GetWidget()) | 106 if (GetWidget()) |
| 107 ToBarcode(GetWidget())->SetType(type); | 107 ToBarcode(GetWidget())->SetType(type); |
| 108 } | 108 } |
| 109 | 109 |
| 110 bool CFWL_Barcode::IsProtectedType() { | 110 bool CFWL_Barcode::IsProtectedType() { |
| 111 return GetWidget() ? ToBarcode(GetWidget())->IsProtectedType() : false; | 111 return GetWidget() ? ToBarcode(GetWidget())->IsProtectedType() : false; |
| 112 } | 112 } |
| 113 | 113 |
| 114 FWL_Error CFWL_Barcode::GetCaption(IFWL_Widget* pWidget, | 114 void CFWL_Barcode::GetCaption(IFWL_Widget* pWidget, CFX_WideString& wsCaption) { |
|
Tom Sepez
2016/11/10 19:50:14
nit: can this return the caption instead?
dsinclair
2016/11/10 20:12:35
Followup. Too much to keep track of in one go.
| |
| 115 CFX_WideString& wsCaption) { | |
| 116 return FWL_Error::Succeeded; | |
| 117 } | 115 } |
| 118 | 116 |
| 119 BC_CHAR_ENCODING CFWL_Barcode::GetCharEncoding() const { | 117 BC_CHAR_ENCODING CFWL_Barcode::GetCharEncoding() const { |
| 120 return m_eCharEncoding; | 118 return m_eCharEncoding; |
| 121 } | 119 } |
| 122 | 120 |
| 123 int32_t CFWL_Barcode::GetModuleHeight() const { | 121 int32_t CFWL_Barcode::GetModuleHeight() const { |
| 124 return m_nModuleHeight; | 122 return m_nModuleHeight; |
| 125 } | 123 } |
| 126 | 124 |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 164 return m_nECLevel; | 162 return m_nECLevel; |
| 165 } | 163 } |
| 166 | 164 |
| 167 bool CFWL_Barcode::GetTruncated() const { | 165 bool CFWL_Barcode::GetTruncated() const { |
| 168 return m_bTruncated; | 166 return m_bTruncated; |
| 169 } | 167 } |
| 170 | 168 |
| 171 uint32_t CFWL_Barcode::GetBarcodeAttributeMask() const { | 169 uint32_t CFWL_Barcode::GetBarcodeAttributeMask() const { |
| 172 return m_dwAttributeMask; | 170 return m_dwAttributeMask; |
| 173 } | 171 } |
| OLD | NEW |