| 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/cfwl_combobox.h" | 7 #include "xfa/fwl/cfwl_combobox.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 } | 138 } |
| 139 | 139 |
| 140 if (!pGraphics) | 140 if (!pGraphics) |
| 141 return; | 141 return; |
| 142 if (!m_pProperties->m_pThemeProvider) | 142 if (!m_pProperties->m_pThemeProvider) |
| 143 return; | 143 return; |
| 144 | 144 |
| 145 IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider; | 145 IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider; |
| 146 if (HasBorder()) | 146 if (HasBorder()) |
| 147 DrawBorder(pGraphics, CFWL_Part::Border, pTheme, pMatrix); | 147 DrawBorder(pGraphics, CFWL_Part::Border, pTheme, pMatrix); |
| 148 if (HasEdge()) | |
| 149 DrawEdge(pGraphics, CFWL_Part::Edge, pTheme, pMatrix); | |
| 150 | 148 |
| 151 if (!IsDropDownStyle()) { | 149 if (!IsDropDownStyle()) { |
| 152 CFX_RectF rtTextBk(m_rtClient); | 150 CFX_RectF rtTextBk(m_rtClient); |
| 153 rtTextBk.width -= m_rtBtn.width; | 151 rtTextBk.width -= m_rtBtn.width; |
| 154 | 152 |
| 155 CFWL_ThemeBackground param; | 153 CFWL_ThemeBackground param; |
| 156 param.m_pWidget = this; | 154 param.m_pWidget = this; |
| 157 param.m_iPart = CFWL_Part::Background; | 155 param.m_iPart = CFWL_Part::Background; |
| 158 param.m_pGraphics = pGraphics; | 156 param.m_pGraphics = pGraphics; |
| 159 if (pMatrix) | 157 if (pMatrix) |
| (...skipping 876 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 else | 1034 else |
| 1037 iCurSel++; | 1035 iCurSel++; |
| 1038 } | 1036 } |
| 1039 m_iCurSel = iCurSel; | 1037 m_iCurSel = iCurSel; |
| 1040 SyncEditText(m_iCurSel); | 1038 SyncEditText(m_iCurSel); |
| 1041 return; | 1039 return; |
| 1042 } | 1040 } |
| 1043 if (m_pEdit) | 1041 if (m_pEdit) |
| 1044 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); | 1042 m_pEdit->GetDelegate()->OnProcessMessage(pMsg); |
| 1045 } | 1043 } |
| OLD | NEW |