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

Side by Side Diff: xfa/fwl/cfwl_combobox.cpp

Issue 2575093002: Cleanup widget edge related code (Closed)
Patch Set: Rebase to master Created 4 years 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/fwl/cfwl_checkbox.cpp ('k') | xfa/fwl/cfwl_datetimepicker.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 #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
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
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 }
OLDNEW
« no previous file with comments | « xfa/fwl/cfwl_checkbox.cpp ('k') | xfa/fwl/cfwl_datetimepicker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698