| 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 "../../../foxitlib.h" | 7 #include "xfa/src/foxitlib.h" |
| 8 #define FWLTHEME_CAPACITY_ComboFormHandler 8.0f | 8 #define FWLTHEME_CAPACITY_ComboFormHandler 8.0f |
| 9 CFWL_ComboBoxTP::CFWL_ComboBoxTP() { | 9 CFWL_ComboBoxTP::CFWL_ComboBoxTP() { |
| 10 m_dwThemeID = 0; | 10 m_dwThemeID = 0; |
| 11 } | 11 } |
| 12 CFWL_ComboBoxTP::~CFWL_ComboBoxTP() {} | 12 CFWL_ComboBoxTP::~CFWL_ComboBoxTP() {} |
| 13 FX_BOOL CFWL_ComboBoxTP::IsValidWidget(IFWL_Widget* pWidget) { | 13 FX_BOOL CFWL_ComboBoxTP::IsValidWidget(IFWL_Widget* pWidget) { |
| 14 if (!pWidget) | 14 if (!pWidget) |
| 15 return FALSE; | 15 return FALSE; |
| 16 return pWidget->GetClassID() == FWL_CLASSHASH_ComboBox; | 16 return pWidget->GetClassID() == FWL_CLASSHASH_ComboBox; |
| 17 } | 17 } |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 } | 142 } |
| 143 case FWL_CMBPARTSTATE_Disabled: { | 143 case FWL_CMBPARTSTATE_Disabled: { |
| 144 argbFill = 0xFFF0F0F0; | 144 argbFill = 0xFFF0F0F0; |
| 145 break; | 145 break; |
| 146 } | 146 } |
| 147 } | 147 } |
| 148 DrawArrow(pParams->m_pGraphics, &pParams->m_rtPart, FWLTHEME_DIRECTION_Down, | 148 DrawArrow(pParams->m_pGraphics, &pParams->m_rtPart, FWLTHEME_DIRECTION_Down, |
| 149 argbFill, bPressed, &pParams->m_matrix); | 149 argbFill, bPressed, &pParams->m_matrix); |
| 150 } | 150 } |
| 151 #endif | 151 #endif |
| OLD | NEW |