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

Side by Side Diff: xfa/fwl/basewidget/fwl_listboximp.cpp

Issue 2027273002: Fix all the code which has duplicate variable declarations (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: rebase Created 4 years, 6 months 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/basewidget/fwl_datetimepickerimp.cpp ('k') | xfa/fxbarcode/BC_TwoDimWriter.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/basewidget/fwl_listboximp.h" 7 #include "xfa/fwl/basewidget/fwl_listboximp.h"
8 8
9 #include "xfa/fde/tto/fde_textout.h" 9 #include "xfa/fde/tto/fde_textout.h"
10 #include "xfa/fwl/basewidget/fwl_comboboximp.h" 10 #include "xfa/fwl/basewidget/fwl_comboboximp.h"
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 CFWL_ThemePart itemPart; 736 CFWL_ThemePart itemPart;
737 itemPart.m_pWidget = m_pInterface; 737 itemPart.m_pWidget = m_pInterface;
738 itemPart.m_iPart = CFWL_Part::ListItem; 738 itemPart.m_iPart = CFWL_Part::ListItem;
739 itemPart.m_pData = m_pProperties->m_pDataProvider; 739 itemPart.m_pData = m_pProperties->m_pDataProvider;
740 itemPart.m_bMaximize = i > 0; 740 itemPart.m_bMaximize = i > 0;
741 CFX_RectF r; 741 CFX_RectF r;
742 m_pProperties->m_pThemeProvider->GetPartRect(&itemPart, r); 742 m_pProperties->m_pThemeProvider->GetPartRect(&itemPart, r);
743 if (!bAutoSize) { 743 if (!bAutoSize) {
744 CFX_RectF rtItem; 744 CFX_RectF rtItem;
745 rtItem.Set(m_rtClient.left, m_rtClient.top + fs.y, r.width, r.height); 745 rtItem.Set(m_rtClient.left, m_rtClient.top + fs.y, r.width, r.height);
746 IFWL_ListBoxDP* pData = 746 IFWL_ListBoxDP* pBox =
747 static_cast<IFWL_ListBoxDP*>(m_pProperties->m_pDataProvider); 747 static_cast<IFWL_ListBoxDP*>(m_pProperties->m_pDataProvider);
748 pData->SetItemRect(m_pInterface, pItem, rtItem); 748 pBox->SetItemRect(m_pInterface, pItem, rtItem);
749 } 749 }
750 fs.y += r.height; 750 fs.y += r.height;
751 if (fs.x < r.width) { 751 if (fs.x < r.width) {
752 fs.x = r.width; 752 fs.x = r.width;
753 fWidth = r.width; 753 fWidth = r.width;
754 } 754 }
755 } 755 }
756 } else { 756 } else {
757 fWidth = GetMaxTextWidth(); 757 fWidth = GetMaxTextWidth();
758 fWidth += 2 * kItemTextMargin; 758 fWidth += 2 * kItemTextMargin;
(...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after
1226 pScrollBar->SetTrackPos(fPos); 1226 pScrollBar->SetTrackPos(fPos);
1227 m_pOwner->Repaint(&m_pOwner->m_rtClient); 1227 m_pOwner->Repaint(&m_pOwner->m_rtClient);
1228 } 1228 }
1229 return TRUE; 1229 return TRUE;
1230 } 1230 }
1231 void CFWL_ListBoxImpDelegate::DispatchSelChangedEv() { 1231 void CFWL_ListBoxImpDelegate::DispatchSelChangedEv() {
1232 CFWL_EvtLtbSelChanged ev; 1232 CFWL_EvtLtbSelChanged ev;
1233 ev.m_pSrcTarget = m_pOwner->m_pInterface; 1233 ev.m_pSrcTarget = m_pOwner->m_pInterface;
1234 m_pOwner->DispatchEvent(&ev); 1234 m_pOwner->DispatchEvent(&ev);
1235 } 1235 }
OLDNEW
« no previous file with comments | « xfa/fwl/basewidget/fwl_datetimepickerimp.cpp ('k') | xfa/fxbarcode/BC_TwoDimWriter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698