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

Side by Side Diff: xfa/fwl/core/ifwl_listbox.cpp

Issue 2489013002: Continue cleaning IFWL classes (Closed)
Patch Set: Review updates Created 4 years, 1 month 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
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/core/ifwl_listbox.h" 7 #include "xfa/fwl/core/ifwl_listbox.h"
8 8
9 #include "third_party/base/ptr_util.h" 9 #include "third_party/base/ptr_util.h"
10 #include "xfa/fde/tto/fde_textout.h" 10 #include "xfa/fde/tto/fde_textout.h"
(...skipping 1074 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 CFX_RectF rtInvalidate; 1085 CFX_RectF rtInvalidate;
1086 rtInvalidate.Set(0, 0, m_pProperties->m_rtWidget.width, 1086 rtInvalidate.Set(0, 0, m_pProperties->m_rtWidget.width,
1087 m_pProperties->m_rtWidget.height); 1087 m_pProperties->m_rtWidget.height);
1088 Repaint(&rtInvalidate); 1088 Repaint(&rtInvalidate);
1089 } 1089 }
1090 1090
1091 bool IFWL_ListBox::OnScroll(IFWL_ScrollBar* pScrollBar, 1091 bool IFWL_ListBox::OnScroll(IFWL_ScrollBar* pScrollBar,
1092 uint32_t dwCode, 1092 uint32_t dwCode,
1093 FX_FLOAT fPos) { 1093 FX_FLOAT fPos) {
1094 CFX_SizeF fs; 1094 CFX_SizeF fs;
1095 pScrollBar->GetRange(fs.x, fs.y); 1095 pScrollBar->GetRange(&(fs.x), &(fs.y));
Tom Sepez 2016/11/09 18:46:08 nitto
dsinclair 2016/11/10 17:56:04 Done.
1096 FX_FLOAT iCurPos = pScrollBar->GetPos(); 1096 FX_FLOAT iCurPos = pScrollBar->GetPos();
1097 FX_FLOAT fStep = pScrollBar->GetStepSize(); 1097 FX_FLOAT fStep = pScrollBar->GetStepSize();
1098 switch (dwCode) { 1098 switch (dwCode) {
1099 case FWL_SCBCODE_Min: { 1099 case FWL_SCBCODE_Min: {
1100 fPos = fs.x; 1100 fPos = fs.x;
1101 break; 1101 break;
1102 } 1102 }
1103 case FWL_SCBCODE_Max: { 1103 case FWL_SCBCODE_Max: {
1104 fPos = fs.y; 1104 fPos = fs.y;
1105 break; 1105 break;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1140 Repaint(&m_rtClient); 1140 Repaint(&m_rtClient);
1141 } 1141 }
1142 return true; 1142 return true;
1143 } 1143 }
1144 1144
1145 void IFWL_ListBox::DispatchSelChangedEv() { 1145 void IFWL_ListBox::DispatchSelChangedEv() {
1146 CFWL_EvtLtbSelChanged ev; 1146 CFWL_EvtLtbSelChanged ev;
1147 ev.m_pSrcTarget = this; 1147 ev.m_pSrcTarget = this;
1148 DispatchEvent(&ev); 1148 DispatchEvent(&ev);
1149 } 1149 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698